[pmwiki-devel] Log messages

marc gmane at auxbuss.com
Wed Jan 17 04:40:38 CST 2007


Simon said...
> I hope this isn't off topic, but I wonder of someone could shine some
> light on these apache error log messages.
> This is on Apache 2.2.3 WinXP, PHP 5.2.0 and pmwiki beta 21
> 
> [Wed Jan 17 21:30:43 2007] [error] [client 203.97.214.12] PHP Warning: 
> Unknown:
> open(D:\\DOCUME~1\\Simon\\LOCALS~1\\Temp\\php\\upload\\sess_lqv6v4iglp7enm69e8bdpg1cp4,
> O_RDWR) failed: No such file or directory (2) in Unknown on line 0
> [Wed Jan 17 21:30:43 2007] [error] [client 203.97.214.12] PHP Warning: 
> Unknown: Failed to write session data (files). Please verify that the
> current setting of session.save_path is correct
> (D:\\DOCUME~1\\Simon\\LOCALS~1\\Temp\\php\\upload) in Unknown on line 0
> [Wed Jan 17 21:31:09 2007] [error] [client 203.97.214.12] PHP Warning: 
> session_write_close() [<a
> href='function.session-write-close'>function.session-write-close</a>]:
> open(D:\\DOCUME~1\\Simon\\LOCALS~1\\Temp\\php\\upload\\sess_lqv6v4iglp7enm69e8bdpg1cp4,
> O_RDWR) failed: No such file or directory (2) in
> E:\\home\\tahi\\public_html\\pmwiki\\pmwiki.php on line 1731
> [Wed Jan 17 21:31:09 2007] [error] [client 203.97.214.12] PHP Warning: 
> session_write_close() [<a
> href='function.session-write-close'>function.session-write-close</a>]:
> Failed to write session data (files). Please verify that the current
> setting of session.save_path is correct
> (D:\\DOCUME~1\\Simon\\LOCALS~1\\Temp\\php\\upload) in
> E:\\home\\tahi\\public_html\\pmwiki\\pmwiki.php on line 1731
> 
> I'm note sure where or how I should start looking

Pm will know the specifics, but it looks like this is the clue:

> Unknown: open(D:\\DOCUME~1\\Simon\\LOCALS~1\\Temp\\
>    php\\upload\\sess_lqv6v4iglp7enm69e8bdpg1cp4,
> O_RDWR) failed: No such file or directory

You session directory is AWOL.

In php.ini, go to the [Session] section and check the values of

  session.save_handler and session.save_path

I expect that you have (from "Failed to write session data (files)."):

  session.save_handler = files

which is normal/default, but

  session.save_path

is unset (commented out)

If this is a test system, then something like:

  session.save_path = d:/Apache/logs

or

  session.save_path = c:/temp

should sort you out. Note that the directory must exist; PHP will not 
create it.

-- 
Cheers,
Marc




More information about the pmwiki-devel mailing list