mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Accommodate upcoming php 7.3 change (#12180)
* Accommodate upcoming php 7.3 change An announcement on Twitter as well as [this](https://github.com/librenms/librenms/pull/12118) says future release will depend on PHP7.3 minimum. CentOS 8 ships with 7.2 by default. Also, the composer package's availability via `dnf` was dropped somewhere by CentOS project, so one needs to install it "manually" nowadays. I have yet to find a different solution than the one showed here. Any inputs welcome. * Removed the dnf list command * Made manual composer install the fallback method * Fixed minimum PHP version.
This commit is contained in:
@@ -14,7 +14,7 @@ Connect to the server command line and follow the instructions below.
|
||||
> at `mysql>` prompts) or temporarily become a user with root
|
||||
> privileges with `sudo -s` or `sudo -i`.
|
||||
|
||||
**Please note the minimum supported PHP version is 7.2.5**
|
||||
**Please note the minimum supported PHP version is 7.3**
|
||||
|
||||
# Install Required Packages
|
||||
|
||||
@@ -39,15 +39,19 @@ Connect to the server command line and follow the instructions below.
|
||||
=== "NGINX"
|
||||
```
|
||||
dnf -y install epel-release
|
||||
dnf install bash-completion composer cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip
|
||||
dnf module reset php
|
||||
dnf module enable php:7.3
|
||||
dnf install bash-completion cronie fping git ImageMagick mariadb-server mtr net-snmp net-snmp-utils nginx nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip
|
||||
```
|
||||
|
||||
=== "Apache"
|
||||
```
|
||||
dnf -y install epel-release
|
||||
dnf install bash-completion composer cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip
|
||||
dnf module reset php
|
||||
dnf module enable php:7.3
|
||||
dnf install bash-completion cronie fping git httpd ImageMagick mariadb-server mtr net-snmp net-snmp-utils nmap php-fpm php-cli php-common php-curl php-gd php-json php-mbstring php-process php-snmp php-xml php-zip php-mysqlnd python3 python3-PyMySQL python3-redis python3-memcached python3-pip rrdtool unzip
|
||||
```
|
||||
|
||||
|
||||
=== "Debian 10"
|
||||
=== "NGINX"
|
||||
```
|
||||
@@ -83,6 +87,12 @@ su - librenms
|
||||
./scripts/composer_wrapper.php install --no-dev
|
||||
exit
|
||||
```
|
||||
Sometime when there is a proxy used to gain internet access, the above script may fail. The workaround is to install the `composer` package manually. For a global installation:
|
||||
```
|
||||
wget https://getcomposer.org/composer-stable.phar
|
||||
mv composer-stable.phar /usr/bin/composer
|
||||
chmod +x /usr/bin/composer
|
||||
```
|
||||
|
||||
# Set timezone
|
||||
|
||||
|
Reference in New Issue
Block a user