make a custom apache handler (for multiple php versions)
- by user10580
ive succesfully installed php 5.2 and it runs as CGI.
ultimatly i want to put something like AddHandler application/x-httpd-php52 in the htaccess file of the dir i want to run it on.
however, this only really works in the virtual hosts because i cant wrap my head around how to deifne a custom handler.
<FilesMatch "\.php">
SetHandler application/x-httpd-php5
</FilesMatch>
ScriptAlias /php52-cgi /usr/lib/cgi-bin/php52-cgi
Action application/x-httpd-php5 /php52-cgi
AddHandler application/x-httpd-php5 .php
How can i do somthing like AddHandler application/x-httpd-php52 in the htaccess?