We can set a action for certain file type to be handled by apache when they are called for ex. if you are using html code file and want apache to handle it as php file then you can set a handler for html file to work as php file.
To add a Apache Handler :
1. Login to your cpanel.
2. Check for Advanced option
3. Click on “Apache Handler”
4. Enter the extension you wish to add in the first field.
5. Enter the handler in the second field.
6. Click on the “Add” button.