# Sample apache2 config file to run php4 independently of php5 on the same server # The settings below assume that the document root is found at: /var/www/php4/www # /etc/hosts is update to point php4 at 127.0.0.1 # For more information, see: # http://phosphorusandlime.blogspot.com/2008/12/php4-and-php5-on-same-apache-server.html ServerName php4 # update this with the path to your document root DocumentRoot /var/www/php4/www/ # Run .php as PHP4 DirectoryIndex index.html index.htm index.shtml index.cgi index.pl index.php index.php4 index.xhtml AddHandler php-script .php4 Action php-script /cgi-bin/php4 ScriptAlias /php4-cgi /usr/lib/cgi-bin/php4 Action php4-cgi /php4-cgi AddHandler php4-cgi .php4 .php3 .php .phtml # update the Directory path to match document root above Options Indexes FollowSymLinks MultiViews ExecCGI AllowOverride All Order allow,deny allow from all