php 5.2.3 upgrade more issue

Warning: session_save_path() [
href=’function.session-save-path’>function.session-save-path
]:
open_basedir restriction in effect.

with error reporting set, blank page won’t give anything 🙁

A little work need to be done since session not working properly after upgrade php from php 4.4.7 to php 5.2.3.

After doing install and uninstall php5 ports in freebsd 6.2 box. I can see that error.

Googling more to find some clue, I have one plus solution.

The idea is overwrite session_path

just make sure these lines exist in vhost directive :

php_admin_value open_basedir  /home/student

php_value session.save_path /home/student/session

make sure session in /home/student/session exist or make symlink to a directory.

It works now 🙂