Last active
December 24, 2019 10:43
-
-
Save bryanisimo/77a1c5225a10c8ccd5b807f962dfc6b1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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