Title: Upgrading php via htaccess
Last modified: July 30, 2017

---

# Upgrading php via htaccess

 *  [digitaldude400d](https://wordpress.org/support/users/digitaldude400d/)
 * (@digitaldude400d)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/upgrading-php-via-htaccess/)
 * Hello
 * I am having issues with installing a themes or plugins. I have been told that
   its because I need to have a newer version of php installed. My hosting company
   hasnt upgraded yet and they are still using 5.4.24
 * Researching shows that I can add code to htcaccess and that it will fix the problems.
   So this is what I have,
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule
   ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}!-
   d RewriteRule . /index.php [L] </IfModule>
 * # Use PHP 7.1
    AddType application/x-httpd-php71 .php # END WordPress
 * The problem now is that when I try to go to the site my browser creates a download
   dialogue box to download files instead of displaying them. What am I doing wrong?
 * Thanks

Viewing 1 replies (of 1 total)

 *  Moderator [t-p](https://wordpress.org/support/users/t-p/)
 * (@t-p)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/upgrading-php-via-htaccess/#post-9364979)
 * If your server does not allow auto installing/updating, then my suggestion is
   to try doing it annually:
 * – [https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation)
 * – [https://codex.wordpress.org/Using_Themes#Adding_New_Themes_Manually_.28FTP.29](https://codex.wordpress.org/Using_Themes#Adding_New_Themes_Manually_.28FTP.29)

Viewing 1 replies (of 1 total)

The topic ‘Upgrading php via htaccess’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [t-p](https://wordpress.org/support/users/t-p/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/upgrading-php-via-htaccess/#post-9364979)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
