Fix osCommerce Write to Configuration File Warning
After installing osCommerce most users will get the following warning on the top of their newly created store main page:
Warning: I am able to write to the configuration file: /[SERVER_FILE_LOCATION]/catalog/includes/configure.php. This is a potential security risk – please set the right user permissions on this file.
It is a pretty specific error with an obtuse solution in the warning message. Upon searching many recommendations are to chmod the file to 666 but sadly this still provides write access to the file and the error remains.
The solution to the write to configure.php warning
Set the file to permissions of 444 which is the equivalent of RRR or Owner-Read ; Group-Read ; Others-Read using your favorite FTP program.
For those of you on a MAC using a FTP program such as FETCH you will need to Command Click (Right Click if you have a right mouse button) and then select Get Info. From there you can set the check boxes or type in 444 and change the file permissions.
Technorati Tags: osCommerce, configure.php
January 25th, 2009 at 9:07 am
hi there, i got this problem, but i dunno how to do it, do u know? can you help me? thanks a lot, hope u can mail me back.
Warning: I am able to write to the configuration file: /[SERVER_FILE_LOCATION]/catalog/includes/configure.php. This is a potential security risk – please set the right user permissions on this file.