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

Reset

Adding Handlers Directly In httpd.conf Of Apache

Please dont do the below steps if you are not familiar with Apache and httpd.conf

It may create errors if not done properly and your server might need a reinstallation.

My Guru

Hey guys here i am back again with another kind of approach for adding handlers for Apache Webserver in your local testing enviornment.Say your localhost.

I am having Xampp as my all in one apache server.I installed it in my C drive.

So the path of our htdocs will be

c:\xampp\htdocs

and the path of out httpd.conf file will be in

c:\xampp\apache\conf\httpd.conf

So open this file in your favourit text editor.I am using simple NOTEPAD

Guys you are going to edit this file which is the heart part of Apache so if any errors happen your complete server needs to reinstalled.For safer side please take a backup always.And if you are not too sure about the httpd.conf file please dont edit it.Please……

Now editing the heart i mean operating it.

Go to this portion of httpd.conf as shown below and add AddHandler application/x-httpd-php .balu line.

<IfModule mime_module>


AddHandler application/x-httpd-php .balu

</IfModule>

Simple thats it your own handler have been added.Insert any php code in a file with .balu extention and you will get it compiled as a regular .php file.

Dont forget to restart your apache server to get this in to effect.

Wow what an option…I love Apache and PHP so much.

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 apache handlers in cpanel
  2. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess
  3. Apache AddHandler application/x-httpd-php not working?
  4. How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers
  5. ScriptAlias and Alias in httpd.conf at a glance
  6. mod_security the Apache Module, The Apache Firewall blocking your website?
  7. Finding size of a directory using php

1 Comment

  1. Beablegog says:

    Hello, I can’t understand how to add your blog in my rss reader
    ————————
    sponsor: http://werato.ru/

    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