View Full Version : includes/configure.php Problem
outerreaches
9-13-03, 04:59 PM
I get this error when I go to my catalog:
Warning: I am able to write to the configuration file: /home/USERNAME/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
I've tried changing the CHMOD to practically every number combo I can think of (people have suggested 644, 444 and 777 but none have worked). Does anyone know how I can fix this? You can view the page here:
http://www.loosefigurecollector.com/osCommerce/catalog/default.php?
tbonekkt
9-13-03, 05:15 PM
Originally posted by outerreaches
I get this error when I go to my catalog:
Warning: I am able to write to the configuration file: /home/USERNAME/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.
I've tried changing the CHMOD to practically every number combo I can think of (people have suggested 644, 444 and 777 but none have worked). Does anyone know how I can fix this? You can view the page here:
http://www.loosefigurecollector.com/osCommerce/catalog/default.php?
In a new PHP file, insert the following:
<?php
chmod('includes/configure.php', 0444);
?>
save as chmod.php and upload to /catalog and /admin (just to be safe). Then access the pages in a browser (www.domain.com/pathto/catalog/chmod.php) and you'll be set.
outerreaches
9-14-03, 06:52 AM
Thank you for your reply! Ok, I made a new PHP file called chmod.php like you suggested throught the File Manager to the following directories:
/www/l/loosefigs/htdocs/osCommerce/catalog/
/www/l/loosefigs/htdocs/osCommerce/catalog/admin
I tried accessing them in a new browser like suggested, but I get an error:
http://www.loosefigurecollector.com/osCommerce/catalog/chmod.php
The problem is still happening. When I go back to look at the script in the chmod.php under catalog, I get the following error:
Warning: file(/www/l/loosefigs/htdocs/osCommerce/catalog/chmod.php): failed to open stream: No such file or directory in /www/l/loosefigs/htdocs/osCommerce/catalog/admin/file_manager.php on line 156
Do I need to change anything in the file_manager.php? Or should I scratch the chmod.php file and upload it through FTP?
outerreaches
9-14-03, 06:58 AM
OH MY LORD IT WORKED!! :D
I deleted the chmod.php I had put in the /catalog directory, and uploaded a new one through FTP (instead of the file manager) and by golly it WORKED!!
Thank you SO MUCH, I was going crazy over this one! You rock!
tbonekkt
9-15-03, 12:30 AM
Originally posted by outerreaches
OH MY LORD IT WORKED!! :D
I deleted the chmod.php I had put in the /catalog directory, and uploaded a new one through FTP (instead of the file manager) and by golly it WORKED!!
Thank you SO MUCH, I was going crazy over this one! You rock!
Glad I could help.
vBulletin v3.6.0, Copyright ©2000-2010, Jelsoft Enterprises Ltd.