Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

warning message at host


reffael

Recommended Posts

two questions for u, i'll be happy for some help, because right now i'm confused :)

 

1. i uploaded my store to the hosting service (linux/apache) and i'm getting this message in the pages

 

Warning: I am able to write to the configuration file: /home/site/public_html/includes/configure.php. This is a potential security risk - please set the right user permissions on this file.

 

i checked the persmission of this file and it's - 644

so what is the problem?

 

 

2. how do i control the warning messages (turn off/on) ?

 

thanks...

Link to comment
Share on other sites

Try chmod 444 for the includes/configure.php file

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

i found the source to the warning - in header.php

but i still don't understand why does it recognize the configure.php as writeable with 644 permission?

 

// check if the configure.php file is writeable

if (WARN_CONFIG_WRITEABLE == 'true') {

if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (is_writeable(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) ) {

$messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');

}

}

Link to comment
Share on other sites

It is reporting the file as writeable due to the configuration of your hosts server, every host sets up there server in there own way.

No longer giving free advice. Please place deposit in meter slot provided.  Individual: [=] SME: [==] Corporation: [===]
If deposit does not fit one of the slots provided then you are asking too much! :P

Is your Osc dated try Phoenix  raising oscommerce from the ashes.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...