Search Our Database

How to Install PHP Selector And Upgrade PHP Version on DirectAdmin Custombuild 2.0 in Centos 7

Last updated on |

Step 1 – SSH to your server, and log in as root.

 

Step 2 – Edit the file “options.conf” from the path as below:-

vim /usr/local/directadmin/custombuild/options.conf

 

Step 3 – Edit the PHP version, set the “php_release” to the PHP version that you want to add, and the “php_mode” to the PHP handler that you want.

In this example, PHP1 is version 5.6 with mod_php handler, and PHP2 is 7.3 with php-fpm handler:

 

Step 4 – Save and exit the file by typing the command below:-

:wq

Step 5 – Run the following command to change to custombuild directory, and build the PHP:-

cd /usr/local/directadmin/custombuild

./build set_fastest

./build update

./build php n

 

Step 6 – If you login to Directadmin > Domain Setup > Your-Domain-Name > you should be able to select the PHP version of your choice.