PeterBrown Posted March 11, 2007 Posted March 11, 2007 I am receiving the following warning message on the top of my osCommerce site. Warning: I am able to write to the configuration file: /home/<user>/public_html/<site>/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. The current permissions for the includes/configure.php are 444. Please help!
pynchon Posted March 11, 2007 Posted March 11, 2007 I am receiving the following warning message on the top of my osCommerce site. Warning: I am able to write to the configuration file: /home/<user>/public_html/<site>/includes/configure.php. This is a potential security risk - please set the right user permissions on this file. The current permissions for the includes/configure.php are 444. Please help! you need to change the permissions to of this file to 644 if you don't know how ... just post back and I'll tell you :) John K
PeterBrown Posted March 11, 2007 Author Posted March 11, 2007 you need to change the permissions to of this file to 644 if you don't know how ... just post back and I'll tell you :) John K John, Thank you for the reply! I have just changed the file permissions to 644 but I am still reciving the error message.
pynchon Posted March 11, 2007 Posted March 11, 2007 John,Thank you for the reply! I have just changed the file permissions to 644 but I am still reciving the error message. hmmmm 644 are the permissions I have on mine with no error can you post a screenshot .. or post the url of your site john
PeterBrown Posted March 11, 2007 Author Posted March 11, 2007 hmmmm 644 are the permissions I have on mine with no error can you post a screenshot .. or post the url of your site john The URL is www.duwp.com/index.php
pynchon Posted March 11, 2007 Posted March 11, 2007 The URL is www.duwp.com/index.php check that you are changing the permissions of the correct file there are two config files ... one in includes/config.php and admin/includes/config.php you probably know this ... so please excuse .. I'm not trying to patronise jk
PeterBrown Posted March 11, 2007 Author Posted March 11, 2007 check that you are changing the permissions of the correct file there are two config files ... one in includes/config.php and admin/includes/config.php you probably know this ... so please excuse .. I'm not trying to patronise jk Yep, both includes/config.php and admin/includes/config.php are 644 :)
pynchon Posted March 11, 2007 Posted March 11, 2007 Yep, both includes/config.php and admin/includes/config.php are 644 :) I noticed the address has public_html ... so I presume the structure of the server has a www folder as well ... one is usually a mirror of the other .... can you check that the configure.php files within both public and www folders have the same permissions. This is forlorn and probably futile. If you are certain that the permissions are correct ... the script that generates the error can be removed from application_top.php, you'll find it toward the bottom of the page ... though I would only do this if I were certain that the permissions were correct. Why this should be happening I have no idea ... I have always followed the install instructions to return certain files back to 644 and I've never had the 'error strip' appear jk
PeterBrown Posted March 11, 2007 Author Posted March 11, 2007 I noticed the address has public_html ... so I presume the structure of the server has a www folder as well ... one is usually a mirror of the other .... can you check that the configure.php files within both public and www folders have the same permissions. This is forlorn and probably futile. If you are certain that the permissions are correct ... the script that generates the error can be removed from application_top.php, you'll find it toward the bottom of the page ... though I would only do this if I were certain that the permissions were correct. Why this should be happening I have no idea ... I have always followed the install instructions to return certain files back to 644 and I've never had the 'error strip' appear jk I have just checked the www folder and it is 644. I did the install via Fantastico. I will now try and remove the error from application_top.php and then I will tell you how I get on. Thanks for your help! It is much appreciated :D Peter Brown
pynchon Posted March 11, 2007 Posted March 11, 2007 I have just checked the www folder and it is 644. I did the install via Fantastico. I will now try and remove the error from application_top.php and then I will tell you how I get on. Thanks for your help! It is much appreciated :D Peter Brown i think the line in application_top is define('WARN_CONFIG_WRITEABLE', 'true'); you can just change this to define('WARN_CONFIG_WRITEABLE', 'false'); and see what happens cue *drum roll* and *sharp intake of breath* john k
PeterBrown Posted March 11, 2007 Author Posted March 11, 2007 i think the line in application_top is define('WARN_CONFIG_WRITEABLE', 'true'); you can just change this to define('WARN_CONFIG_WRITEABLE', 'false'); and see what happens cue *drum roll* and *sharp intake of breath* john k Woot! It worked! I owe you one big time. Thanks alot :D - Peter Brown
pynchon Posted March 11, 2007 Posted March 11, 2007 i think the line in application_top is define('WARN_CONFIG_WRITEABLE', 'true'); you can just change this to define('WARN_CONFIG_WRITEABLE', 'false'); and see what happens cue *drum roll* and *sharp intake of breath* john k the gathered crowds breathe a sigh of relief and burst into spontaneous applause jk :)
pynchon Posted March 11, 2007 Posted March 11, 2007 the gathered crowds breathe a sigh of relief and burst into spontaneous applause jk :) although it doesn't solve the problem as to why the error was showing despite the permissions being correct ... hmmmm ... jk
drrtybyl Posted March 21, 2007 Posted March 21, 2007 although it doesn't solve the problem as to why the error was showing despite the permissions being correct ... hmmmm ... jk I have just had the same problem installing version 2.2ms2.. Permissions are set properly and I have installed manually to a /public_html/ dir without SSL. Perhaps this is a bug?
chooch Posted March 21, 2007 Posted March 21, 2007 I have just had the same problem installing version 2.2ms2.. Permissions are set properly and I have installed manually to a /public_html/ dir without SSL. Perhaps this is a bug? And what have you set them to? If you did 644 then you should try 444 and see what happens. Upon receiving fixes and advice, too many people don't bother to post updates informing the forum of how it went. Until of course they need help again on other issues and they come running back! Why receive the information you require in good faith for free, only to then have the attitude to ignore the people who gave it to you? There's no harm in saying, 'Thanks, it worked'. On the contrary, it creates a better atmosphere. CHOOCH
Recommended Posts
Archived
This topic is now archived and is closed to further replies.