In this article, we will show you How to Compile a Single PHP Version from DirectAdmin.

We all know that there are multiple PHP versions available on a hosting platform. Users had to put all of these versions together, which took a long time. However, using DirectAdmin’s SSH access, it is easy to create a single PHP version, saving time.

In order to compile a single PHP version, follow these steps.

1. You need to log in to DirectAdmin Via SSH.

Note - Have a basic view of the PHP versions that are available?

2. Now you need to Enter the Command.

grep -P ‘php[\d]_’ /usr/local/directadmin/custombuild/options.conf

On the screen, you can see a list of PHP versions that are available.

3. You should choose a PHP version (if PHP 7.3) and attempt to run the code. (This is the version to use.)

1 cd /usr/local/directadmin/custombuild
2 ./build set php1_release 7.3
3 ./build update
4 ./build php_expert 7.3 php-fpm
5 ./build rewrite_confs

DirectAdmin will only compile the single PHP version you specified in the code with it.

We hope that you now have a good understanding of How to make a single PHP version out of DirectAdmin.If you continue to have problems with the protocol outlined above, please contact the bodHOST Team for constructive assistance 24×7. Also, check out the latest cPanel Web Hosting Plans.

Read Also: PHP Script to Test MySQL Database Connectivity

Popular Posts You May Read

Explore more hosting insights, tips and industry updates.

How to Use the Track Delivery Function in cPanel

In this article, we will elaborate on how to utilize the track delivery function within…

What is the difference Between Dual-Core and Quad-Core Processors

What is the difference Between Dual-Core and Quad-Core Processors

This guide will discuss the differences between Dual-Core and Quad-Core Processors and how they impact…

Need More Than Shared Hosting but Lack Server Management Experience?

Since 2003, bodHOST has been powering businesses with fully managed hosting solutions that go beyond…