DirectAdmin two versions of PHP

DirectAdmin PHP supports two versions side by side. Currently, the most popular combination is PHP 5.6 i 7.0. This way you can support both legacy software, as well as a very new and updated software.

In this tutorial I will show you how to use CustomBuild to run two versions of PHP.

Step 1: Changing the configuration CustomBuild
There are two ways to change the configuration CustomBuild: Direct file modification options.conf or using the command line. In this guide we will use the command line.

To set the two versions of PHP 5.6 i 7.0, first navigate to the folder CustomBuild:

Step 2: Setting PHP
Then, run the following command, to set versions:

After performing these commands verify file: options.conf

And check to see if he is as follows:

If everything is ok we make re-compile PHP.

If everything went well in the management domain on the bottom we should be able to downgrade php:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.