J'ai installé un serveur Ngnix et configuré, il aime:Ngnix - FastCGI envoyé à stderr: « message PHP: Avis de PHP: Undefined variable
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
root /usr/share/nginx/html;
index index.php index.html index.htm;
# Make site accessible from http://localhost/
server_name localhost;
location/{
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
}
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
# proxy_pass http://127.0.0.1:8080;
#}
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location =/{
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
try_files $uri =404;
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;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
}
Je reçois ces erreurs (copié de mon error.log):
*9 FastCGI sent in stderr: "PHP message: PHP Notice: Undefined variable: confMsg in /usr/share/nginx/html/admin-interface/login.php on line 196" while reading upstream, client: 127.0.0.1, server: localhost, request: "GET /admin-interface/login.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost"
2015/12/16 00:27:37 [error] 952 # 0: * 9 FastCGI envoyé à stderr: « Message PHP: PHP Notice: Undefined index : nom d'utilisateur dans/us r/share/nginx/html/admin-interface/login.php sur la ligne 245 Message PHP: PHP Remarque: Indéfini index: nom d'utilisateur dans /usr/share/nginx/html/admin-interface/login.php à la ligne 249 " lors de la lecture en amont, client: 127.0.0.1, serveur: localhost, requête: "GET /admin-interface/login.php HTTP/1.1", en amont: "fastcgi: // unix: /var/run/php5-fpm.sock : ", host:" localhost "
J'essaie de configurer cet environnement en utilisant un serveur Ngnix, cet environnement fonctionne en utilisant un hébergement différent. J'ai changé le cgi.fix_pathinfo = 0 dans mon php.ini
Qu'est-ce qui me manque dans ma configuration? Merci dans Avancé