Skip to main content

How to Change a Website's PHP Version

You can change the PHP version for a specific website to ensure compatibility with your website's software or to improve performance. This process is performed through the Hostek control panel and affects only the specific website selected during the...

You can change the PHP version for a specific website to ensure compatibility with your website's software or to improve performance. This process is performed through the Hostek control panel and affects only the specific website selected during the process.

Before you begin

You will need:

  • Access to your Hostek account

  • The specific website's domain or primary domain name

  • A backup of your website's files and database before making changes

Important: Changing the PHP version can impact the functionality of your website. If your website's code is not compatible with the new version, it may result in a "White Screen of Death" or other errors.

How to change the PHP version

  1. Log in to your Hostek control panel.

  2. Select the account containing the website you wish to update.

  3. Navigate to Website Settings > PHP Configuration.

  4. Locate the list of your websites and find the specific domain you want to update.

  5. Select the desired PHP version from the dropdown menu or selection list next to that domain.

  6. Click Update or Save.

Confirm the result

  • The control panel will display a success message confirming the change.

  • You can verify the change by visiting your website and checking the PHP version via a "PHP Info" page or a similar diagnostic tool.

  • Ensure all website features (such as forms, logins, and plugins) are functioning as expected.

How to roll back a PHP version after a website stops working

If your website stops functioning correctly after a change, you can revert to the previous version:

  1. Log in to your Hostek control panel.

  2. Navigate to Website Settings > PHP Configuration.

  3. Locate the affected domain.

  4. Select the previous PHP version from the list.

  5. Click Update or Save.

Limitations

  • This procedure only changes the PHP version for the specific domain selected.

  • Changes may take a few minutes to propagate across the server.

  • If you are using a specialized application that requires a specific PHP extension, ensure the new version supports that extension before switching.

Did this answer your question?