[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
php+sessions+chroot
For anyone having problems with php sessions
in apache chrooted enviroment.
I just find out that in openbsd 3.4 with php 4.3.3
installed from ports or pkg the session path in chroot
must begin with a slash / starting from the first dir in
chrooted area.
For example if we assume that apache is as default chrooted to
/var/www and /var/www/tmp is the php session.save_path
dir
IN php.ini
session.save_path = /var/www/tmp NOT WORKING
session.save_path = tmp Writes the session but can not use it(strange)
session.save_path = /tmp WORKING. (Note that /tmp is not /tmp but
/var/www/tmp).
I did not find any explanation about this as it is not a normal behavior I
think.
Since openbsd 3.3 with php 4.2.3 plain tmp directory works fine.
I have spend many hours to figure out this so I hope it will help someone.
Regards,
Chris