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
To view the
.htaccess file, you'll need to show hidden files in your File Manager.
- 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
.htaccessfile and then select Edit.
- Locate the
AddHandlerline 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.