Ubuntu 18.04 Install Nginx, PHP and MySQL

preview_player
Показать описание
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

FF
exit;

# Install PHP
sudo apt install php-fpm php-mysql

# Config nginx for PHP
sudo nano /etc/nginx/sites-available/default

```

location ~ \.php$ {
}

```

sudo systemctl restart nginx

Please like and subscribe!

#TateA
Рекомендации по теме
Комментарии
Автор

Hi guys! Thank you for watching, and please don't forget to
subscribe and like.

If you need any help please leave a comment, I will try to help ASP.

TateA
Автор

For others, I'm installing this on a local development machine and the default port was 80, not 201. At 9:00, you show the command to change root but you don't say why you have to change it. Why do you have to change it?

TheRoadTaken
Автор

Hey great video but what if i want different subdomain to use php not the main default file for nginx. And a link to the next video with php myadmin

juliusmubajje
Автор

sites-enabled and sites-available are now deprecated, if you are looking for said dirs and can't find them try /etc/nginx/nginx.conf and

arcadiumb
welcome to shbcf.ru