Permalink
Browse files

Upgrade PHP 7.0->7.2

  • Loading branch information...
NEMS Linux
NEMS Linux committed Oct 26, 2018
1 parent 693a769 commit 6bbc8b6c1e4612dcd54b9415dd7d5cce9b1d5979
Showing with 9 additions and 6 deletions.
  1. +1 −1 build/035-apache2
  2. +6 −0 build/036-php72
  3. +1 −1 build/055-check_mk
  4. +1 −1 build/150-nems
  5. +0 −3 build/packages.add
@@ -1,6 +1,6 @@
#!/bin/bash
a2enmod ssl
apt -y install php7.0-xml php7.0-mbstring ssl-cert libapache2-mod-security2
apt -y install ssl-cert libapache2-mod-security2
# Generating new Snakeoil cert
/usr/sbin/make-ssl-cert generate-default-snakeoil --force-overwrite
@@ -0,0 +1,6 @@
#!/bin/bash
wget -q https://packages.sury.org/php/apt.gpg -O- | sudo apt-key add -
echo "deb https://packages.sury.org/php/ stretch main" | tee /etc/apt/sources.list.d/php.list
apt update
apt install -y php7.2 php7.2-cli php7.2-common php7.2-curl php7.2-gd php7.2-json php7.2-mbstring php7.2-mysql php7.2-opcache php7.2-phpdbg php7.2-readline php7.2-sqlite3 php7.2-xml libapache2-mod-php7.2 libargon2-1 libsodium23 php-curl php-rrd
@@ -1,7 +1,7 @@
#!/bin/bash
# Install and configure check-mk-livestatus
apt install --yes php-net-socket php7.0-sqlite sqlite3 graphviz php7.0-gd rrdtool librrd-dev libboost-all-dev libncurses5-dev libreadline-dev libxml2-dev libssl-dev
apt install --yes php-net-socket php7.2-sqlite3 sqlite3 graphviz php7.2-gd rrdtool librrd-dev libboost-all-dev libncurses5-dev libreadline-dev libxml2-dev libssl-dev
# This is the full Check_MK OSE bundle
@@ -39,7 +39,7 @@ rm -rf html && git clone https://github.com/Cat5TV/nems-www && mv nems-www html
# nConf
apt update
# Need to be able to use the MySQL database from PHP
apt install -y php7.0-mysql libdbi-perl libdbd-mysql-perl
apt install -y php7.2-mysql libdbi-perl libdbd-mysql-perl
systemctl restart apache2
git clone https://github.com/Cat5TV/nconf && chown -R www-data:www-data nconf
# Import nConf Configuration
@@ -29,7 +29,6 @@ monitorix
openssl
perl
perl-base
php7.0-sqlite3
php-net-socket
python
python3-openssl
@@ -64,7 +63,6 @@ hddtemp
# For Nagios Core
libgd-dev
php7.0-gd
# nagios-images -- part of nems-www now
nagios-nrpe-plugin
nagios-nrpe-server
@@ -76,7 +74,6 @@ libnss-mdns
# Apache2 dependencies
libapache2-modsecurity
modsecurity-crs
php7.0
php-curl
# NEMS

0 comments on commit 6bbc8b6

Please sign in to comment.