Linux serverlinux web serverNETWORK ADMINISTRATIONS

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

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
https://m.do.co/c/7b9082af029f

source

by NixInPix

linux web server

Leave a Reply

Your email address will not be published. Required fields are marked *