473,320 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

session_start() problem

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
3 4214
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Florence HENRY | last post by:
Hello, I've searched about my problem on google before posting, but I didn't find anything relevant... I have a problem with session_start. Here is my code : <html> <head> <?php...
19
by: Chris Allen | last post by:
Hi I'm new to PHP and I'm trying to create a Login Form. Once the user has logged in then he shouldn't have to log in again. The trouble is I'm getting a new session ID between every page and so...
4
by: K. Choi | last post by:
I had installed php 4.3.7 on my system and test some php code. But there is a serious problem. On my system(using apache2) the code, <?php session_start(); ?> gets some warning, Warning:...
5
by: cowofchaos | last post by:
when I use the session_start() function at the top of my scripts I get 5 errors on the page If anyone can help please do this has been a problem for a while and I cannot do much more work on my...
3
by: Trogdor | last post by:
I set up a server on an AMD 650 machine running gentoo linux. I installed Apachie 2, MySQL 4.1 and PHP 4.3.11 I use another computer on my local net (192.168.0.x) to access the server as a...
5
by: Niklas Uhlin | last post by:
Someone please explain why Session_Start fires multiple times / retains SessionID values between sessions, when you open an ASP.NET page from MS Word. For details of the problem, see below: 1....
0
by: Jason Lehman | last post by:
When testing on my local machine, the session_start fires fine. I try storing a value to my database, creating a timestamped text file, and writing a line of text to a general log file. All of...
19
by: lawrence k | last post by:
How can I find out where my script is outputting to the screen for the first time? My error logs are full of stuff like this: PHP Warning: session_start(): Cannot send session cache...
4
by: three-eight-hotel | last post by:
I'm somewhat of a newbie to PHP coding, but have developed a site using the technology, and have been pleasantly surprised by the capabilities offered. I am more comfortable in the ASP world,...
2
by: jwhite68 | last post by:
The essence of my problem is this. 1. I login to my website with user/password. 2. I select any option, which effectively re-calls index2.php with some additional parameters, to control whats...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.