Title: application/x-httpd-php
Last modified: February 2, 2017

---

# application/x-httpd-php

 *  [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * (@pauldotmac)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/)
 * For some reason when I try to access a wordpress website under development on
   my pc under localhost I get a dialogue box opens asking what firefox should do
   with an “application/x-httpd-php application” – same thing happens with IE. PHP
   is running as the non-wp sites, which also use PHP, on my PC all work. I have
   3 sites locally built round wp; 2 are fairly new, version 4+ – can’t tell you
   exactly which version as I can’t access the dashboard. The one that loads is 
   using an older version of wp 3+. The 2 that don’t work used to work until very
   recently. I’ve rebooted my pc but that hasn’t changed anything. I am running 
   winamp apache 2.4.4 / php 5.4.12
 * Suggestion please
 * Thanks
 * Paul

Viewing 7 replies - 1 through 7 (of 7 total)

 *  [Vladinka](https://wordpress.org/support/users/vladinka/)
 * (@vladinka)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8732066)
 * Hello, Paul!
    You may need to define your locally developed site’s php version
   your application is using. That is usually done in your .htaccess file. Firefox
   is probably asking you for what php version it should use to resolve your site
   with. The line should look like this ( depending on the particular php version
   the site is using) PHP 5.6 AddHandler application/x-httpd-php56 .php .php5 .php4.
   php3 PHP 5.5 AddHandler application/x-httpd-php55 .php .php5 .php4 .php3 PHP 
   5.4 AddHandler application/x-httpd-php54 .php .php5 .php4 .php3
 * I hope this information will be helpful to you.
    Regards
    -  This reply was modified 9 years, 3 months ago by [Vladinka](https://wordpress.org/support/users/vladinka/).
    -  This reply was modified 9 years, 3 months ago by [Vladinka](https://wordpress.org/support/users/vladinka/).
 *  Thread Starter [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * (@pauldotmac)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8735847)
 * Hi,
 * Thanks for the reply. I’ve done what you suggested the .htaccess file now says
 * AddHandler application/x-httpd-php54 .php .php5 .php4 .php3
 * but to no avail. But why would the 2 sites stop working? A couple of weeks ago
   all was fine.
 * Any other suggestions? Re-install winamp server?
 * Paul
 *  [Vladinka](https://wordpress.org/support/users/vladinka/)
 * (@vladinka)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8735903)
 * I suppose Firefox is asking you whether to download a file. Have you tried updating
   your php version to a newer one – like php 5.5, better yet php 5.6? It is possible
   that your wordpress version ( being 4+) may need a newer php version to work 
   with.
    Also, you should be able to check the wordpress version in the wp-includes/
   version.php.
 *  [Vladinka](https://wordpress.org/support/users/vladinka/)
 * (@vladinka)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8735943)
 * I also found this thread in the Mozilla support forum, if it turns out that is
   a browser issue, rather than a php version one.
    [https://support.mozilla.org/bg/questions/958007](https://support.mozilla.org/bg/questions/958007)
    -  This reply was modified 9 years, 3 months ago by [Vladinka](https://wordpress.org/support/users/vladinka/).
 *  Thread Starter [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * (@pauldotmac)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8737581)
 * Thank you for looking at this but it didn’t work. Also I get the same problem
   in IE so it is not linked to the rdf file in Firefox. Also my other php based
   websites that are not WP based all work, so the mimetype recognition is working.
 * Inside wp-includes/version.php I have
    $wp_version = ‘4.5.4’; $wp_db_version 
   = 36686; $tinymce_version = ‘4310-20160418’; $required_php_version = ‘5.2.4’;
   $required_mysql_version = ‘5.0’;
 * and
    $wp_version = ‘4.4.5’; $wp_db_version = 35700; $tinymce_version = ‘4208-
   20151113’; $required_php_version = ‘5.2.4’; $required_mysql_version = ‘5.0’;
 * For the 2 WP sites that don’t work and
 * $wp_version = ‘3.6.1’;
    $wp_db_version = 24448; $tinymce_version = ‘358-25336’;
   $required_php_version = ‘5.2.4’; $required_mysql_version = ‘5.0’;
 * for the WP site that does work.
 * My winamp installation is
    winamp server 2.4 Apache 2.4.4 PHP 5.4.12 MySQL 5.6.12
 * This is not a browser level problem. I think you are right it is a mimetype recognition
   issue.
 * Thanks for all your help and looking at this
 * Pau
 *  Thread Starter [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * (@pauldotmac)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8741379)
 * Now this is weird. I’ve downloaded versions of the 2 errant local websites from
   the webservers onto my local pc and one of them works. What’s even more strange
   is that I copied the index.php file from the working downloaded directory to 
   the none working directory and it doesn’t work, I get the original message about
   wanting to open the file.
 * Any suggestions?
 * Thanks
 * Paul
 *  Thread Starter [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * (@pauldotmac)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8955631)
 * I eventually solved this, it is all to do with the .htaccess file. Nothing to
   do with the mimetype at all. Try deleting the .htaccess file or removing stuff
   to do with the live version that is not applicable to the localhost version; 
   rewrite rules for directory names etc.
 * Paul

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘application/x-httpd-php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [pauldotmac](https://wordpress.org/support/users/pauldotmac/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/applicationx-httpd-php-2/#post-8955631)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
