Setting up NGINX, PHP with CGI on Ubuntu 10.10 Linux

1. Installing apt-get install nginx php5 php5-cgi php5-cli 2. Make your site folder under document root mkdir -p /var/www/newsitechown -R www-data www-data /var/www/ 3. Create new file /etc/nginx/sites-available/newsite and put below entries in it server { listen 80; server_name newsite.com www.newsite.com; access_log /var/logs/nginx/access.log; error_log /var/logs/nginx/error.log; location / { root /var/www/newsite; index index.html index.htm index.php; }…