Kategorie: DirectAdmin

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:

cd /usr/local/directadmin/custombuild

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

./build set php1_mode php-fpm
./build set php2_mode php-fpm
./build set php1_release 7.0
./build set php2_release 5.6

After performing these commands verify file: options.conf

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

And check to see if he is as follows:

php1_release=7.0
php1_mode=php-fpm
php2_release=5.6
php2_mode=php-fpm

If everything is ok we make re-compile PHP.

./build php n
./build rewrite_confs

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

Linux

Udostępnij
Opublikowane przez
Linux

Recent posts

KeePass2 2.52 w Ubuntu 22.04

The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń

2 years temu

Installing Master PDF editor in Ubuntu 22.04

Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji

2 years temu

iotop - memory monitoring

Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w

2 years temu

Run multiple commands in one cron job

You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania

2 years temu

Changing the exif data of a photo in the Linux terminal

Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.

2 years temu

Installing Rocket.Chat Server on Rocky Linux 8

The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy

2 years temu