Adding apache handlers in cpanel
A “handler” is an internal Apache command that tells the Apache server software what action to perform when a file is called.

Hi guys…
Today i was trying to add apache handlers to one of my webserver through cpanel.
I was actually having some doubt how to proceed because i was not sure of which handler i should give for the php files to run without .PHP extension.
After a lot of trial and error methods i have found out the Handler.
Here i have described how to add a handler with an example
To add an Apache handler:
- Click on the Apache handlers button on the home page.
- Enter the file extension in the Extension(s) field. You need to add the . before the extension name.
- Enter the Apache handler in the Handler field.
- Click on the Add button.
You can also see below the list of default handlers in the cpanel
|
For example if you want to add a file with extension say your name let your name be TOM
And you have a file named INDEX.TOM in which lot of PHP scripts are written , you want the apache server to compile it as a regular PHP file then the HANDLERS come in to effect
All you have to do is type .TOM extenstion in the Extension(s) field.
and type application/x-httpd-php in the HANDLER field and press Add button.
Now it will show a message that the
AHMHandler Added
The handler application/x-httpd-php has been assigned to the extensions .TOM
OR
Similar to the above message.
Now you are done
type on the browser
http://www.yoursitename.com/index.tom
and you will get your php scripts inside this file compiled successfully.
I want your valuable comments also.
Thanks Guys.
Related posts:
- Adding Handlers Directly In httpd.conf Of Apache
- Apache AddHandler application/x-httpd-php not working?
- How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers
- mod_security the Apache Module, The Apache Firewall blocking your website?
- Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
- Adding and removing child nodes using javascript and DOM
- ScriptAlias and Alias in httpd.conf at a glance

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!
Hey…!!! such a neat forum my name is Daniel and I am from Fort Lauderdale
Hey, I hate to intrude on the board with this, but they are giving away $1,000 Walmart gift cards on a blog.
You can see for yourself… http://conservingmoney.wordpress.com/
havent seen a website like this everything has been given properly..cheers
a nice website…lot of stuffs and notable things in this website…
The easiest and straight forwarf tutorial i have ever seen on internet
Just joined the forum, it’s my first post, hello to everyone.
Just joined the forum, it’s my first post, hello to everyone.
petroula