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

Reset

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

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.5.7_846]
Rating: 10.0/10 (1 vote cast)
VN:F [1.5.7_846]
Rating: 0 (from 0 votes)

Related posts:

  1. Adding Handlers Directly In httpd.conf Of Apache
  2. Adding apache handlers in cpanel
  3. mod_security the Apache Module, The Apache Firewall blocking your website?
  4. How to run CGI or Perl Scripts in IBM Http Server [IHS] or Apache Servers
  5. C# simple console application
  6. ScriptAlias and Alias in httpd.conf at a glance
  7. Fix the problem in getting 500 Internal Server Error In Localhost Due To .htaccess

1 Comment

  1. Hello

    Its work my site
    thanks

    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