You are Here: FAQ ->Dedicated Servers->Root Server->HowTo...->Article #2


WebHosting 5.0 This article is for 1&1 Linux WebHosting only.


How can I execute .php3 files on my server?


Your Root-Server is preinstalled with PHP 4. As PHP 4 differs only marginally from PHP 3 you can let the PHP 4 module execute PHP 3 scripts as well. Here is how:

Configure Root Server for .php3 scripts


To make your Root-Server execute .php3 scripts as PHP scripts you need to alter the Apache configuration file "/etc/httpd/conf/httpd.conf" as follows:


#
# And for PHP 4.x, use:
#
<IfModule mod_php4.c>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php4
AddType application/x-httpd-php .php3
AddType application/x-httpd-php-source .phps
</IfModule>



Once you have done this you need to restart your webserver or "tell" the server to reprocess the configuration file.

p12345678:~ # /etc/init.d/apache restart

OR:

p12345678:~ # killall -HUP httpd


Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not Very Useful at all):
1 2 3 4 5