Nginx on Raspbian # sudo aptitude install nginx php5-fpm # sudo /etc/init.d/nginx restart Folder for your files web : # sudo mkdir /var/www Configuration : # sudo nano /etc/nginx/sites-available/default section : --------------------------- root /usr/share/nginx/www; index index.html index.htm; ---------------------------- remplace by : root /var/www; index index.html index.htm index.php; and uncomment section like this : location ~ \.php$ { fastcgi_split_path_info ^(.+\.php)(/.+)$; # # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini # # # With php5-cgi alone: # fastcgi_pass 127.0.0.1:9000; # # With php5-fpm: fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; } # sudo /etc/init.d/nginx restart # sudo chown www-data:www-data /var/www # sudo chown chmod 744 /var/www # sudo echo 'Nginx hello !' > /var/www/index.html