Don't know how to change PHP version on Directadmin Server. Or looking to downgrade/upgrade PHP Version for your website? We will help you to change PHP version of your Direactadmin Server.


Changing PHP Version from Directadmin.

 

For DirectAdmin Server without Cloudlinux

 

Login to your Directadmin account.

On top, select the domain for which you want to change the PHP version.

Find the current PHP Version option in the left sidebar with other basic details for the account. Click the Change option. It will show you a similar UI like the image below.

Select the PHP Version from the dropdown menu and tap on Save Button.

 


For CloudLinux Server users only.

 

Login to your Directadmin account.

On top, you can also select the domain for which the PHP version has to be changed.

Now search for Select PHP Version option in the Panel.

If found, click on it.It will show the present PHP version and dropdown menu to change the PHP version.

 

Checking PHP Version for your website.

 

Create a file in your home directory of the domain. Add the following codes to the file and then save it.

<?php
phpinfo();
?>

 

Now we will open in the browser www.yourdomain.com/phpinfo.php to test the current PHP Version. It will show the current PHP Info with all the PHP variables and settings.

 

Was this answer helpful? 0 Users Found This Useful (0 Votes)