How to install nginx with PHP & MySQL (LEMP) on Debian

What is Nginx?

nginx [engine x] is a free and open-source HTTP and reverse proxy server. It is also a mail proxy server.

This website ehosen.com is running on a Debian based VPS (Virtual Private Server). The HTTP server behind this website is Nginx.

In this article, you’ll learn how to install Nginx, PHP and MySQL on Debian Wheezy.

So let’s get started:

Installing nginx:

To install nginx, open up your terminal and type the following command:

apt-get install nginx

After getting this installed, we’ll need to start Nginx. To start Nginx, type the following command:

service nginx start

Type your server’s IP address on a browser. If everything is right, you should get a welcome message from Nginx.

The default root for nginx on debian wheezy is usr/share/nginx/www

{ Continue reading }