Apache AddHandler application/x-httpd-php not working?

This Tutorial Has Been Viewed 7,418 Times.

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.

WHY?
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.13_1145]
Rating: 8.4/10 (7 votes cast)
VN:F [1.9.13_1145]
Rating: 0 (from 4 votes)

Apache AddHandler application/x-httpd-php not working?, 8.4 out of 10 based on 7 ratings

Incoming search terms:





You will also be interested in ,

Tags: ,

4 Responses

  1. Hello

    Its work my site
    thanks

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)
  2. Bogdan says:

    Don’t work for me :(

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: +1 (from 1 vote)
    • admin says:

      Please let me know what exactly is your issue?

      VN:F [1.9.13_1145]
      Rating: 0.0/5 (0 votes cast)
      VN:F [1.9.13_1145]
      Rating: 0 (from 0 votes)
  3. Kostas says:

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

    VA:F [1.9.13_1145]
    Rating: 0.0/5 (0 votes cast)
    VA:F [1.9.13_1145]
    Rating: 0 (from 0 votes)

Leave a Reply

Spam protection by WP Captcha-Free

Proudly designed by Mistonline.in.
Affordable Seo PackagesSeo BlogEdu Backlinks
More in Apache, htaccess, PHP (72 of 139 articles)