php 版本是7.0.12 扩展都已经安装,域名设置没错误,但一直是 502
nginx conf
server {
listen 80;
server_name bbs.liangzr.tech;
# note that these lines are originally from the "location /" block
root /home/wwwroot/bbs;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location /api {
try_files $uri $uri/ /api.php?$query_string;
}
location /admin {
try_files $uri $uri/ /admin.php?$query_string;
}
location /flarum {
deny all;
return 404;
}
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
}
bbs 目录是 755 权限,nginx 也重启了几次,对 php 不太懂,这些扩展安装之后,还要进行什么配置么?