Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PHP MYSQL error on apache

Status
Not open for further replies.

Prizmm

Instructor
Joined
Mar 8, 2004
Messages
124
Location
US
I put in a script to allow users to login to our site and now I get these two error messages below the page:

Warning: write failed: Generic file system error (111) in Unknown on line 0

Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (sys:/php/sessiondata) in Unknown on line 0


Help? Thanks
 
Does the directory sys:/php/sessiondata exist ?
Can you write to it ?
Have you changed php.ini to point to this directory
what platform are you on ?
 
Does the directory sys:/php/sessiondata exist ? - Yes

Can you write to it ? - Yes, I think, how can I tell?

Have you changed php.ini to point to this directory - Where in the code do i tell it to point?

what platform are you on ? Its running on our Novell server.

Thanks
 
You have to make sure that
1) the path exists - note: It is the file system path, not a web root relative location
2) the user as which Apache is running has write privileges to the area
 
First off I have no knowledge if novell !.
On windows there is a file called php.ini which holds the config data for the php environment. Unix has the same file name and I would suspect that the novel has it as well but check the documentatrion. It's a real important file for php.

any how in there is a section called [session] which has an entry session.save_path which in windows in set to the directory you want to use, in your case is sys:/php/sessiondata. This might be the defaut under Novel as you were not aware of it (or did someone else install php ?).
As far as being able to write to it, your best bet is to try and create a file in it from the same user that php runs under.
hope this helps !
 
It works, I had our system admin take a look at the problem and he said that he came across some info in a novell forum, here is what he came up with:

"Aparantly apache has to run in the same address space as the OS, however the OS already runs an instance of apache 1.3 for admin purposes. So I moved the apache 1.3 for admin to a new address space, thus freeing up the OS address space for Apache2.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top