Php 在Nginx上安装Wordpress时出错

Php 在Nginx上安装Wordpress时出错,php,wordpress,ssl,nginx,Php,Wordpress,Ssl,Nginx,我正在尝试在带有LEMP设置的Linux VPS中安装wordpress站点。到目前为止,我已经在WP目录/files上设置了wordpress文件并设置了nginx user/group的所有权,但是当我转到地址访问WP()的安装页面时,我最终得到了一个php文件下载 以下是我的WP站点虚拟主机配置: 服务器{ 听80; 服务器名称domain.tld; 返回301 https://$server\u name$request\u uri; } 服务器{ 听443ssl; ssl-on; s

我正在尝试在带有LEMP设置的Linux VPS中安装wordpress站点。到目前为止,我已经在WP目录/files上设置了wordpress文件并设置了nginx user/group的所有权,但是当我转到地址访问WP()的安装页面时,我最终得到了一个php文件下载

以下是我的WP站点虚拟主机配置:

服务器{
听80;
服务器名称domain.tld;
返回301 https://$server\u name$request\u uri;
}
服务器{
听443ssl;
ssl-on;
ssl_证书/目录/to/crt;
ssl_证书_key/directory/to/key;
服务器名称domain.tld;
root/var/www/html/domain.tld;
index.php index.html index.htm;
地点/{
try_files$uri$uri//index.php?q=$uri&$args;
}
重写/wp admin$$scheme://$host$uri/permanent;
错误\u第404/404.html页;
错误\u第500页502 503 504/50x.html;
location=/50x.html{
root/usr/share/nginx/html;
}
位置~\.php${
try_files$uri=404;
fastcgi\u split\u path\u info^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi\参数脚本\文件名$document\根$fastcgi\脚本\名称;
fastcgi_index.php;
包括fastcgi_参数;
}

}
我现在可以用了。错误出现在虚拟主机的*.conf文件上。我把php fpm sock的目录搞错了。这就是php不能在站点上运行的原因,相反,它只是下载install.php文件,域最终会出错


fastcgi_pass unix:/var/run/php5-fpm.sock 我现在让它工作了。错误出现在虚拟主机的*.conf文件上。我把php fpm sock的目录搞错了。这就是php不能在站点上运行的原因,相反,它只是下载install.php文件,域最终会出错


fastcgi_pass unix:/var/run/php5-fpm.sock 也许只是你忘了启动你的php fpm

cd /usr/local/php7-chanxiao/etc/                                

../sbin/php-fpm

也许你忘了启动php-fpm

cd /usr/local/php7-chanxiao/etc/                                

../sbin/php fpm

您可以访问服务器的错误日志吗?您可以访问服务器的错误日志吗?