Sometimes it becomes useful to add an additional file type that is executed as PHP code. cPanel offers an interface for registering custom MIME types, allowing other file types to be executed by the PHP processor.
Procedure
- Access the user accounts cPanel interface and navigate to the MultiPHP Manager interface "cPanel / Home / Software / MultiPHP Manager". You will see the PHP Version for each domain under this account.
- Navigate to "cPanel / Advanced / MIME Types". On this page, there are two fields we're concerned with.
-
In the MIME Type field, add an application handler using the following format, where XX is the provider (ea or alt) and YY is the version number without the decimal.
application/x-httpd-XX-phpYY - In the second field, add the file extensions you'd like to load via the PHP processor.
Please note, this will not be affected by changes made in the MultiPHP Manager.
Additional Resources
Comments
0 comments
Article is closed for comments.