session_start() problem

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have registered my old page on new server, but this page doesn`t work on  
this new server and I don`t know why.

I get such error message:

Warning: session_start() [function.session-start]: SAFE MODE Restriction in  
effect. The script whose uid is 1113 is not allowed to access /var/tmp owned  
by uid 0 in /home/ZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/ on  
line 2

Fatal error: session_start() [<a  
href='function.session-start'>function.session-start</a>]: Failed to  
initialize storage module: files (path: ) in  
/home/ZZZZZZZZ/domains/YYYYYYY/public_html/MZ_CRM/ on line 2

Could you help me what it is? How to fix this problem? My page worked well  
on the previous server and I have never gotten such error?
Is it a configure problem on the server? Is it a problem which should be  
fixed up by administrator?

Thank you in advance for help

Re: session_start() problem


when you start a session, php creates a file where sesion variables are
saved. It seems that php has no permision to do that. Ask your system
administrator to fix it.

It might be related to session.save_path directive in php.ini.
If this one is set to directory without persmisions to write, then there
is a problem.

The point is, you cant fix it, ask your admin to do it, he should know
what to do :)


MZ napisaƂ(a):
Quoted text here. Click to load it

Re: session_start() problem

Quoted text here. Click to load it

Thank you a lot my Polish friend...

Re: session_start() problem

Quoted text here. Click to load it

As already said, it is a configuration issue. The temp directory's owner  
is not the user that runs the PHP script. There are two ways to solve it:

- Use a separate directory for the sessions, that is owned by the  
PHP-running user,
- Or configure PHP to use group checking instead of user checking. (the  
PHP running user must then be part of the group that owns the temp  

Read the documentation about "safe mode" for more details.

Best regards

Site Timeline