Support Center

How to change PHP version on shared server using .htaccess

Last Updated: Mar 01, 2018 06:56PM EET

This guide describes how to change PHP version on shared servers by modifying the .htaccess file. 

To switch to  PHP 5.4 add the following line:

AddHandler application/x-httpd-php54 .php
 

To switch to  PHP 5.6 add the following line:

AddHandler application/x-httpd-php56 .php
 

To switch to  PHP 7.0 add the following line:

AddHandler application/x-httpd-php7 .php
 

To switch to  PHP 7.1 add the following line:

AddHandler application/x-httpd-php71 .php
 

In case this article leaves any of your questions or concerns unanswered, please, feel welcome to email us or post a public question.

More than (just) Themes
http://www.morethanthemes.com/


References
1. https://stackoverflow.com/questions/12561203/how-to-change-php-version-in-htaccess-in-server​

Contact Us

[email protected]
http://assets1.desk.com/
false
morethanthemes
Loading
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
about
false
Invalid characters found
/customer/en/portal/articles/autocomplete