[ASK] PHP not load di nginx

Aplikasi-aplikasi diubuntu: • Aplikasi Grafis •
Aplikasi Internet •
Aplikasi Office •
Aplikasi Sound & Video •
Aplikasi Programming
User avatar
reeyz
Posts: 44
Joined: 17 May 2011, 20:06
Location: dimana Q berpijak

[ASK] PHP not load di nginx

Postby reeyz » 02 Sep 2015, 07:36

pagi om om :D
baru belajar pake nginx, tp kenapa phpnya ga mau ke load ya ?
SS masalhnya
[img:center]http://oi57.tinypic.com/2j5cnc2.jpg[/img]
kode info.php

Code: Select all

<?php
infophp();
?>

konfigurasi yang saya pake

/etc/nginx/sites-available/defaault
Tampilkan
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;
}
}

/etc/php5/fpm/pool.d/www.conf
Tampilkan
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 = /
User avatar
jincorn
Posts: 2
Joined: 16 Oct 2012, 13:48

Re: [ASK] PHP not load di nginx

Postby jincorn » 12 Nov 2015, 19:54

cek log nya doloe gan.

Return to “Aplikasi Ubuntu”

Who is online

Users browsing this forum: No registered users and 13 guests