shell/install/php

38 lines
903 B
Plaintext
Raw Normal View History

#!/bin/bash
##makedesc: Install php v8.1 + ppa
[ $1 ] && PHPVER="$1" || PHPVER="8.1"
2022-01-08 06:29:07 +00:00
echo
echo "==============================================="
echo "Installing php${PHPVER}..."
echo "==============================================="
echo
sudo LC_ALL=C.UTF-8 add-apt-repository -y ppa:ondrej/php
2022-01-08 06:29:07 +00:00
sudo apt install -y --autoremove \
php${PHPVER} \
2022-12-11 06:48:30 +00:00
php${PHPVER}-apcu \
php${PHPVER}-bcmath \
2022-01-08 06:29:07 +00:00
php${PHPVER}-cli \
php${PHPVER}-common \
2022-07-15 14:59:45 +00:00
php${PHPVER}-curl \
2022-12-11 06:48:30 +00:00
# php${PHPVER}-dba \
php${PHPVER}-dev \
php${PHPVER}-dom \
2022-07-15 14:59:45 +00:00
php${PHPVER}-gd \
php${PHPVER}-intl \
2022-12-11 06:48:30 +00:00
# php${PHPVER}-ldap \
2022-07-15 14:59:45 +00:00
php${PHPVER}-mbstring \
2022-12-11 06:48:30 +00:00
php${PHPVER}-mysql \
php${PHPVER}-opcache \
php${PHPVER}-pgsql \
2022-07-15 14:59:45 +00:00
php${PHPVER}-soap \
2022-12-11 06:48:30 +00:00
php${PHPVER}-sqlite3 \
php${PHPVER}-xdebug \
php${PHPVER}-xml \
php${PHPVER}-xmlrpc \
2022-01-08 06:29:07 +00:00
# php${PHPVER}-xsl \
2022-12-11 06:48:30 +00:00
php${PHPVER}-zip
php -v