|
Posted by Rik on 07/28/06 00:47
awebguynow wrote:
> I'm finding a few sources of problems in the CGI log ( of shared host
> ) Is this an Apache log, filtered by errors on my domain ?
>
> Hoping to clean up and run error-free asap.
> I had a few fatal errors, based on require("foo"), which I can fix,
> but I'm concerned with this one at this point. see below
>
> PHP 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
> PHP Warning: Unknown:
> open(/var/php_sessions/sess_cf7ce45dd2a55dd3be34a1a666321330, O_RDWR)
> failed: No such file or directory (2) in Unknown on line 0
>
> seems pretty obvious, this is a hosting issue.
Well, a configuration issue:
<?php
session_save_path('/a/path/that/does/exists');
?>
Which should be a path outside of the webroot (or at least protected by an
..htaccess file) that has writing permissions.
Further information to be found at:
http://www.php.net/manual/en/ref.session.php
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|