Skip to content

Instantly share code, notes, and snippets.

@lineharo
Created April 25, 2020 18:49
Show Gist options
  • Save lineharo/be84e6a9309c035ec79c4219adc36966 to your computer and use it in GitHub Desktop.
Save lineharo/be84e6a9309c035ec79c4219adc36966 to your computer and use it in GitHub Desktop.
Install VestaCP(nginx+apache, vsftpd, exim+devocot, DNS named, MySQL) + PHP-7.4 on Ubuntu 18.04 LTS
sudo apt-get update
sudo apt-get install -y vim git curl wget unzip zip gcc build-essential make
sudo apt-get install software-properties-common
curl -O http://vestacp.com/pub/vst-install.sh
bash vst-install.sh --nginx yes --apache yes --phpfpm no --named yes --remi yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin no --clamav no --softaculous no --mysql yes --postgresql no
sudo add-apt-repository ppa:ondrej/php
sudo apt install php7.4-fpm php7.4 php7.4-cli php7.4-common
apt install php7.4-opcache php7.4-curl php7.4-mbstring php7.4-mysql php7.4-zip php7.4-xml php7.4-imap php7.4-intl php-http php-imagick php-mailparse php-memcache php-memcached php-yaml php-psr php7.4-gd php7.4-json
apt update && apt upgrade
sudo service nginx restart
sudo update-alternatives --set php /usr/bin/php7.4
sudo a2dismod php7.2
sudo a2enmod php7.4
sudo systemctl restart apache2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment