Page 1 of 1

How to change tmp directory/permission problems

Posted: Mon Jul 30, 2007 3:09 pm
by vollkorn
Hi,

the /tmp directory of the server I'm running serendipity 1.1.3 on got this permissions:

Code: Select all

drwxrwxrwt
So when I look at my blog at http://vollkorn.cryptobitch.de/ I get an error:
Warning: session_start() [function.session-start]: SAFE MODE Restriction in effect. The script whose uid is 1009 is not allowed to access /tmp owned by uid 0 in /home/vollkorn/public_html/serendipity_config.inc.php on line 16

Fatal error: session_start() [<a href='function.session-start'>function.session-start</a>]: Failed to initialize storage module: files (path: ) in /home/vollkorn/public_html/serendipity_config.inc.php on line 16
As I can't change the permissions I'd like to change the tmp directory used to ~/tmp, but I couldn't find how to do this.

I just want a running blog on this server, so what should I do to get there?

TIA

Posted: Mon Jul 30, 2007 7:25 pm
by chickens
You can try to change the .htaccess to change the setting. On my personal server whenever I set this I get a 500 internal server error, but you may have better luck.

add the following to your .htaccess file

Code: Select all

php_value session.save_path /path/to/home/directory/tmp
Be ready to remove it if it screws up more than it helps.

Posted: Wed Aug 01, 2007 4:29 am
by vollkorn
Thanks, I could solve this in other ways. My serendipity is now running as cgi.