You are Here:
FAQ
Dedicated Servers
Linux Root Server
How To?
Article #2
|
How to execute .php3 files on the serverYour 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 |
© 2008 1&1 Internet Inc - About 1&1 Internet