How To Install Linux, Nginx, MySQL, PHP LEMP stack in Ubuntu 16.04

Published: 11 July 2016
on channel: NixInPix
1k
5

The LEMP software stack is a group of software that can be used to serve dynamic web pages and web applications. This is an acronym that describes a Linux operating system, with an Nginx web server. The backend data is stored in MySQL and the dynamic processing is handled by PHP.

In this guide, we will demonstrate how to install a LEMP stack on an Ubuntu 16.04 server.

Commands:
sudo apt-get update
sudo apt-get install nginx
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
sudo apt-get install mysql-server
sudo mysql_secure_installation
sudo apt-get install php5-fpm php5-mysql
sudo nano /etc/php/7.0/fpm/php.ini
cgi.fix_pathinfo=0
sudo systemctl restart php7.0-fpm

sudo nano /etc/nginx/sites-available/default

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

location ~ /\.ht {
deny all;
}

sudo nginx -t
sudo systemctl reload nginx
sudo nano /var/www/html/info.php
sudo rm /var/www/html/info.php


----------------------

Music by Joakim Karud soundcloud.com/joakimkarud


You can always Deploy an SSD cloud server in 55 seconds
with Digitalocean.
Anyone how use this link will receive $10 in hosting credit immediately after unlocking their account by adding a valid payment method.
Sign Up with this link


Watch video How To Install Linux, Nginx, MySQL, PHP LEMP stack in Ubuntu 16.04 online, duration 03 minute 10 second in high hd quality that is uploaded to the channel NixInPix 11 July 2016. Share the link to the video on social media so that your subscribers and friends will also watch this video. This video clip has been viewed 1 thousand times and liked it 5 visitors.