Re: 404 After Setting session.save_path to /tmp

From: Date: Wed, 17 May 2006 13:00:28 +0000
Subject: Re: 404 After Setting session.save_path to /tmp
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-236342@lists.php.net to get a copy of this message
Mark Sargent wrote:
Chris wrote:
Big security issue - don't do it.
ps au | grep apache
root      .... /usr/sbin/apache
htdocs    .... /usr/sbin/apache
htdocs    .... /usr/sbin/apache
My apache is running as "htdocs". So as root create a temp folder and chown it to "htdocs": mkdir /my_temp_dir chown htdocs. /my_temp_dir
Hi All, ok, created dir, added htdocs user/group and changed ownership of dir to them. Thing I'm gettin is, every time I make an adjustment to either php.ini or httpd.conf, and do a restart, I keep getting a 404 error for all pages. Which only corrects when doing a reboot of the box. This was happening before I just followed your last steps. Thoughts? Cheers. Mark Sargent.
I thought you said in earlier email that your apache was running as user daemon. The tmp directory has to be owned by the user running apache. If you want to run apache as user apache group apache then you will have to edit httpd.conf and change the User and Group directives. Otherwise chown chgrp the tmp directory to the user/group that is listed in the httpd.conf file. -- Ron Clark System Administrator Armstrong Atlantic State University 11935 Abercorn Street Savannah, Ga 31419 Phone: 912 961 3234 Fax: 912 927 5353

« previous php.general (#236342) next »