Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

CHMOD? :(


k1lljoy

Recommended Posts

Good day!

Would you be so kinf as to tell me: how should I chmod files inside th eshop directory? And what about file includes/configure.php ?

Thanx! :rolleyes:

And another thing - who did the russian translation? Horrible :ph34r: :unsure: :blink:

 

:)

Link to comment
Share on other sites

In directory catalog:

 

chmod 777 install/configure.php (user 755 after install)

chmod 777 admin/install/configure.php (user 755 after install)

 

chmod -R 777 images

chmod -R 777 admin/backups (create first)

chmod -R 777 admin/images

 

 

Mattice

"Politics is the art of preventing people from taking part in affairs which properly concern them"

Link to comment
Share on other sites

Hi,

 

Would you be so kind as to tell me: how should I chmod files inside th eshop directory? And what about file includes/configure.php ?

 

The CMOD of 444 on configure.php is an overkill. Replace

 

/catalog/includes/header.php - lines 20 - 25

 

// 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');
  }
}

 

... with

 

// check if the configure.php file permissions are set to EITHER world write OR group write
 if (WARN_CONFIG_WRITEABLE == 'true') {
   if ( (file_exists(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php')) && (fileperms(dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/includes/configure.php') & 18) ) {
     $messageStack->add('header', WARNING_CONFIG_FILE_WRITEABLE, 'warning');
   }
 }

 

The value of "18" checks the permissions bit

 

world write = 2

group write = 16

 

Peter

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...