How do I execute .php3 files when I have PHP4 installed on my Linux server?

by nixcraft · 1 comment

PHP4 do not have any problem to execute php3 files. The only problem is you need to force PHP4 to understand .php3 file extension as a php script.

Most modern Linux/BSD system comes with PHP4 (and now PHP5). They can execute PHP3 files without any problem.

Open you httpd.conf file and look for PHP4 configuration directive. Once located add following line to it:

AddType application/x-httpd-php .php3

Above line will make your server execute .php3 scripts as PHP scripts. Restart apahce to take effect.

Featured Articles:

Want to read Linux tips and tricks, but don't have time to check our blog everyday? Subscribe to our daily email newsletter to make sure you don't miss a single tip/tricks. Subscribe to our weekly newsletter here!

{ 1 comment… read it below or add one }

1 pharaoh 05.15.08 at 8:42 pm

Thanks for the tip, it really helped.

Leave a Comment

You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Previous post:

Next post: