"Failed to write session data (files)."

joek.com

Joined: 2004-08-29
Posts: 1
Posted: Sun, 2004-08-29 21:22

I already tried searching for a while for this error in the forums and the FAQ, but have yet to find anything, so I'll now post for help.

I'll get right to the error(s) I'm getting (after turning on debug mode):

"Warning: Unknown(): open(/var/php_sessions/sess_e125544a01679d8bc6619522df870e79, O_RDWR) failed: No such file or directory (2) in Unknown on line 0

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

I get these two errors on the /gallery/albums.php page, and the /gallery/login.php page.

I believe that it's these errors which are preventing me from logging in (that the login sessions are not being saved) both here to add albums (and administer the site, etc) and in the Configuration Wizard (/gallery/setup/index.php) (I actually get the first page of the Configuration Wizard, but when I click "next step" I'm taken back to log in).

I'm sure I'll have to email my host to have them change some settings (settings I can't change myself, they've cut back on administration options and don't even allow mod_rewrite). But before I email them, I'm wondering what I might have to tell them they need to change.

Thank you,
Joe.

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://www.joek.com/gallery/
Gallery version: v1.4.4-pl1
Apache version: (don't know, like I said, host company removed a lot of admin)
PHP version (don't just say PHP 4, please): 4.3.3
Graphics Toolkit: (don't know, the Configuration Wizard found ImageMagick and NetPBM (except for pnmcomp))
Operating system: (mine or the server's?) Mine: WinXP Pro, Server: Linux
Web browser/version (if applicable): Mozilla 1.5

 
h0bbel
h0bbel's picture

Joined: 2002-07-28
Posts: 13451
Posted: Sun, 2004-08-29 21:38

They need to change the seesion_save.path directive in php.ini to a directory that actually exists, and give the apache user read/write permissions to it.