Sorry, this video is only available to Pro accounts.

Upgrade your account to get access to all content.

Install nginx php-fpm and mysql on ubuntu 19.04

Created on July 5th, 2019

how to install nginx php-fpm and mysql on ubuntu 19.04

apt update
apt upgrade
apt install nginx
iptables -nvL
systemctl status nginx
apt install mysql-server
systemctl status mysql
apt install php-fpm php-mysql
nano /etc/nginx/sites-available/demo
server {
        listen 80;
        root /var/www/html;
        index index.php index.html index.htm index.nginx-debian.html;

        location / {
                try_files $uri $uri/ =404;

        location ~ \.php$ {
                include snippets/fastcgi-php.conf;
                fastcgi_pass unix:/var/run/php/php7.2-fpm.sock;

        location ~ /\.ht {
                deny all;
ln -s /etc/nginx/sites-available/demo /etc/nginx/sites-enabled/
rm -rf /etc/nginx/sites-enabled/default
systemctl reload nginx
nano /var/www/html/info.php

Comments (0)