Home > Cpanel scripts or addon software installations > oscommerce and php safe mode

oscommerce and php safe mode

October 6th, 2009

:: QUESTION ::

I am running php safe mode from several weeks now , without any big problem .
But I found now that oscommerce generate an error using php safe mode …

Warning: is_dir() [function.is-dir]: SAFE MODE Restriction in effect. The script whose uid is 32003 is not allowed to access /tmp owned by uid 0 in /home/test/public_html/oscommerce/includes/header.php on line 30

:: ANSWER ::

Just do this:

Uncoment the second line in each (remove ‘#’):

#do we need this?
#regsrep(”$installdir/includes/configure.php”,”\(\’STORE_SESSIONS\’”,”define(’STORE_SESSIONS’, ‘mysql‘);”);

#do we need this?
#regsrep(”$installdir/admin/includes/configure.php”,”\(\’STORE_SESSIONS\’”,”define(’STORE_SESSIONS’, ‘mysql‘);”);

in the file:
/usr/local/cpanel/addons/osCommerce/install

Then reinstall oscommerce cart.

Cpanel scripts or addon software installations

  1. No comments yet.
  1. No trackbacks yet.