Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Nov 2008 21:06:41 -0600
From:      Kevin Kinsey <kdk@daleco.biz>
To:        apseudoutopia@gmail.com
Cc:        Ivan Voras <ivoras@freebsd.org>, freebsd-questions@freebsd.org
Subject:   Re: PHP Session Support in /tmp
Message-ID:  <492A1A41.1060202@daleco.biz>
In-Reply-To: <ggct36$5cn$1@ger.gmane.org>
References:  <27ade5280811231602m4900af50t83daafca16f94b97@mail.gmail.com> <ggct36$5cn$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Ivan Voras wrote:
> 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
> 
And, by way of an alternate suggestion, remember that cron(8)
recognizes an "@reboot" special string instead of the normal
five-field time indicators.

@reboot		/bin/mkdir /tmp/php_sessions

HTH,

Kevin Kinsey

-- 
It's amazing how many people you could be friends
with if only they'd make the first approach.




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