You are Here: FAQ ->Dedicated Servers->Linux Root Server->How To?->Article #2


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


How to execute .php3 files on the server


Your Root-Server is pre-installed 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


Disclaimer: 1&1 provides the scripts and related information on this page as a courtesy, subject to 1&1's General Terms and Conditions of Service (the "GT&C"). As set forth in more detail in the GT&C, the scripts and information are provided "as-is", without any warranty, and 1&1 is not liable for any damages resulting from your use of the scripts or information.


SD2B2C806


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