Knowledge Base
MilesWeb / DirectAdmin

How to Change and Check the PHP Version of a Domain on DirectAdmin Server?

Approx. read time : 5 min

Watch this video for a step by step process on how to Change and Check the PHP Version of a Domain on DirectAdmin Server

Finding it difficult to deal with PHP errors on your website? Planning to downgrade/upgrade PHP Version for your website? You have landed on the right place. In this guide, you will learn to change PHP version on DirectAdmin Server.

Now, letโ€™s check the steps to change the PHP version for your website using DirectAdmin Panel.

Steps to Change PHP Version for DirectAdmin Server without Cloudlinux

1. Login to your DirectAdmin account.

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

3. In the right-side bar, you will get to see the PHP version installed on the domain along with other basic details for that account. Here click on Change.

4. Select the PHP version that you want to install from the drop-down menu and click on the Save button.

5. You will get a success message once the PHP version is saved as below:

In this way, you can change the PHP version for your domain from DirectAdmin server without Cloudlinux.

Steps to Change PHP Version for DirectAdmin Server with Cloudlinux

1. Login to your DirectAdmin account.

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

3. Go to the Extra Features section and click on Select PHP version.

4. It will redirect you to the page of Select PHP version, where you can select the PHP version you want to install from the drop-down menu to change the PHP version.

5. Then click on Set as current besides the drop-down to set the selected PHP version.

Steps to Check the PHP Version for Your Website

1. At first, create a file with any name in the home directory of the domain. For this, go to System Info & Files and click on File Manager. Here click on public_html folder in the left-side bar.

2. Then click on New -> Text File -> PHP. Enter the name of the file and click on Create. For example, we will create phpinfo.php.

3. You will get a success message once the file is created as below:

Here, the file path will be /home/hostingideas.in/public_html/phpinfo.php

4. Right-click on the file and click on Edit. Then add the below line of code in the file and click on Save:

<?php
phpinfo();
?>

 



5. You will get a success message, once the code is saved as below:

6. Then browse www.hostingideas.in/phpinfo.php for testing the current PHP Version. You will see the PHP Info webpage with all the PHP variables and settings.

Your URL will be yourdomainname.com/phpinfo.php

Now, you can change PHP version on Direactadmin Server for your websites and also, check the current PHP verification on the website with these simple steps.

Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.

Trusted By Thousands of Clients & Big Businesses

We highly appreciate the kind and stellar feedback we receive from our customers. Delivering the best is our goal! MilesWeb is rated Excellent out of 5 based on reviews. Read more reviews.

Excellent
Based on reviews
2 hours ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
4 hours ago
Milesweb is superb Hosting pro...
Milesweb is superb Hosting provider ever, their Support team is amazing!!!...
Abhishek Singh
15 hours ago
Great support in great timing...
We need urgent assistance on changes in a primary domain on our client's Cpanel accounts and reached...
Riyaju Deen
21 hours ago
Best Website Hosting platform ...
I was new on MilesWeb. And needed help on multiple areas from setting up to getting started with cre...
Harshada
1 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
1 days ago
the team is very supportive th...
the team is very supportive though at times effort needs to be made to make understand the problem s...
Suree Sharma
1 days ago
I am using miles web for 3plus...
I am using miles web for 3plus years, very quick and perfect support by the team, they helped me man...
Sri Raghav
2 days ago
The service is good...
The service is good. They are answering with patience and doing the needful as soon as possible....
MR
2 days ago
Perfect and Valuable Server + ...
I am using MilesWeb Servers, The main thing which I getting are continuous support over everything w...
Gunjan Makwana
3 days ago
Very quick and helpful assista...
Very quick and helpful assistance. Support person listened properly and provided a nice solution....
Narendra
4 days ago
positively helped me with find...
positively helped me with finding insecure content on my website causing SSL to not work properly on...
Thaviraj Junglee
4 days ago
Exceptional support, Truly Pra...
I had opted for the basic wordpress hosting plan as I intended to experiment with various plug-ins. ...
Aseem Chandna