Guest Posted September 29, 2005 Posted September 29, 2005 Hi all. I have been working steadily on my site for a while now and each time I get one part sorted another bit seems to need work.. At the moment I need help with file permissions, in particular with the config.php, both of them... Site states: Warning: I am able to write to the configuration file: /includes/configure.php. This is a potential security risk - please set the right user permissions on this file. This message appears when I simply enter my url in the browser. I have tried several suggestions on here, nice of you guys to suggest setting permissions to 777, 444, 555 etc....but just for a minute pretend that I don't have a clue about permissions and consider this.... How do you actually set permissions to any file on your site? Am currently considering scrapping the last two months work and beginning all over again, if I thought it would fix it I would. Any help gratefully received.... Thanks Andy
♥Vger Posted September 29, 2005 Posted September 29, 2005 If your site is hosted on an Apache web server (Unix/Linux operating system) then you can use FTP to change file permissions, but it's probably simpler just to use the File Manager in your web hosting control panel (not your osCommerce control panel) to change file permissions. File permissions for the includes/configure.php file vary according to which server type you are on. Start with 644, and if that doesn't work then 444, and lastly 400. If you still have the error message then get your hosting company to sort it out for you because the problem is not yours it's theirs. Vger
Guest Posted September 29, 2005 Posted September 29, 2005 Thanks for that, I have tried several ways to set permissions, none of which have worked so far... Perhaps your suggestion that the host should deal with it may be best...am on my way there now cheers Andy
Guest Posted September 30, 2005 Posted September 30, 2005 Well that got me nowhere....server people advise it is me who sets permissions related to username who uploaded files via ftp........and my site seems to be insecure now as a result. someone somewhere said something about creating a configchmod.php file with permissions held within this file that when uploaded and run from server would set permissions for me... anyone heard of this? anyone got a better idea? Andy
♥Vger Posted September 30, 2005 Posted September 30, 2005 Create a new text file on your desktop and then rename it e.g. chmod.php (ignore the warning about changing the file type). Put this code in it and upload it to the root of your web. <?php chmod ("includes/configure.php", 0444); ?> Then, in your browser, go to http://www.yourdomain.com/chmod.php You won't see anything on the screen, but it should change your file permissions. Vger
Guest Posted September 30, 2005 Posted September 30, 2005 vger......you rock ! ! worked first time many many thanks Andy
Recommended Posts
Archived
This topic is now archived and is closed to further replies.