Click to See Complete Forum and Search --> : apache - php files download..not displayed


cygnus
04-25-2001, 12:26 AM
I just installed php on my linux machine, (using apache).
When I try to view www.mydomain.com/index.php, (http://www.mydomain.com/index.php,) the files try to download, rather than parsing and displaying them.

I searched all the faq's, ect, but didn't find an answer.

Off topic, but I also noticed that my version 1.3.9 uses srm.conf and access.conf. I thought they stopped that a few versions ago, keeping everything in httpd.conf. How do I override searching for those files at startup and keep it all in httpd.conf?

Thanks!

mstich
04-25-2001, 10:04 AM
Do you have the php module listed in your httpd.conf? You need that. Also you need to set the mime types in your httpd.conf to allow the parsing of .php files. Hope that helps.

killerasp
04-25-2001, 05:42 PM
what distro are you using?

mangeli
04-26-2001, 10:34 AM
What server are you using?

If you're using apache, is it 1.3.19?

did you compile apache with php in it or what. How did you "install" php and did you edit your httpd.conf file to allow for php parsing?

micxz
04-26-2001, 06:35 PM
Have you added this to your httpd.conf file?

LoadModule php3_module /usr/lib/apache/libphp3.so
AddModule mod_php3.c
AddType application/x-httpd-php3 .php3
AddType application/x-httpd-php3 .php
AddType application/x-httpd-php3-source .phps
AddType application/x-httpd-php3 .phtml

slightly different for PHP4. Good Luck,


;)

freebsd
04-26-2001, 08:20 PM
You can specify the extensions all on same line like so:

AddType application/x-httpd-php3 .php3 .php .phtml