Koozali.org: home of the SME Server

php to recognize other file extensions (php, php3,php4, etc)

pabtro

php to recognize other file extensions (php, php3,php4, etc)
« on: March 25, 2002, 01:28:43 AM »
Hi,

I am trying to locate the httpd.conf file or equivalent in order to add get the .php4 extension recognized.

Currently my hosting service only accepts the .php4 extension and I would like to continue to use my e-smith server as a development platform.

If someone could indicate where should I insert the line:

AddType application/x-httpd-php .php4

or equivalent I would appreciate it.

Thanks a lot,
Pablo

Grub

Re: php to recognize other file extensions (php, php3,php4,
« Reply #1 on: March 25, 2002, 11:51:36 PM »
/etc/mime.types

pabtro

Re: php to recognize other file extensions (php, php3,php4,
« Reply #2 on: March 26, 2002, 05:59:33 AM »
Thanks!, I added the line:

application/x-httpd-php         php php3 php4

to the files:

/etc/mime.types
/etc/e-smith/templates/etc/mime.types/template-begin

and after a reboot voila!

Pablo