trevor4370 Posted December 9, 2003 Posted December 9, 2003 I keep getting this error message .... I have tried all the CHMOD options and it is still there. This is a re-install, last time I found a post with a small PHP script to CHMOD the file (I just placed it in the directory), this was the only thing I could get to work. I have looked and searched but I can not find it again, anyone know what I am talking about? If so could you please help me with this script. I am hosted on a UNIX server. Many thanks Trevor
Daemonj Posted December 9, 2003 Posted December 9, 2003 Using either an FTP program or your servers control panel's file manager program, change the permissions on the file to 644. If that does not work then try 444. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
trevor4370 Posted December 9, 2003 Author Posted December 9, 2003 I have tried these and still getting the error message .... I have have fixed this in the past by using a php script (only a few lines of code) to CHMOD the file and this seemed to work .... the only thing is I can not find this script again on this forum, and I do not know enough about PHP at this stage. Trevor
Daemonj Posted December 9, 2003 Posted December 9, 2003 If you still receive that warning after setting the catalog/includes/configure.php file to 444 you should contact your host's support department to enquire why PHP thinks a 444 file is readable. There is something wrong somewhere when that happens. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
trevor4370 Posted December 9, 2003 Author Posted December 9, 2003 I finally found what I was after ..... please read this as it will help if you have trouble with the CHMOD setting of configure.php. It worked for me when nothing else would. Thanks to uslackeru (Posted: Nov 10 2003, 11:48 PM ) I had to use a small PHP file to actually get the configure.php file to CHMOD to the correct setting try this. Create a file called protect.php with the following contents: CODE <?php chmod('includes/configure.php', 0444); ?> Upload it to your catalog folder and then in a browser open protect.php on your site. It will set the protection. You should also upload this to your admin folder too. Once you have done this, you can delete the protect.php files. Hope that helps. Many thanks Trevor
Daemonj Posted December 9, 2003 Posted December 9, 2003 There is no difference between that and I what I have been asking for you to do other than how it is performed. So long as you are working that is all that matters. "Great spirits have always found violent opposition from mediocre minds. The latter cannot understand it when a man does not thoughtlessly submit to hereditary prejudices but honestly and courageously uses his intelligence." - A. Einstein
Guest Posted December 31, 2003 Posted December 31, 2003 Just a curiosity question here. By any chance are you using CPanel? CPanel sometimes acts like a stubborn child. You CHMOD the file, it shows the permissions are changed, but they're not really. I had that happen on a customers server and had to go into the ssh and do a command line change. Made me crazy for awhile. Again just a thought. Ruth in AZ
jameshar466 Posted December 31, 2003 Posted December 31, 2003 Thanks for the GREAT protect.php script. NOW how do I clean up my install with these errors. Warning: main(includes/modules/upcoming_products.php): failed to open stream: No such file or directory in /www/j/jameshar/htdocs/catalog/index.php on line 316 Warning: main(): Failed opening 'includes/modules/upcoming_products.php' for inclusion (include_path='.:/usr/local/lib/php') Thanks in advance NonProg
Recommended Posts
Archived
This topic is now archived and is closed to further replies.