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 is running on a Debian based VPS (Virtual Private Server). The HTTP server behind this website is nginx.

On 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:

After getting this installed, we?ll need to start nginx. To start nginx, type the following commad:

Type your servers 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 }