How to change the PHP version in DirectAdmin?

1. Log into your DA account

2. Navigate to Account Manager >> Domain Setup

3. Select the domain you want to change the PHP version for.

4. On the right side click on the  PHP Version Selector link and select the desired PHP version from the list.

 

5. Click the SAVE button. You will see the confirmation message “PHP versions saved“. The change will be in effect after about 1 minute.

 

To check the PHP version your site is using you can create a file phpversion.php with the following content and open it in your web browser:

<?php
// prints e.g. 'Current PHP version: 8.0.1'
echo 'Current PHP version: ' . phpversion() . '<br/>';


?>
  • php version change
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Installation Guide

Step 1: Do you meet the system requirements?   Clean OS install: check install.php to ensure...

System Requirements

System Requirements #Operating system Operating systems supported by DirectAdmin are listed in...

How to repair a database in DirectAdmin?

1. Log in to your DirectAdmin Account. 2. In the Account Manager section, click on the MySQL...

How to modify database user privileges in DirectAdmin?

1. Log in to your DirectAdmin Account. 2. In the Account Manager section, click on the MySQL...

How to install WordPress within DirectAdmin control panel?

1) Log in to Your DirectAdmin 2) If You have more then 1 domain, click any of them to get to the...

Powered by WHMCompleteSolution