Click to See Complete Forum and Search --> : PHP+apache problem


Anon
06-17-2001, 01:43 PM
Hi:

I got apache installed on my linux box, and have even re-installed PHP_4.0.4 several times, but still encounter this problem. Each time I run a .php file, the netscape browser opens up a "save as type.....window". It appears the server isn't parsing or regonizing the .php extension. I have the AddType Lines uncommented out, and have followed the documentation for installing PHP and apache pretty good.

Any help?

Anon
06-18-2001, 10:35 AM
Have you restarted Apache since you installed PHP?

Anon
06-18-2001, 12:13 PM
I have the same problem too.
Apache is restarted.

Anon
06-18-2001, 12:28 PM
What does your Add Type line look like, cut and paste it here for me.

The Lines you need in Apache for PHP to work are these and they should look like this:

LoadModule php4_module libexec/libphp4.so
AddModule mod_php4.c
AddType application/x-httpd-php .php .html .php3

Anon
06-20-2001, 11:41 AM
Thanks a lot Rob

I don't know what to attribute to the cause of the problem, but u won't believe that I just decided to try and see if it'll work again, only to find out everything's working fine.

Seems like i needed to reboot my machine instead of just restarting apache over and over again.

thanks 4 u r help.

Anon
07-03-2001, 11:43 AM
Seems like you restart the wrong Apache. It happened to me also. Try restarting with /usr/sbin/httpd start/stop/restart
and edit httpd.conf in file /etc/httpd/conf/httpd.conf