apt update
apt install python-software-properties
apt install software-properties-common
add-apt-repository -y ppa:ondrej/php
apt install mcrypt composer php7.2 php7.2-cli php7.2-common php7.2-fpm php7.2-curl php7.2-mbstring php7.2-xml php7.2-gd php7.2-pgsql
apt update
apt upgrade
sudo add-apt-repository "deb http://apt.postgresql.org/pub/repos/apt/ xenial-pgdg main"
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
apt update
apt install postgresql-10
cd /tmp
curl -OL https://dev.mysql.com/get/mysql-apt-config_0.8.3-1_all.deb
dpkg -i mysql-apt-config*
rm mysql-apt-config*
apt update
apt install mysql-server
Check status with systemctl status mysql
, enhance security with mysql_secure_installation
.
apt install curl
curl -sL https://deb.nodesource.com/setup_9.x -o nodesource_setup.sh
bash nodesource_setup.sh
apt install nodejs
apt install redis-server php-redis
sudo systemctl enable redis-server
sudo systemctl start redis-server
apt install supervisor
chown -R www-data /var/www
apt install git
git config --global user.name "Server"
ssh-keygen -t rsa -b 4096
su - www-data -s /bin/bash
ssh-keygen -t rsa -b 4096
Just press enter until command line prompts you for empty passphrase.
Add public key from /var/www/.ssg/id_rsa.pub
to a git provider (Bitbucket, GitHub, etc.)