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 Edit or Manage DNS Records in Plesk

How to Edit and Manage DNS Records in Plesk

In this article, we will explain how you can edit or manage DNS records in…

How to Know Playback Speed of a Hard Drive with Debian?

Today, we will see a trick to calculate the playback speed of a hard drive,…

How to SSH a server or SSH Server Access

What is SSH? The Internet has developed the need for some secure methods of communication.…