How to change tmp directory/permission problems

Having trouble installing serendipity?
Post Reply
vollkorn
Regular
Posts: 13
Joined: Mon Jul 30, 2007 2:52 pm

How to change tmp directory/permission problems

Post 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
chickens
Regular
Posts: 192
Joined: Wed Dec 06, 2006 12:15 am
Location: Vegas
Contact:

Post 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.
vollkorn
Regular
Posts: 13
Joined: Mon Jul 30, 2007 2:52 pm

Post by vollkorn »

Thanks, I could solve this in other ways. My serendipity is now running as cgi.
Post Reply