skip to content

IT and more

Willkommen auf der IT Seite. 
Hier möchte ich einige Howtos, Anleitungen und andere IT-Relevante Dinge zum Download bereitstellen.

Bitte beim Download zur weiteren Verwendung aber auf das Copyright achten!

Bei weiteren Fragen könnt ihr mir auch eine Mail zukommen lassen.

Linux: Update Debian 10 to PHP7.4

Posted by Benjamin Wagner (admin) on Jan 07 2020

Here are my steps:

 

apt -y install lsb-release apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/php7.4.list

apt-get remove php7* -y

apt update

apt -y install php7.4 libapache2-mod-php7.4 php7.4-cli php7.4-fpm php7.4-json php7.4-common php7.4-mysql php7.4-zip php7.4-gd  php7.4-mbstring php7.4-xml php7.4-bcmath php7.4-json php-apcu php-apcu-bc php-imagick php7.4-common php7.4-curl php7.4-intl php7.4-opcache  php7.4-readline php7.4-bz2 unzip nano wget curl

a2dismod php7.4 mpm_prefork
a2enmod proxy_fcgi setenvif mpm_event rewrite headers env dir mime ssl http2
a2enconf php7.4-fpm

/etc/init.d/apache2 restart

 

Trouble with Nextcloud:

Here I also needed to modify the following file /var/www/nextcloud/lib/versioncheck.php to get my nextcloud up&running again:

replace

if (version_compare(PHP_VERSION,
 '7.4.0') !== -1) {

with

if (version_compare(PHP_VERSION,
 '7.5.0') !== -1) {

 

Last changed: Jan 07 2020 at 15:09

Back

Kommentar

email address:
Homepage:
URL:
Comment:

Name:

E-Mail (required, not public):

Website:

Kommentar :

Prüfziffer:
6 plus 9  =  Bitte Ergebnis eintragen

Up
K