Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: pabtro on March 25, 2002, 01:28:43 AM

Title: php to recognize other file extensions (php, php3,php4, etc)
Post by: pabtro 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
Title: Re: php to recognize other file extensions (php, php3,php4,
Post by: Grub on March 25, 2002, 11:51:36 PM
/etc/mime.types
Title: Re: php to recognize other file extensions (php, php3,php4,
Post by: pabtro 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