1 pièce(s) jointe(s)
Configuration Nginx & php
Bonjour j'espère être dans la bonne file.
- J'ai bien adapté l'ajout de la prise en compte du PHP qui s'est fait dans le fichier : /etc/ngnix/sites-enabled/site-web01
et le fichier index.php se trouve dans le répertoire : /home/azqsazqs/web/site-web01/
Quand je fais http://localhost c'est le contenu du fichier index.html qui apparaît.
PHP est installé sur linux-mint et j'ai suivi ce tuto http://memo-linux.com/comment-instal...-ubuntu-12-04/
(avec Apache c'était bon mais depuis l'installation de Nginx je n'y arrive plus)
****************
****************
gedit /etc/nginx/sites-enabled/site-web01
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
server {
listen 80;
root /home/azqsazqs/web/site-web01;
index index.html index.htm index.php;
# Make site accessible from http://localhost/
server_name localhost;
location / {
try_files $uri $uri/ /index.php;
}
#prise en charge PHP
location ~ .php$ {
fastcgi_pass 127.0.0.1:9000;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
}
} |
gedit /home/azqsazqs/web/site-web01/index.php
ip_locale/index.php
Pièce jointe 152383
Le problème est ailleurs?