2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-07-04 09:56:45 +00:00
|
|
|
##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
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
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} \
|
|
|
|
php${PHPVER}-cli \
|
|
|
|
php${PHPVER}-common \
|
|
|
|
php${PHPVER}-xdebug \
|
2022-07-15 14:59:45 +00:00
|
|
|
php${PHPVER}-dom \
|
|
|
|
php${PHPVER}-curl \
|
|
|
|
php${PHPVER}-bcmath \
|
|
|
|
php${PHPVER}-gd \
|
|
|
|
php${PHPVER}-intl \
|
|
|
|
php${PHPVER}-mbstring \
|
2022-01-08 06:29:07 +00:00
|
|
|
# php${PHPVER}-mysql \
|
|
|
|
# php${PHPVER}-opcache \
|
|
|
|
# php${PHPVER}-pgsql \
|
2022-07-15 14:59:45 +00:00
|
|
|
php${PHPVER}-soap \
|
2022-01-08 06:29:07 +00:00
|
|
|
# php${PHPVER}-xml \
|
|
|
|
# php${PHPVER}-xmlrpc \
|
|
|
|
# php${PHPVER}-xsl \
|
|
|
|
# php${PHPVER}-sqlite3 \
|
2022-07-15 14:59:45 +00:00
|
|
|
# php${PHPVER}-zip \
|
|
|
|
# php${PHPVER}-dba \
|
2022-01-08 06:29:07 +00:00
|
|
|
# php${PHPVER}-ldap
|
2021-12-22 13:51:22 +00:00
|
|
|
php -v
|