/me takes a bow
thank you, thank you.
Just doing my bit. (and having enormous fun showing off my knowledge because I'm so modest🙂 )
The lines in the httpd.conf should look exactly like the manual says:
-- quote --
17. Edit your httpd.conf or srm.conf file and add:
For PHP 3:
AddType application/x-httpd-php3 .php3
For PHP 4:
AddType application/x-httpd-php .php
You can choose any extension you wish here. .php is simply the one
we suggest. You can even include .html .
- Use your normal procedure for starting the Apache server. (You must
stop and restart the server, not just cause the server to reload by
use a HUP or USR1 signal.)
-- end quote --
Note that you can add as many extentions as you like on those lines.
If you want to use PHP4 to parse *.php3 files:
AddType application/x-httpd-php .php .php3
And maybe even html files (I would advice against this)
AddType application/x-httpd-php .php .php3 .htm .html
Common mistakes:
- You uncommented/added the wrong line, making the server only parse .php3 and you only use .php
you edited the wrong httpd.conf
Many servers have multiple httpd.conf files, one in the install directory, one that's actually in use, an exampkle file, etc..
You didn't restart apache.
You restarted apache by sending a HUP instead stopping and restarting
Less common error:
- You edited the httpd.conf while apache gets this info from srm.conf (unusual because apache defaults to not use the srm.conf)