Update to PHP 7.4 on all community guides

This commit is contained in:
Tek's GitHub Desktop 2020-11-08 15:57:33 -05:00 committed by Omar Kamel
parent c3f4b30ceb
commit 15edac4cde
6 changed files with 36 additions and 31 deletions

View File

@ -45,7 +45,7 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.3
### PHP 7.4
We recommend the remi repo to get the latest php packages.
```bash
@ -53,13 +53,13 @@ We recommend the remi repo to get the latest php packages.
yum install -y epel-release http://rpms.remirepo.net/enterprise/remi-release-7.rpm
yum install -y yum-utils
yum-config-manager --disable remi-php54
yum-config-manager --enable remi-php73
yum-config-manager --enable remi-php74
## Get yum updates
yum update -y
## Install PHP 7.3
yum install -y php php-common php-fpm php-cli php-json php-mysqlnd php-mcrypt php-gd php-mbstring php-pdo php-zip php-bcmath php-dom php-opcache
## Install PHP 7.4
yum install -y php php-{common,fpm,cli,json,mysqlnd,mcrypt,gd,mbstring,pdo,zip,bcmath,dom,opcache}
```
### Composer

View File

@ -28,15 +28,20 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.2
### PHP 7.4
We recommend the remi repo to get the latest php packages.
```bash
## Install Repos
dnf install epel-release
dnf install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
dnf module enable php:remi-7.4
## Get dnf updates
dnf update -y
## Install PHP 7.2
dnf install -y php php-common php-fpm php-cli php-json php-mysqlnd php-gd php-mbstring php-pdo php-zip php-bcmath php-dom php-opcache
## Install PHP 7.4
dnf install -y php php-{common,fpm,cli,json,mysqlnd,gd,mbstring,pdo,zip,bcmath,dom,opcache}
```
### Composer

View File

@ -23,13 +23,13 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.3
### PHP 7.4
```bash
## Get apt updates
apt update
## Install PHP 7.3
apt install -y php7.3 php7.3-cli php7.3-common php7.3-gd php7.3-mysql php7.3-mbstring php7.3-bcmath php7.3-xml php7.3-fpm php7.3-curl php7.3-zip
## Install PHP 7.4
apt install -y php7.4 php7.4-{cli,common,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip}
```
### Nginx
@ -94,15 +94,15 @@ The default php-fpm configuration is fine to use and can be started and then ena
commands below.
```bash
systemctl enable php7.3-fpm
systemctl start php7.3-fpm
systemctl enable php7.4-fpm
systemctl start php7.4-fpm
```
### Nginx
Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information.
#### SSL Configuration
<<< @/.snippets/webservers/nginx-php7.3.conf{5,11,26-27}
<<< @/.snippets/webservers/nginx-php7.4.conf{5,11,26-27}
### Redis Setup

View File

@ -25,9 +25,9 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.3
### PHP 7.4
```bash
## Install the PHP 7.3 repo for debian
## Install the PHP 7.4 repo for debian
apt install -y ca-certificates apt-transport-https
wget -q https://packages.sury.org/php/apt.gpg -O- | apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
@ -35,8 +35,8 @@ echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.li
## Get apt updates
apt update
## Install PHP 7.3
apt install -y php7.3 php7.3-cli php7.3-gd php7.3-mysql php7.3-pdo php7.3-mbstring php7.3-tokenizer php7.3-bcmath php7.3-xml php7.3-fpm php7.3-curl php7.3-zip
## Install PHP 7.4
apt install -y php7.4 php7.4-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}
```
### Nginx
@ -101,15 +101,15 @@ The default php-fpm configuration is fine to use and can be started and then ena
commands below.
```bash
systemctl enable php7.3-fpm
systemctl start php7.3-fpm
systemctl enable php7.4-fpm
systemctl start php7.4-fpm
```
### Nginx
Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information.
#### SSL Configuration
<<< @/.snippets/webservers/nginx-php7.3.conf{5,11,26-27}
<<< @/.snippets/webservers/nginx-php7.4.conf{5,11,26-27}
### Redis Setup

View File

@ -23,13 +23,13 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.2
### PHP 7.4
```bash
## Get apt updates
apt update -y
## Install PHP 7.2
apt install -y php7.2 php7.2-cli php7.2-gd php7.2-mysql php7.2-pdo php7.2-mbstring php7.2-tokenizer php7.2-bcmath php7.2-xml php7.2-fpm php7.2-curl php7.2-zip
## Install PHP 7.4
apt install -y php7.4 php7.4-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}
```
### Nginx
@ -94,8 +94,8 @@ The default php-fpm configuration is fine to use and can be started and then ena
commands below.
```bash
systemctl enable php7.2-fpm
systemctl start php7.2-fpm
systemctl enable php7.4-fpm
systemctl start php7.4-fpm
```
### Nginx

View File

@ -23,13 +23,13 @@ systemctl start mariadb
systemctl enable mariadb
```
### PHP 7.2
### PHP 7.4
```bash
## Get apt updates
apt update -y
## Install PHP 7.2
apt -y install php7.2 php7.2-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}
## Install PHP 7.4
apt -y install php7.4 php7.4-{cli,gd,mysql,pdo,mbstring,tokenizer,bcmath,xml,fpm,curl,zip}
```
### Nginx
@ -96,15 +96,15 @@ The default php-fpm configuration is fine to use and can be started and then ena
commands below.
```bash
systemctl enable php7.2-fpm
systemctl start php7.2-fpm
systemctl enable php7.4-fpm
systemctl start php7.4-fpm
```
### Nginx
Please check our [tutorial](/tutorials/creating_ssl_certificates.md) on generating SSL certificates for more information.
#### SSL Configuration
<<< @/.snippets/webservers/nginx-php7.2.conf{5,11,26-27}
<<< @/.snippets/webservers/nginx-php7.4.conf{5,11,26-27}
### Redis Setup
The default Redis install is perfectly fine for the panel. If you have Redis already in use you may want to look into