When configuring an Apache server to use a Handler to run PHP code, I'm familiar with adding a line similar to below in httpd.conf
or .htaccess
:
AddHandler application/x-httpd-php81 .php
This tells Apache to use the named handler to interpret .php files. It's straightforward enough, but on different hosting services, and locally, I'm seeing differences in the specific name used for the handler, which is complicating the configuration of my environments. As a specific example, on a hosted web server the line has to contain the PHP version, as above, but with a locally installed Apache server, and PHP downloaded from php.net, the name is more general:
AddHandler application/x-httpd-php .php
In other situations I've seen some other variations, such as:
AddHandler application/x-httpd-ea-php81___lsphp
What dictates what names are supported/required? Searching online hasn't turned up any source of valid names, only config examples for different hosting environments. Is there any simple way I can influence the names expected on my local install?