For our Blog Visitor only Get Additional 3 Month Free + 10% OFF on TriAnnual Plan YSBLOG10
Grab the Deal

How to change PHP version in DirectAdmin?

Last Updated: November 22, 2025 2 min read YouStable
How to change PHP version in DirectAdmin

Suppose you are facing Outdated PHP Version errors on your website, then what will you do? Definitely, you will have to change PHP Version for your website. So in this tutorial, we will learn how to change PHP version in DirectAdmin.

This article will help you to change the PHP version on the Directadmin Panel.

Now, let’s see how you can change the PHP version for your Website using the Directadmin Panel.

How to Change PHP Version from Directadmin.

1. Login to your Directadmin account replacing domain.com with your domain name using the login credentials provided by your hosting provider.
https://domain.com:2222

2. On the top right corner, select the domain name for which the PHP version needs to be changed.

How to change PHP version in DirectAdmin? - screenshot 1

3. Scroll down and click “Select PHP Version”.

How to change PHP version in DirectAdmin? - screenshot 2

4. Click on the drop-down arrow near Current PHP Version

IINdT2QEI opWDGrD9OTWeCj62ezVF sHtgkc83PAWcb5OB4S6efuPkmyWp1hofLo4G d7dpEkpBpGEAbz8zLEHynHV DSAAAzlv1JvJXXY 2jdlpxWhave9DE3TYz9HEQ tm9

5. Select your PHP Version as per your requirement, here am selecting 7.4 and clicking on “Set as current”.YNnfaZBjDpOIqtgxlmguOO5DzjN02XbefXvKSWZJcUMruNMSH LMO3VhiweEN jW Msq8v0wfgatOo6KFyy4bJtWoZ8vn 5lZwP3sRIiV3iNHLKvjGnOuVWwe0x2gvztWzqOjlm4

The above steps will help you select your PHP Version. Now let’s see how we can check the PHP Version on your website.

Checking PHP Version for your website.

1. Create a file in your public_html directory of the domain with any name let’s say xyz.php.
Our file path will be /home/domain/public_html/xyz.php

2. Add the following line of code in the file and save it.

<?php
phpinfo();
?>

3. Now open your URL domain.com/xyz.php to test the current PHP Version. It will show the PHP Info web page with all the PHP variables and settings.LLFLcX6n6azuQjxnNfMMvqw4mlFaUDDpEo763Ok99EeQus7EOFGrnu9KKuOwtKQ8mrE8YMsxxmIN5IeUaiWXWtZwZIeoDlacUgBoGDlBFeklT5EKGp4uuB2JyZY i DjGV3GChrz

You may also like

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top