My site's PHP version is not updating in Shared Hosting

  • Applies to: Shared Hosting
    • Difficulty: Easy
    • Time Needed: 5-10
    • Tools Required: File Manager access


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.

To view the .htaccess file, you'll need to show hidden files in your File Manager.


  1. Sign in to your Media Temple Account.
  2. Select ADMIN for the Shared Hosting server you want to use.
  3. Select cPanel Admin.
  4. Under Files, select File Manager.
  5. Open your /public_html/ folder or the primary folder for the site that is showing the PHP discrepancy.
  6. Select your .htaccess file and then select Edit.
  7. Locate the AddHandler line of code for PHP and enter a # before it. For example:
    # AddHandler php-stable .php
  8. 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.


Was this article helpful?
0 out of 0 found this helpful