jhansen Posted January 10, 2005 Posted January 10, 2005 Hi all. I have a small new problem. Warning: I am able to write to the configuration file: /customers/xxx/xxx/httpd.www/catalog/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. I know how to change the permissions in ftp, cannot do it in the server control panel. Contacted support but the suggested to make a php file to do this. Anyone know how, when I don't know much about making php files. This is what I got back from support: You can change it through a php command instead. Create a php file and use this code: <? chmod("/customers/kassa-systemer.net/kassa-systemer.ne t/httpd.www/catalog/includes/configure.php", 0444); ?> Have tryed to make a php-file called drive.php with this code inside, but I cant get it right. What is it I'm doing wrong ?
Guest Posted January 10, 2005 Posted January 10, 2005 But it's much faster and easier to get a free ftp program from www.download.com
jhansen Posted January 10, 2005 Author Posted January 10, 2005 At the moment, it is not possible to change the Owner setting through an FTP client.
Guest Posted January 10, 2005 Posted January 10, 2005 OK 1. Open a text editor (notepad etc.) 2. Insert the following codes <?php chmod("/customers/kassa-systemer.net/kassa-systemer.net/httpd.www/catalog/includes/configure.php", 0444); ?> Please double check the file path. Permission 444 (octal value of 0444) allow the file to be readable, not writeable and not executable for owner, group and public. 3. Save this file on your computer as mychmod.php 4. Upload it to your server. 5. Use your web browser to execute the mychmod.php (www.mydomain.com/mychmod.php etc)
julia Posted January 10, 2005 Posted January 10, 2005 Is there anywhere in the knowledge base that lists what files need to be set at what permissions? Julie
jhansen Posted January 11, 2005 Author Posted January 11, 2005 Thanks Alpha Ray...it worked like a dream.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.