By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,968 Members | 1,684 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,968 IT Pros & Developers. It's quick & easy.

session_start() problem

P: n/a
MZ
Hello!

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/config.inc.php 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/config.inc.php 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
M.
May 6 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hello

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 :)

Regards,
Piotr

MZ napisał(a):
Hello!

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/config.inc.php on
line 2
May 6 '07 #2

P: n/a
Użytkownik "Piotr" <pv*@poczta.onet.plnapisał w wiadomo¶ci
news:f1**********@nemesis.news.tpi.pl...
Hello

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 :)

Regards,
Piotr

MZ napisał(a):
>Hello!

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/config.inc.php
on
line 2


Thank you a lot my Polish friend...
Marcin
May 6 '07 #3

P: n/a
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/config.inc.php 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?
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
directory).

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

Best regards
May 6 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.