Last updated on August 4th, 2022 at 08:36 am

In this tutorial let us try to add apache handlers through CPANEL.

To add an Apache handler:

  1. Click on the Apache handlers button on the home page.
  2. Enter the file extension in the Extension(s) field. You need to add the . before the extension name.
  3. Enter the Apache handler in the Handler field.
  4. Click on the Add button.

For example if you want to add a file with extension .tom

All you have to do is type .TOM extension in the Extension(s) field and type application/x-httpd-php in the HANDLER field . Then press Add button.

If you are using php version 5 or version 7 then try adding application/x-httpd-php5 or application/x-httpd-php7. Basically replacing the number after x-httpd-php with the version of your PHP.

Assuming that your index file has index.tom extention, type on the browser

and you will get your php scripts inside this file compiled successfully.

7 thoughts on “Adding apache handlers in cpanel”
  1. Hi, I just became a part of this forum here and looking forward to helping. Great work by the admin and mods and every member around. You can really tell when people put a lot of effort into a forum and it definitely shows here!

Leave a Reply

Your email address will not be published. Required fields are marked *