I've successfully installed PHP 5.2 and it runs as CGI.
(5.3 is my default running on mod, or as the phpinfo says "Server API: Apache 2.0 Handler")
Ultimately I want to put something like
AddHandler application/x-httpd-php52 in the .htaccess file of the directory I want to run it in. is that defined somewhere? (since in compiled php 5.2 myself)
However, this only really works in virtual hosts because I can't wrap my head around how to define 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 something like
AddHandler application/x-httpd-php52 in the .htaccess?