desktop-ubuntu/php/_install-8.x.sh

57 lines
803 B
Bash
Raw Normal View History

2024-01-20 18:10:59 +01:00
#!/bin/sh
2023-06-18 15:34:39 +02:00
sudo apt install -y \
software-properties-common \
aptitude
2024-01-20 18:10:59 +01:00
sudo add-apt-repository -y \
ppa:ondrej/php
sudo apt update -y
sudo apt install -y \
php8 \
apache2 \
2023-06-18 15:34:39 +02:00
php \
composer
php -v
sudo aptitude install -y \
libapache2-mod-php \
libapache2-mod-fcgid \
php-apcu \
php-bcmath \
php-cli \
php-common \
php-curl \
php-gd \
php-imap \
php-intl \
php-json \
php-ldap \
php-mbstring \
php-mysql \
php-mysqli \
php-opcache \
2024-01-20 18:10:59 +01:00
php-pgsql \
2023-06-18 15:34:39 +02:00
php-readline \
php-soap \
php-xml \
php-zip
php -m
2024-01-20 18:10:59 +01:00
sudo a2enmod php8.1
2023-06-18 15:34:39 +02:00
sudo a2enmod rewrite
sudo a2enmod ssl
sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod headers
sudo systemctl restart apache2
sudo usermod -a -G www-data $USER
sudo chown -R $USER:www-data /var/www/
sudo chown -R www-data:www-data /var/lib/php/