... quand même fou, il faut bien fouiller pour trouver, car:
; c'est autant relou par ici ...
; la même chose pour squeeze, et en trop compliqué ...
Nginx + PHP5 on Raspberry Pi (Debian Wheezy)
sudo apt-get install nginx php5-fpm php5-cgi php5-cli php5-common
sudo useradd www-data
sudo groupadd www-data
sudo usermod -g www-data www-data
sudo mkdir /var/www
sudo chmod 775 /var/www -R
sudo chown www-data:www-data /var/www
sudo vim /etc/nginx/sites-enabled/default
Comment the ipv6 line if you’re not using IPV6, adding a ‘#’ at the beginning of the line :
# listen [::]:80 default_server ipv6only=on;
Comment the line, adding a ‘#’ at the beginning of the line :
# root /usr/share/nginx/www;
& add the new one:
root /var/www;
Get an example file for a Silex Php Application here (gist) & paste it into /etc/nginx/sites-available/silex file (sudo vim…)
then create a symbolic link:
sudo ln -s /etc/nginx/sites-available/silex /etc/nginx/sites-enabled/silex
Edit /etc/php5/fpm/pool.d/www.conf & replace the line:
listen = /var/run/php5-fpm.sock
with:
listen = 127.0.0.1:9000
Then restart php-fpm & nginx :
sudo service php5-fpm restart
sudo service nginx restart
J'ai testé, et pour le moment, ben ça marche pas ...