Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2008 19:02:44 -0500
From:      APseudoUtopia <apseudoutopia@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   PHP Session Support in /tmp
Message-ID:  <27ade5280811231602m4900af50t83daafca16f94b97@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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.

Thanks very much.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27ade5280811231602m4900af50t83daafca16f94b97>