gpt4 book ai didi

php - 升级到 PHP5.5 时 Wordpress 崩溃

转载 作者:行者123 更新时间:2023-12-03 17:01:59 27 4
gpt4 key购买 nike

我在带有 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$

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

有什么想法吗?

最佳答案

我的 ISP 刚刚将我的服务器从 5.3 升级到 5.5 Php 解释器。当我进行代码修复/更新时,我能够在两者之间移动(使用 htaccss)。在我的例子中,由于我的大部分页面都是交互式的,因此有必要重写我页面的某些部分以符合 5.5 处理页面之间变量的要求。否则页面将变为空白(没有来自数据库的信息)或在页面上传递错误。我对 wordpress 知之甚少,但如果你只处理 php 方面的事情,也许你只需要在这里和那里进行一些调整。我的整个域现在都在加速。更新我的代码花了大约 4 周的时间,但我的域还是很大。

关于php - 升级到 PHP5.5 时 Wordpress 崩溃,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33940068/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com