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