With our standard hosting a number of PHP versions are available. While we maintain the servers on the minimum recommended version if you wish to use an older legacy version you can do so by adding one of the following lines to your htaccess file.
PHP Version: | Htaccess Code: | CLI Executable: |
5.3 | AddType application/x-httpd-php53 .php | /usr/local/php53/bin/php |
5.6 | AddType application/x-httpd-php56 .php | /usr/local/php56/bin/php |
7.3 | AddType application/x-httpd-php73 .php | /usr/local/php73/bin/php |
7.4 | AddType application/x-httpd-php74 .php | /usr/local/php74/bin/php |
8.0 | AddType application/x-httpd-php80 .php | /usr/local/php80/bin/php |
8.1 | AddType application/x-httpd-php81 .php | /usr/local/php81/bin/php |
If you are running WordPress in the hosting account you can change the PHP version from within the WordPress dashboard as follows.
IT IS IMPORTANT YOU HAVE A BACKUP OF YOUR SITE BEFORE PROCEEDING WITH THESE STEPS. TO FIND OUT HOW TO BACK UP YOUR SITE CLICK HERE.
1. Install the plugin “File Manager“, If you have not installed plugins before follow the instructions here.
2. Once installed go to [WP File Manager] [WP File Manager]
3. Locate the file “.htaccess” located in the root html folder, right click on it and select [Code Editor]
4 Add the appropriate Htaccess Code: from the table above to the top of the file then click [Save and Close]
Upon reloading the site you will now be using the new PHP Version.
Comments
0 comments
Please sign in to leave a comment.