Overview
If your site has been migrated from a different hosting environment to Shared Hosting, you may notice that your site’s PHP version does not match what is being shown in Shared Hosting. This is typically due to an AddHandler
line of code that has been carried over from your previous environment. You can disable this line of code by commenting it out in your .htaccess
file.
REQUIRED:
To view the .htaccess
file, you'll need to show hidden files in your File Manager.
Instructions
- Sign in to your Media Temple Account.
- Select ADMIN for the Shared Hosting server you want to use.
- Select cPanel Admin.
- Under Files, select File Manager.
- Open your
/public_html/
folder or the primary folder for the site that is showing the PHP discrepancy. - Select your
.htaccess
file and then select Edit. - Locate the
AddHandler
line of code for PHP and enter a#
before it. For example:
# AddHandler php-stable .php
- Select Save Changes.
Your site should reflect the Shared Hosting PHP version. You may need to clear the cache for your browser, CDN, or firewall to view these changes.
Resources
- You can check your site's PHP version by creating a PHP info file.
- How do I change PHP versions?
Comments