Search Our Database

How to solve permission issue of oscommerce in windows hosting

Last updated on |
by

While setting up oscommerce page in windows hosting, if the permission is not setting up properly, you will see a warning on the top of your homepage:

Warning: I am able to write to the configuration file: d:\inetpub\vhosts\domain.com\httpdocs/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

Permission/security setting in windows doesn’t help much. In this case, you can use chmod function called by php to change the file permission.

1. Create a file in your hosting domain folder with the name “chmod.php”, and write the code below inside.


2. Save it, and run the script in your browser:

http://domain.com/chmod.php

3. If it return errors like below, you need to give permission to the chmod.php script to change the state of configure.php. To do so, kindly refer to Here to provide necessary permission to configure.php file.

Warning: chmod() [function.chmod]: Permission denied in d:\inetpub\vhosts\domain.com\httpdocs\chmod.php on line

4. Should be able to run your chmod.php script now. Refresh your oscommerce homepage and the error gone.