Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Chris
Mark Sargent wrote: Chris wrote: There's your problem. service httpd restart will most likely restart /usr/sbin/httpd. That's not the same as /usr/local/apache2 Remove the rpm to save confusion next time: rpm -e httpd then when you need to restart, always use the /usr/local/apache2/bin/a

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
Chris wrote: There's your problem. service httpd restart will most likely restart /usr/sbin/httpd. That's not the same as /usr/local/apache2 Remove the rpm to save confusion next time: rpm -e httpd then when you need to restart, always use the /usr/local/apache2/bin/apachectl file. Hi All

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Chris
Mark Sargent wrote: Chris wrote: Sounds like you're using the wrong script to restart apache. What command are you using? service httpd restart Rebooting will most likely pick up the /etc/init.d/apache or /etc/init.d/httpd script. Have this in /etc/rc.local on Fedora 5, startApache=/us

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Ron Clark
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
Chris wrote: Sounds like you're using the wrong script to restart apache. What command are you using? service httpd restart Rebooting will most likely pick up the /etc/init.d/apache or /etc/init.d/httpd script. Have this in /etc/rc.local on Fedora 5, startApache=/usr/local/apache2/bin/apac

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Chris
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-17 Thread Mark Sargent
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Chris
Mark Sargent wrote: Chris wrote: I should say check your httpd.conf file for "User" and "Group" - they are capitalized. Alternatively: ps aux | grep httpd yes, did that one and see it as starting as root, then goijg to daemon. Now, if I add daemon to the root group, isn't that a security

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
Chris wrote: I should say check your httpd.conf file for "User" and "Group" - they are capitalized. Alternatively: ps aux | grep httpd yes, did that one and see it as starting as root, then goijg to daemon. Now, if I add daemon to the root group, isn't that a security issue? Should I create

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Chris
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. ju

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Chris
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. ju

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
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

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Richard Lynch
Sounds to me like your boot scripts are using a different httpd.conf than the one you are using when you re-start it by hand. Once you accept that proposition, you're looking at some OTHER issue in the by-hand httpd.conf that is screwing up the URLs, probably mod_rewrite or messed up VirtualHosts

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Jochem Maas
nicolas figaro wrote: ... try to set it to a subdirectory of your DocumentRoot. (check httpd.conf for the DocumentRoot). (/www/root/default_vhost/tmp for example, if /www/root/default_vhost is your DocumentRoot). NO - DONT EVER DO THIS tmp/session files should not be stored in a directo

Re: [PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread nicolas figaro
Mark Sargent a écrit : Hi All, I get this, Not Found The requested URL /movie1.php was not found on this server. Apache/2.2.0 (Fedora) Server at localhost Port 80 when setting session.save_path to /tmp in /usr/local/l

[PHP] 404 After Setting session.save_path to /tmp

2006-05-16 Thread Mark Sargent
Hi All, I get this, Not Found The requested URL /movie1.php was not found on this server. Apache/2.2.0 (Fedora) Server at localhost Port 80 when setting session.save_path to /tmp in /usr/local/lib/php.ini. Even if I ch