PHP Session Support in /tmp

Ivan Voras ivoras at freebsd.org
Sun Nov 23 16:39:23 PST 2008


APseudoUtopia wrote:
> Hey.
> 
> PHP stores session data for the 'file' handler in /tmp, by default.
> For organizational purposes, I'd like to change this to something like
> /tmp/php_sessions/ or so. However, I have the clear_tmp_enable feature
> enabled, so /tmp is cleared on reboot. PHP wont create the
> php_sessions dir on it's own.
> 
> So basically, I'm looking for a way to create the dir
> /tmp/php_sessions/ each time the server is booted BEFORE apache
> starts. I'm sure I could do this somehow with the rc.d scripts, but I
> really have no idea how.

man 8 rc.local

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20081124/ffd61b86/signature.pgp


More information about the freebsd-questions mailing list