Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Warning message for configure file - Please Help


PeterBrown

Recommended Posts

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!

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

Link to comment
Share on other sites

  • 2 weeks later...
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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...