LoadModule php5_module "/usr/local/php5/php5apache2_2.so"
# For the ScriptAlias below
<Directory "/usr/local/php5">
AllowOverride None
Options ExecCGI
Order Allow,Deny
Allow from All
</Directory>
<Files "*.php">
AddHandler application/x-httpd-php .php
</Files>
ScriptAlias /php5/ "/usr/local/php5/"
Action php5-script "/php5/php-cgi"
# This is the directory which needs the special PHP
<Directory /var/www/htdocs/myoldphp>
RemoveHandler .php
<Files "*.php">
AddHandler php5-script .php
</Files>
</Directory>