升级到PHP5.5时Wordpress崩溃

时间:2015-11-26 13:34:41

标签: php wordpress nginx debian php-5.5

我在带有nginx的Debian 7服务器上托管了一个wordpress。昨天我已经从PHP5.4升级到PHP5.5,它崩溃了所有托管的wordpress网站。其他使用PHP的网站效果很好但不是wordpress。

我尝试设置define('WP_DEBUG', true);,但没有显示错误。

我也尝试了<?php phpinfo(); ?>,但仍然是空白页。

Nginx虚拟主机

server {

    listen 80;

    server_name thinkcreate.fr www.thinkcreate.fr;

    root /var/www/blog/thinkcreate;
    index index.php index.html index.htm;

    access_log /var/log/nginx/thinkcreate.access.log;
    error_log /var/log/nginx/thinkcreate.error.log;

    location / {
        try_files $uri $uri/ /index.php?q=$uri&$args;
    }

    error_page 404 /404.html;

    error_page 500 502 503 504 /50x.html;
    location = /50x.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_index index.php;
        include fastcgi_params;
    }

}

访问日志

129.10.115.241 - - [01/Dec/2015:00:33:35 +0100] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0" 129.10.115.241 - - [01/Dec/2015:00:33:36 +0100] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:36.0) Gecko/20100101 Firefox/36.0" 173.252.74.122 - - [01/Dec/2015:00:47:58 +0100] "GET /wp-content/uploads/2015/11/Logo_Taccos.png HTTP/1.1" 200 3513 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" 208.80.194.125 - - [01/Dec/2015:01:03:42 +0100] "GET / HTTP/1.0" 200 0 "-" "Mozilla/5.0 (Windows NT 5.1; U; en) Opera 8.01" 83.193.129.142 - - [01/Dec/2015:01:12:21 +0100] "GET /culture-tbs/100-raisons-de-choisir-tbs/ HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:42.0) Gecko/20100101 Firefox/42.0" 208.80.194.125 - - [01/Dec/2015:01:47:33 +0100] "GET / HTTP/1.0" 200 0 "-" "Mozilla/5.0 (Windows NT 5.1) Gecko/20100101 Firefox/5.0" 159.203.126.129 - - [01/Dec/2015:02:12:28 +0100] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/37.0.2062.122 Safari/537.36" 159.203.126.129 - - [01/Dec/2015:02:12:31 +0100] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C14$ 158.69.2.151 - - [01/Dec/2015:05:00:00 +0100] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:25.0) Gecko/20100101 Firefox/25.0" 69.61.12.70 - - [01/Dec/2015:06:34:37 +0100] "GET / HTTP/1.1" 200 5 "" "Mozilla/5.0 CommonCrawler Node X3JCAGS6ANHNBVL7L2BNXPLODC5ROPX7IOEOGDBOXMHVU7E54OOENGKAHHRQ7FR.NTUMR5IV4.2OLPPTWFPSTLQQZBJ4VTQ23YHRR4FAXO6$ 173.252.90.124 - - [01/Dec/2015:07:05:14 +0100] "GET /wp-content/uploads/2015/10/Sun-Rise.png HTTP/1.1" 200 7576 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" 173.252.73.109 - - [01/Dec/2015:07:05:39 +0100] "GET /wp-content/uploads/2015/10/Sun-Rise.png HTTP/1.1" 200 7576 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" 46.4.123.172 - - [01/Dec/2015:07:20:23 +0100] "GET /robots.txt HTTP/1.0" 200 0 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.5; http://www.majestic12.co.uk/bot.php?+)" 46.4.123.172 - - [01/Dec/2015:07:20:26 +0100] "GET /ajouter/ HTTP/1.0" 200 0 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.5; http://www.majestic12.co.uk/bot.php?+)" 46.4.123.172 - - [01/Dec/2015:07:20:35 +0100] "GET /partenariat/ HTTP/1.0" 200 0 "-" "Mozilla/5.0 (compatible; MJ12bot/v1.4.5; http://www.majestic12.co.uk/bot.php?+)" 213.239.194.228 - - [01/Dec/2015:10:34:11 +0100] "GET / HTTP/1.1" 200 31 "http://amsterjob.com" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:34.0) Gecko/20100101 Firefox/34.0" 206.253.226.23 - - [01/Dec/2015:11:13:50 +0100] "GET /robots.txt HTTP/1.1" 200 5 "-" "Mozilla/5.0 (compatible; oBot/2.3.1; http://filterdb.iss.net/crawler/)" 206.253.226.23 - - [01/Dec/2015:11:13:50 +0100] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 (compatible; oBot/2.3.1; http://filterdb.iss.net/crawler/)" 49.2.29.21 - - [01/Dec/2015:12:18:55 +0100] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36" 49.2.29.21 - - [01/Dec/2015:12:18:56 +0100] "GET /favicon.ico HTTP/1.1" 200 31 "http://thinkcreate.fr/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.8$ 69.61.12.70 - - [01/Dec/2015:12:30:56 +0100] "GET / HTTP/1.1" 200 5 "" "Mozilla/5.0 CommonCrawler Node PXF3HUDHAYL6PUCEXAQGFZF3FM4EUVBHD53XR3WTMXF5VN4CLW6PTHAZ2AV6AMG.7DJ4ZCG5S.TX4SIKGC4KPQYTLHTW6PMRQ7G4NT5WDVU$ 5.175.193.164 - - [01/Dec/2015:12:58:02 +0100] "HEAD / HTTP/1.1" 200 0 "-" "-" 5.175.193.164 - - [01/Dec/2015:12:58:27 +0100] "HEAD / HTTP/1.1" 200 0 "-" "-" 66.220.156.114 - - [01/Dec/2015:13:01:07 +0100] "GET /wp-content/uploads/2015/10/Toulouse-Debating-Society-180x180.jpg HTTP/1.1" 200 7302 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatex$ 66.249.85.205 - - [01/Dec/2015:13:08:05 +0100] "GET /favicon.ico HTTP/1.1" 200 31 "-" "Google favicon" 5.175.193.164 - - [01/Dec/2015:13:19:14 +0100] "HEAD / HTTP/1.1" 200 0 "-" "-" 69.171.230.117 - - [01/Dec/2015:13:48:51 +0100] "GET /wp-content/uploads/2015/11/Logo_Taccos.png HTTP/1.1" 200 3513 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" 31.13.110.100 - - [01/Dec/2015:13:48:51 +0100] "GET /wp-content/uploads/2015/10/Sun-Rise.png HTTP/1.1" 200 7576 "-" "facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php)" 62.210.205.190 - - [01/Dec/2015:14:37:56 +0100] "GET / HTTP/1.1" 200 5 "http://www.bing.com/" "Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko" 212.99.31.8 - - [01/Dec/2015:15:05:03 +0100] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36" 212.99.31.8 - - [01/Dec/2015:15:05:04 +0100] "GET /favicon.ico HTTP/1.1" 200 31 "http://thinkcreate.fr/" "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/5$ 141.212.122.128 - - [01/Dec/2015:15:17:35 +0100] "GET / HTTP/1.1" 200 5 "-" "Mozilla/5.0 zgrab/0.x" 77.201.200.125 - - [01/Dec/2015:16:58:27 +0100] "GET / HTTP/1.1" 200 31 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.2490.86 Safari/537.36" 77.201.200.125 - - [01/Dec/2015:16:58:28 +0100] "GET /favicon.ico HTTP/1.1" 200 31 "http://thinkcreate.fr/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/46.0.24$

错误日志中没有任何内容。

有什么想法吗?

1 个答案:

答案 0 :(得分:-2)

我的ISP刚刚将我的服务器从5.3升级到5.5 Php解释器。当我进行代码修复/更新时,我能够在两者之间移动(使用htaccss)。在我的情况下,由于我的大多数页面都是交互式的,因此有必要重写页面的某些部分以遵守5.5页面到页面处理变量的要求。否则页面将显示为空白(数据库中没有信息)或在页面上传递错误。我根本不了解wordpress,但如果你只处理php方面的问题,也许你只需要在这里和那里进行一些调整。我的整个域名现在都很快。我花了大约4周的时间来更新我的代码,但我又有了一个非常大的域名。