Skip to content

Instantly share code, notes, and snippets.

@bryanisimo
Last active December 24, 2019 10:43
Show Gist options
  • Select an option

  • Save bryanisimo/77a1c5225a10c8ccd5b807f962dfc6b1 to your computer and use it in GitHub Desktop.

Select an option

Save bryanisimo/77a1c5225a10c8ccd5b807f962dfc6b1 to your computer and use it in GitHub Desktop.
sudo apt-get update && sudo apt-get install mysql-server -y
sudo mysql_secure_installation
# Switching authentication method from auth_socket to mysql_native_password
sudo mysql
MYSQL> SELECT user,authentication_string,plugin,host FROM mysql.user;
MYSQL> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
MYSQL> FLUSH PRIVILEGES;
MYSQL> SELECT user,authentication_string,plugin,host FROM mysql.user;
MYSQL> exit
sudo apt-get update && sudo apt -y install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt-get update
sudo systemctl disable --now apache2 # Just in case
sudo apt-get install nginx php7.4-fpm -y
systemctl status php7.4-fpm nginx
sudo apt-get install php7.4 php7.4-cli php7.4-fpm php7.4-common php7.4-mysql php7.4-xml php7.4-curl php7.4-mbstring php7.4-zip php7.4-curl -y
sudo apt-get update && sudo apt-get install software-properties-common -y && sudo add-apt-repository universe
sudo add-apt-repository ppa:certbot/certbot
sudo apt-get update
sudo apt-get install certbot python-certbot-nginx -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment