How to install Nginx, PHP and MySQL on Ubuntu 18.04 Server.
# CLI
# Install nginx
sudo apt update
sudo apt install nginx
# Install MySQL
sudo apt install mysql-server mysql-client
sudo mysqlsudo
# Authentication method
sudo mysql -u root -p
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root' IDENTIFIED WITH mysql_native_password BY 'Linux
FF
exit;
# Install PHP
sudo apt install php-fpm php-mysql
# Config nginx for PHP
sudo nano /etc/nginx/sites-available/default
```
location ~ \.php$ {
include snippets/fastcgi-php.conf;
fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;
}
```
sudo systemctl restart nginx
Ubuntu 18.04 install LAMP and PHPMyAdmin:
Installing Ubuntu 18.04 LTS Server:
Please like and subscribe!