Ubuntu和PHP更新后的白色站点

时间:2017-09-21 11:33:44

标签: php ubuntu nginx

我有一个问题。我的网站只是一个白色清洁网站。没有错误,就像什么都没有。

运行Ubuntu 16.04,NGINX和PHP5.6-fpm

/var/run/php/php5.6-fpm.sock已存在。

使用我的NGINX设置之前网站正在运行,这里是PHP位置

location ~ \.php$ {
            #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
            try_files $uri =404;
            include fastcgi_params;
            fastcgi_intercept_errors on;
            fastcgi_pass unix:/var/run/php/php5.6-fpm.sock;
    }

之前(Ubuntu 14.04和PHP5-fpm)它是fastcgi_pass unix:/var/run/php/php5-fpm.sock;

但是我不能再安装php5-fpm了,因为Ubuntu 16.04不支持它。

如果我看一下/var/log/nginx/error.log,什么都没有!没有来自网站的日志

我不知道我能做什么...我试过php7.0但也看起来......

输出: fpm grep

root      2214  0.0  0.1  14236  1024 pts/0    S+   16:26   0:00 grep --color=auto fpm
root     31797  0.0  2.2 234016 22504 ?        Ss   13:15   0:00 php-fpm: master process (/etc/php/5.6/fpm/php-fpm.conf)
www-data 31802  0.0  7.1 280008 72224 ?        S    13:15   0:02 php-fpm: pool www
www-data 31803  0.0  5.9 280888 60328 ?        S    13:15   0:01 php-fpm: pool www

nginx grep

root       319  0.0  0.2 125368  3040 ?        Ss   13:32   0:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
www-data   320  0.0  0.6 125368  6776 ?        S    13:32   0:00 nginx: worker process
root      2219  0.0  0.1  14236  1020 pts/0    S+   16:27   0:00 grep --color=auto nginx

状态nginx

 nginx.service - A high performance web server and a reverse proxy server
 Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
 Active: active (running) since Thu 2017-09-21 13:32:45 CEST; 2h 55min ago
 Process: 308 ExecStop=/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/nginx.pid (code=exited, status=0/SUCCE
 Process: 316 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Process: 313 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS)
 Main PID: 319 (nginx)
  CGroup: /system.slice/nginx.service
       ├─319 nginx: master process /usr/sbin/nginx -g daemon on; master_process on
       └─320 nginx: worker process

Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal systemd[1]: Starting A high performance web server and a reverse proxy server...
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[313]: nginx: [warn] server name "/var/www/*****.de/htdocs" has suspiciou
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[313]: nginx: [warn] conflicting server name "*****.de" on 0.0.0.0:80, ignored
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[313]: nginx: [warn] conflicting server name "*****.de" on 0.0.0.0:80,
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[316]: nginx: [warn] server name "/var/www/*****.de/htdocs" has suspiciou
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[316]: nginx: [warn] conflicting server name "*****.de" on 0.0.0.0:80, ignored
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal nginx[316]: nginx: [warn] conflicting server name "*****.de" on 0.0.0.0:80,
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal systemd[1]: nginx.service: Failed to read PID from file /run/nginx.pid: Invalid argum
Sep 21 13:32:45 Ubuntu-1404-trusty-64-minimal systemd[1]: Started A high performance web server and a reverse proxy server.

0 个答案:

没有答案