On my apache server I'd like to run multiple versions of PHP concurrently so that I can easily switch between them depending on the needs of the project. I noticed that some shared hosting providers who offer multiple versions of PHP require you to define the version of PHP you need in your .htaccess:
AddHandler application/x-httpd-php5 .php
I'd like to implement something like this on my server so that I can easily switch PHP versions:
AddHandler application/xhttpd-php53 .php
# .. or ..
AddHandler application/xhttpd-php54 .php
# .. or ..
AddHandler application/xhttpd-php55 .php
However all of the versions of PHP that I've compiled have a handler named application/xhttpd-php or php5-script. I've tried to search for a ./configure flag that allows you to change these handler names, but nothing turned up.
I searched the PHP github repo for these two strings and this is what I found:
/sapi/apache2filter/sapi_apache2.c(Lines 666-668)/sapi/apache2handler/sapi_apache2.c(Lines 68-70)/main/php.h(Line 242)/sapi/apache/mod_php5.c(Line 979)/sapi/apache_hooks/mod_php5.c(Line 1408)
Would it be safe to replace these strings with the new handler name and version number, or is there a wider used (ora actually documented) way to change the handler name?