updated php in lemp to php8.2
This commit is contained in:
parent
f317ded417
commit
a96789a9ed
12
bin/lemp.sh
12
bin/lemp.sh
@ -48,12 +48,12 @@ sleep 3
|
||||
# apt-get --yes install php7.4-fpm php7.4-mysql php7.4-opcache php7.4-curl php7.4-mbstring php7.4-zip php7.4-xml php7.4-gd php-memcached php7.4-imagick php7.4-apcu
|
||||
# php7.4-mcrypt ??
|
||||
|
||||
apt-get --yes install php8.1-fpm php8.1-mysql php8.1-opcache php8.1-curl php8.1-mbstring php8.1-zip php8.1-xml php8.1-gd php-memcached php8.1-imagick php8.1-apcu php8.1-redis php8.1-bz2 php8.1-bcmath
|
||||
# apt-get --yes install php8.1-fpm php8.1-mysql php8.1-opcache php8.1-curl php8.1-mbstring php8.1-zip php8.1-xml php8.1-gd php-memcached php8.1-imagick php8.1-apcu php8.1-redis php8.1-bz2 php8.1-bcmath
|
||||
|
||||
# apt-get --yes install php8.2-fpm php8.2-mysql php8.2-opcache php8.2-curl php8.2-mbstring php8.2-zip php8.2-xml php8.2-gd php-memcached php8.2-imagick php8.2-apcu php8.2-redis php8.2-bz2 php8.2-bcmath
|
||||
apt-get --yes install php8.2-fpm php8.2-mysql php8.2-opcache php8.2-curl php8.2-mbstring php8.2-zip php8.2-xml php8.2-gd php-memcached php8.2-imagick php8.2-apcu php8.2-redis php8.2-bz2 php8.2-bcmath
|
||||
|
||||
mv /etc/php/7.4/fpm/php.ini /etc/php/7.4/fpm/php.ini.back
|
||||
cp "$_assets"/php7.4-fpm.ini /etc/php/7.4/fpm/php.ini
|
||||
mv /etc/php/8.2/fpm/php.ini /etc/php/8.2/fpm/php.ini.back
|
||||
cp "$_assets"/php8.2-fpm.ini /etc/php/8.2/fpm/php.ini
|
||||
|
||||
echo "Configuring PHP"
|
||||
|
||||
@ -61,8 +61,8 @@ mkdir /var/log/php
|
||||
chown www-data /var/log/php
|
||||
cp "$_assets"/logrotate-php /etc/logrotate.d/php
|
||||
|
||||
systemctl enable php7.4-fpm
|
||||
systemctl start php7.4-fpm
|
||||
systemctl enable php8.2-fpm
|
||||
systemctl start php8.2-fpm
|
||||
|
||||
# echo "Installing memecached"
|
||||
# replaced by redis
|
||||
|
Loading…
x
Reference in New Issue
Block a user