Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Safe mode


chycco

Recommended Posts

Posted

Hi

I have a big problem

I had installed OSC perfectly. One month of splendid activity.

But now (I don't konw why) it appears this message:

 

Warning: SAFE MODE Restriction in effect. The script whose uid is 1202 is not allowed to access /tmp owned by uid 0 in /web/htdocs/www.taconesdeaguja.com/home/zapatos-tacones-aguja/includes/header.php on line 30

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

How can Solve this problem?

thanks in advance

Posted

Ask your provider. He has updated PHP I guess and changed some php.ini settings. Send him the error messages and ask him to fix it.

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Posted

Ok Jan Thanx.

But, also this message is a consequence of updating php.ini ?

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.

 

another thanx

Posted
But, also this message is a consequence of updating php.ini ?

 

Warning: The sessions directory does not exist: /tmp. Sessions will not work until this directory is created.  

 

Yes. Please read the whole error message again:

 

Warning: SAFE MODE Restriction in effect. The script whose uid is 1202 is not allowed to access /tmp owned by uid 0

 

This means that the php-script is not allowed to access /tmp as it is outside the allowed directories.

 

There is a way out though. You could change the session storage to use the mysql database. That should do the trick.

 

This is set in either catalog/includes/configure.php (2.2-CVS) or in catalog/includes/application_top.php (2.1).

 

Look for the line:

 

 define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'

 

and change it to

 

 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

 

HTH

You can't have everything. That's why trains have difficulty crossing oceans, and hippos did not adapt to fly. -- from the OpenBSD mailinglist.

Posted

Jan: you are a genious! All

If you go to Granada (Spain) please call me: i wanna invite you to the best dinner of your life ! :-)

 

Massimo

Archived

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

×
×
  • Create New...