Since Apache is most of the time a memory hungy process, people started to look for different ways to host their website. Apache is clearly not the only webserver available. A few good examples are lighttpd and nginx.
In this tutorial I will show you how to install it on your Ubuntu server. This tutorial also applies to Debian, though. There is only a very small difference.
Ready? Let's begin shall we.
In order to complete this tutorial, I assume you have installed a base system of Debian or Ubuntu. How this can be done, can be read in different tutorials. This tutorial only focusses on getting nginx+php running without much hassle.
Installing nginx is the first step we have to do. This can be easily done by downloading it from the repository.
sudo apt-get install nginx
The default vhost has to be changed in order to work properly.
sudo vim /etc/nginx/sites-available/default
A nice starting point for your config is:
Fonte notizia: howto forge
Data Pubblicazione: 09/02/2010
Inserita da: Chi