Get 30% off your WordPress Hosting with code WPSAVE10. Launch Faster. Save More!
  • 00 Days
  • 00 Hours
  • 00 Minutes
  • 00 Seconds

How do I change PHP version? - SIRSTEVEHQ CP

Standard PHP Version

By default, our hosting runs PHP 7+. If you need to switch PHP versions:

  1. Login to SIRSTEVEHQ CP
  2. Under Web Tools, select Change PHP Version.

Available PHP Versions

We support the following PHP versions on our Linux platform:

  • PHP 5.3 
  • PHP 5.4 
  • PHP 5.5 
  • PHP 5.6 
  • PHP 7.0 
  • PHP 7.1 
  • PHP 7.2 
  • PHP 7.3 
  • PHP 7.4 
  • PHP 8.0 
  • PHP 8.1 
  • PHP 8.2 
  • PHP 8.3
  • PHP 8.4

Note: Version changes are typically instant but may take up to 60 seconds.

Managed WordPress Platform

On our Managed WordPress Platform, we run PHP 7.0 and higher.

Note: PHP versions prior to 7.0 are not supported on the WordPress platform.

Changing PHP Version for Subdirectories/Subdomains

Note: This method is applicable only to shared hosting packages and is not supported on Cloud Servers.

To host multiple websites on the same package using different PHP versions:

  1. Navigate to the directory where you want to change the PHP version.
  2. Edit or create a .htaccess file.
  3. At the top of the file, add the following line to set the PHP version: 
      - For PHP 8.3: AddHandler x-httpd-php83 .php
      - For PHP 7.4: AddHandler x-httpd-php74 .php 
      - For PHP 5.6: AddHandler x-httpd-php56 .php

Changing PHP Version for WordPress Staging

To change the PHP version for a WordPress staging site:

  1. Navigate to staging_html within your WordPress package. 
  2. Add the appropriate AddHandler line to the .htaccess file with the desired PHP version.

Checking PHP Version

To verify the PHP version in use:

  1. Create a new PHP file, such as `info.php`, in the directory where you've changed the PHP version.
  2. Add the following code to the file:
  <?php 
  phpinfo(); 
  ?>

3. Access the file directly in a browser (e.g., staging.domain.com/info.php). The PHP version will be displayed at the top of the page like this:

PH_Pinfo_header_df7a0aba1a.png

Security Note: PHPinfo files can expose sensitive information. It's advisable to delete the PHPinfo file after checking your PHP version.

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How do I change PHP maximum upload file size? - SIRSTEVEHQ CP

On SIRSTEVEHQ CP Web hosting, PHP max upload file size is set to 128M by default. This can be...

What is the PHP memory_limit? - SIRSTEVEHQ CP

The PHP memory_limit is the maximum amount of server memory that each PHP script can use.  The...

Why is my website's PHP code displaying directly on the page? - SIRSTEVEHQ CP

PHP code loading directly onto your site page rather than executing usually indicates an issue...

Why is MySQL support missing from PHP installation? - SIRSTEVEHQ CP

Our web servers run PHP 7+ as standard. In this version of PHP the MySQL module has been replaced...

Can I use parent paths in Classic ASP? - SIRSTEVEHQ CP

ASP Parent Paths are disabled on our platform. As a result, Classic ASP scripts using "../"...