Page 1 of 1

[ASK] PHP not load di nginx

Posted: 02 Sep 2015, 07:36
by reeyz
pagi om om :D
baru belajar pake nginx, tp kenapa phpnya ga mau ke load ya ?
SS masalhnya
[img]http://oi57.tinypic.com/2j5cnc2.jpg[/img]
kode info.php

Code: Select all

<?php
infophp();
?>
konfigurasi yang saya pake

/etc/nginx/sites-available/defaault
[spoiler]server {
listen 80 default_server;
listen [::]:80 default_server;
root /var/www/html;
index index.html index.htm index.nginx-debian.html ;

server_name;

location / {
try_files $uri/ /index.html;

}

error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /var/www/html;
#root /usr/share/nginx/html;
}

location ~ \.php$ {
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
#fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location ~ /\.ht {
deny all;
}
}[/spoiler]
/etc/php5/fpm/pool.d/www.conf
[spoiler]user = www-data
group = www-data
listen = /var/run/php5-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
chdir = /[/spoiler]

Re: [ASK] PHP not load di nginx

Posted: 05 Sep 2015, 22:10
by q_p

Re: [ASK] PHP not load di nginx

Posted: 12 Nov 2015, 19:54
by jincorn
cek log nya doloe gan.

Re: [ASK] PHP not load di nginx

Posted: 22 Nov 2018, 10:09
by bustamiltodem
versi php nya diliat dulu yang terinstall versi berapa