You have the possibility to use multiple versions of PHP in the direct admin panel, and there are several versions of PHP available on the same hosting platform. Usually, users have to compile all these versions at once, which takes a lot of time. However, it is possible to compile a PHP version via SSH DirectAdmin access and save time. Join the Radib group to review the method of compiling a specific version of PHP together (for example, PHP7.4 version)

To compile a PHP version


1. Enter Direct Admin through SSH access.

First, you should check the available PHP versions to make sure which versions are available.

2. Enter the command:

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

A list of available PHP versions will appear.

Buy high-speed but cheap virtual server only in Radib

3. Select a PHP version (in this case, PHP version 7.4) and run this code. (Version 7.4 is used here)

cd /usr/local/directadmin/custombuild
./build set php1_release 7.4
./build update
./build php_expert 7.4 php-fpm
./build rewrite_confs

With that, DirectAdmin will compile only the version of PHP you specify in the code.

We are glad that you were with Radib.

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