Skip to content

Instantly share code, notes, and snippets.

@lao9s
Created November 17, 2020 15:35
Show Gist options
  • Save lao9s/499c74f460339b64d55d06443f898854 to your computer and use it in GitHub Desktop.
Save lao9s/499c74f460339b64d55d06443f898854 to your computer and use it in GitHub Desktop.
First pre-required step for Ubuntu:
apt-get update
apt install apt-transport-https ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
Add php repository:
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
Second pre-required step for both Debian and Ubuntu:
apt-get update
a2enmod proxy_fcgi setenvif
For PHP 7.4
apt-get install php7.4-apcu php7.4-mbstring php7.4-bcmath php7.4-cli php7.4-curl php7.4-fpm php7.4-gd php7.4-intl php7.4-mysql php7.4-soap php7.4-xml php7.4-zip php7.4-memcache php7.4-memcached php7.4-zip
update-rc.d php7.4-fpm defaults
a2enconf php7.4-fpm
systemctl restart apache2
cp -r /etc/php/7.4/ /root/vst_install_backups/php7.4/
rm -f /etc/php/7.4/fpm/pool.d/*
wget https://github.com/t0rik/vesta-php-fpm-74/raw/master/PHP-FPM-74.stpl -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-74.stpl
wget https://raw.githubusercontent.com/t0rik/vesta-php-fpm-74/master/PHP-FPM-74.tpl
-O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-74.tpl
wget https://raw.githubusercontent.com/t0rik/vesta-php-fpm-74/master/PHP-FPM-74.sh -O /usr/local/vesta/data/templates/web/apache2/PHP-FPM-74.sh
chmod a+x /usr/local/vesta/data/templates/web/apache2/PHP-FPM-74.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment