From owner-freebsd-questions@FreeBSD.ORG Mon Nov 24 00:02:45 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 533E9106564A for ; Mon, 24 Nov 2008 00:02:45 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: from wf-out-1314.google.com (wf-out-1314.google.com [209.85.200.172]) by mx1.freebsd.org (Postfix) with ESMTP id 290FE8FC0C for ; Mon, 24 Nov 2008 00:02:45 +0000 (UTC) (envelope-from apseudoutopia@gmail.com) Received: by wf-out-1314.google.com with SMTP id 24so1999397wfg.7 for ; Sun, 23 Nov 2008 16:02:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=nRmh2gbOAZ/FwqNk1nP38ke+7BiXr3C/StUCJoeQfU0=; b=U17gFrRI6GWC5UnodIpvCbCjhcPu7141vbUPaj8amxbMPar5Dn+Lp3xoKhesnn5cZw U92QeHY1xg+LItIZeN+QkmsOfNTSShVJEFCQmyxL1XS3pKyi+NQPuvWb9bgDizCT9UXR AaTPGY2/KVojxJ30PB/VZ7wpad2KYUCmmP8iw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=EhkwpjvuwPEY0vDgEqMaYl+lClGtzTBLBeFe6cGN4MCCPi0HjbPPhibcgH79LuC9D2 r6CyqCaG58XbUvQsJgXUPPI10Z/RcsjRQ1V7wvRglPtKMBlV08ozo5FNT7LMDNNRiPW/ le/CClzTHHz2sSJheR7tRVTr/VzQh12bTxaf8= Received: by 10.142.215.5 with SMTP id n5mr1379565wfg.5.1227484964900; Sun, 23 Nov 2008 16:02:44 -0800 (PST) Received: by 10.143.115.9 with HTTP; Sun, 23 Nov 2008 16:02:44 -0800 (PST) Message-ID: <27ade5280811231602m4900af50t83daafca16f94b97@mail.gmail.com> Date: Sun, 23 Nov 2008 19:02:44 -0500 From: APseudoUtopia To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: PHP Session Support in /tmp X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Nov 2008 00:02:45 -0000 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.