facebook twitter youtube
in Apache - 15 May, 2010, This Tutorial Has Been Viewed 23,733 Times.
by admin - 4 comments
Apache AddHandler application/x-httpd-php not working?
VN:F [1.9.22_1171]
Rating: 7.4/10 (9 votes cast)

Some times the AddHandler application/x-httpd-php .php .htm .html .my whatever if you put this in .htaccess file or in HTTPD.conf it seems to be not working.

Because sometimes especially if you are using a shared hosting it will be always better if you can find out the version of PHP currently running on your server using phpversion().
So if your host is using PHP v 5+ then the handler that is specified above wont be working and once you hit the webpage, you will be either asked to save the webpage or probably if you check the souce you can see your php codes are not compiled properly.

How to fix this?

Its pretty simple you just need to add the below handler in your .htaccess file

AddHandler application/x-httpd-php5 .htm .php .my

Thanks :)

VN:F [1.9.22_1171]
Rating: 7.4/10 (9 votes cast)
Apache AddHandler application/x-httpd-php not working?, 7.4 out of 10 based on 9 ratings

Incoming search terms:

coded by nessus

Leave a Reply

  • //29 Jul 2010


    Its work my site

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
  • //18 Apr 2011

    Don’t work for me :(

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
    • //04 Jul 2011

      Please let me know what exactly is your issue?

      VN:F [1.9.22_1171]
      Rating: 0.0/5 (0 votes cast)
  • //01 Aug 2011

    Thanks, a lot! I’ve been searching all day…

    VA:F [1.9.22_1171]
    Rating: 0.0/5 (0 votes cast)
Please support the site
By clicking any of these buttons you help our site to get better