Click to See Complete Forum and Search --> : Php.ini, winxp, apache.....


fumemannen
08-28-2002, 02:17 PM
Warning: open(/tmp\sess_b238c6d9c632ae91e9ddf4cacd5b7502, O_RDWR) failed: m (2) in D:\Misc\Hemsida\natet\public_html\index.php on line 29

...is what I get when i try to initialize my sessions with session_start()...

[Session]
session.save_handler = files
session.save_path = \tmp
session.use_cookies = 1
session.name = PHPSESSID
session.auto_start = 0
session.cookie_lifetime = 0

...is what is said in php.ini... Anyone have a sollution?

tronghien
08-30-2002, 08:30 AM
Look for this line in the php.ini file
session.save_path = \tmp

Change "\tmp" to a writable directory on your server.

For example, if you're running Apache on C:\ drive, you will have a "htdocs" directory something like: C:\Apache\htdocs
Now create a folder under c:\apache\htdocs, e.g. tmp
So now you have c:\apache\htdocs\tmp

Finally change that line to
session.save_path = c:\apache\htdocs\tmp

(if that doesn't work try session.save_path = c:/apache/htdocs/tmp)

Hope it helps!

piersk
08-30-2002, 08:32 AM
And dont forget to reboot your computer. I changed the session directory and then couldnt figure out why it still wasnt registering the change, so I thought, what the heck I'll reboot, and then everything worked fine