Re: 404 After Setting session.save_path to /tmp

From: Date: Wed, 17 May 2006 04:37:31 +0000
Subject: Re: 404 After Setting session.save_path to /tmp
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-236320@lists.php.net to get a copy of this message
Mark Sargent wrote:
Jochem Maas wrote:
NO - DONT EVER DO THIS!!!! tmp/session files should not be stored in a directory that can be [potentially] read via http. .htaccess directives can be used to block access to the dir BUT I still would recommend keeping 'tmp' outside of the web root. just make sure 'tmp' is writable by the user the webserver is running as.
Hi All, thanx. How do I determine what user httpd is running as? Cheers.
I should say check your httpd.conf file for "User" and "Group" - they are capitalized. Alternatively: ps aux | grep httpd or ps aux | grep apache the first column is the user it's running as. or lastly, probably the quickest way, create a phpinfo page and look for User/Group -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#236320) next »