This option will reset the home page of this site. Restoring any closed widgets or categories.

Reset

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.

apache handlers

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:

  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.

You can also see below the list of default handlers in the cpanel

Handler Extension(s)

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.

VN:F [1.5.7_846]
Rating: 0.0/10 (0 votes cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Adding Handlers Directly In httpd.conf Of Apache
  2. Apache AddHandler application/x-httpd-php not working?
  3. How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers
  4. mod_security the Apache Module, The Apache Firewall blocking your website?
  5. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
  6. Adding and removing child nodes using javascript and DOM
  7. ScriptAlias and Alias in httpd.conf at a glance

8 Comments

  1. soorrubjextut says:

    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!

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  2. LOWNESSELDFER says:

    Hey…!!! such a neat forum my name is Daniel and I am from Fort Lauderdale

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  3. rerwonten says:

    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 yourselfhttp://conservingmoney.wordpress.com/

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  4. Jucexipura says:

    havent seen a website like this everything has been given properly..cheers

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  5. Yurikvugima says:

    a nice website…lot of stuffs and notable things in this website…

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  6. Lewawoqe says:

    The easiest and straight forwarf tutorial i have ever seen on internet

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  7. SteveJ says:

    Just joined the forum, it’s my first post, hello to everyone.

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)
  8. Frank says:

    Just joined the forum, it’s my first post, hello to everyone.
    petroula

    VA:F [1.5.7_846]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.5.7_846]
    Rating: 0 (from 0 votes)

Leave a Reply

Comments (required)

Spam Protected