The following guide describes how to install 2 php versions working together on one server.
We will do everything on the CentOS8 system with Apache and PHP-FPM.
We will do everything on the CentOS8 system with Apache and PHP-FPM
We will do everything on the CentOS8 system with Apache and PHP-FPM
sudo dnf install http://rpms.remirepo.net/enterprise/remi-release-8.rpm
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.3
sudo dnf module reset php
sudo dnf module enable php:remi-7.3
sudo dnf install php73 php73-php-fpm -y
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.4
sudo dnf module reset php
sudo dnf module enable php:remi-7.4
sudo dnf install php74 php74-php-fpm -y
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.3 We will do everything on the CentOS8 system with Apache and PHP-FPM:
sudo systemctl start php73-php-fpm
sudo systemctl enable php73-php-fpm
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.4 We will do everything on the CentOS8 system with Apache and PHP-FPM:
sudo systemctl start php74-php-fpm
sudo systemctl enable php74-php-fpm
We will do everything on the CentOS8 system with Apache and PHP-FPM:
sudo mkdir /var/www/strona1.domena.pl
sudo mkdir /var/www/strona2.domena.pl
We give permission:
sudo chown -R apache:apache /var/www/strona1.domena.pl
sudo chown -R apache:apache /var/www/strona2.domena.pl
sudo chmod -R 755 /var/www/strona1.domena.pl
sudo chmod -R 755 /var/www/strona2.domena.pl
We will do everything on the CentOS8 system with Apache and PHP-FPM / We will do everything on the CentOS8 system with Apache and PHP-FPM
We will do everything on the CentOS8 system with Apache and PHP-FPM:
sudo nano /etc/httpd/conf.d/strona1.domena.pl.conf
It should look like this:
ServerAdmin admin@strona1.domena.pl
ServerName strona1.domena.pl
DocumentRoot /var/www/strona1.domena.pl
DirectoryIndex info.php
ErrorLog /var/log/httpd/strona1.domena.pl-error.log
CustomLog /var/log/httpd/strona1.domena.pl-access.log combined
SetHandler "We will do everything on the CentOS8 system with Apache and PHP-FPM:We will do everything on the CentOS8 system with Apache and PHP-FPM:/We will do everything on the CentOS8 system with Apache and PHP-FPM|We will do everything on the CentOS8 system with Apache and PHP-FPM://localhost"
We will do everything on the CentOS8 system with Apache and PHP-FPM :
SetHandler “proxy:We will do everything on the CentOS8 system with Apache and PHP-FPM:/We will do everything on the CentOS8 system with Apache and PHP-FPM|We will do everything on the CentOS8 system with Apache and PHP-FPM://localhost”
We will do everything on the CentOS8 system with Apache and PHP-FPM 1 We will do everything on the CentOS8 system with Apache and PHP-FPM 7.3
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.4
sudo nano /etc/httpd/conf.d/strona2.domena.pl.conf
The content:
ServerAdmin admin@strona2.domena.pl
ServerName strona2.domena.pl
DocumentRoot /var/www/strona2.domena.pl
DirectoryIndex info.php
ErrorLog /var/log/httpd/strona2.domena.pl-error.log
CustomLog /var/log/httpd/strona2.domena.pl-access.log combined
SetHandler "We will do everything on the CentOS8 system with Apache and PHP-FPM:We will do everything on the CentOS8 system with Apache and PHP-FPM:/We will do everything on the CentOS8 system with Apache and PHP-FPM|We will do everything on the CentOS8 system with Apache and PHP-FPM://localhost"
We will do everything on the CentOS8 system with Apache and PHP-FPM 7.4 We will do everything on the CentOS8 system with Apache and PHP-FPM:
SetHandler “proxy:We will do everything on the CentOS8 system with Apache and PHP-FPM:/We will do everything on the CentOS8 system with Apache and PHP-FPM|We will do everything on the CentOS8 system with Apache and PHP-FPM://localhost”
We are reloading the Apache server
sudo systemctl restart httpd
That's all.
The guide below describes how to install KeePass on Ubuntu. Całość wykonamy za pomocą kilku poleceń…
Master PDF Editor is a comprehensive PDF program, which includes many features. Oprócz tworzenia i edycji…
Iotop jest prostym narzędziem dla systemów Uniksowych umożliwiającym monitorowanie użycia dowolnego nośnika pamięci flash/hdd/ssd w…
You can separate two or more commands with semicolons (;), Semicolon (;): służy do oddzielania…
Poniższy poradnik opisuje w jaki sposób za pomocą konsoli możemy dokonać edycji danych zdjęcia exif.…
The following guide describes how to install Rocket.Chat on Rocky Linux 8 Całość bardzo prosto zainstalujemy…