chycco Posted October 10, 2002 Posted October 10, 2002 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
Jan0815 Posted October 10, 2002 Posted October 10, 2002 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.
chycco Posted October 10, 2002 Author Posted October 10, 2002 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
Jan0815 Posted October 10, 2002 Posted October 10, 2002 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.
chycco Posted October 10, 2002 Author Posted October 10, 2002 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.