阅读:3632回复:11
ANK搭建不了PHP5.2的程序
我用我们的Apache版 PHP5.2环境搭建的网站,换成ANK以后就直接出现
图片:QQ图片20181219140436.png 一下是我配置的ANK,是不是我配置错了。 图片:12.png |
|
沙发#
发布于:2018-12-19 18:57
ank的php是以fastcgi模式运行的,以前apache版本是dll形式加载的php,老版本php某些php函数必须以dll形式加载php才能有效,换成fastcgi模式运行就获取不到返回500错误。这个你打开php配置,下拉选择php5.2.错误报告打开,保存,然后再次访问首页,再去Logs目录下打开php52_error.log里面记录了具体错误。
|
|
板凳#
发布于:2018-12-20 08:37
|
|
地板#
发布于:2018-12-20 08:43
动力火锅:ank的php是以fastcgi模式运行的,以前apache版本是dll形式加载的php,老版本php某些php函数必须以dll形式加载php才能有效,换成fastcgi模式运行就获取不到返回500错误。这个你打开php配置,下拉选择php...回到原帖115.213.86.62 - - [20/Dec/2018:08:37:13 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" 115.213.86.62 - - [20/Dec/2018:08:37:14 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" 180.163.220.66 - - [20/Dec/2018:08:37:19 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 180.163.220.66 - - [20/Dec/2018:08:37:21 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 180.163.220.66 - - [20/Dec/2018:08:37:24 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 42.236.10.75 - - [20/Dec/2018:08:37:29 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 180.163.220.5 - - [20/Dec/2018:08:37:35 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 180.163.220.66 - - [20/Dec/2018:08:37:40 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36" 180.163.220.68 - - [20/Dec/2018:08:37:41 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Linux; U; Android 5.0.2; zh-CN; Redmi Note 3 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 OPR/11.2.3.102637 Mobile Safari/537.36" 180.163.220.68 - - [20/Dec/2018:08:37:44 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Linux; U; Android 5.0.2; zh-CN; Redmi Note 3 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 OPR/11.2.3.102637 Mobile Safari/537.36" 42.236.10.84 - - [20/Dec/2018:08:37:51 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Linux; U; Android 5.0.2; zh-CN; Redmi Note 3 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 OPR/11.2.3.102637 Mobile Safari/537.36" 42.236.10.78 - - [20/Dec/2018:08:37:57 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Linux; U; Android 5.0.2; zh-CN; Redmi Note 3 Build/LRX22G) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 OPR/11.2.3.102637 Mobile Safari/537.36" 115.213.86.62 - - [20/Dec/2018:08:38:05 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" 115.213.86.62 - - [20/Dec/2018:08:38:06 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 5.2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" 5.45.64.76 - - [20/Dec/2018:08:42:01 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 5.45.64.76 - - [20/Dec/2018:08:42:02 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)" 198.2.217.241 - - [20/Dec/2018:08:43:03 +0800] "GET / HTTP/1.1" 302 36 "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" 198.2.217.241 - - [20/Dec/2018:08:43:04 +0800] "GET /index.php/user/login HTTP/1.1" 500 - "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36" |
|
4楼#
发布于:2018-12-20 11:01
|
|
5楼#
发布于:2018-12-20 15:42
这个应该是伪静态没生效造成的,网站根目录.htaccess里在index.php后面加一个问号index.php?/ 其他不变。
|
|
6楼#
发布于:2018-12-21 09:13
|
|
7楼#
发布于:2018-12-21 12:11
index.php?s=/后边不变
|
|
8楼#
发布于:2018-12-21 15:52
|
|
9楼#
发布于:2018-12-21 15:58
|
|
10楼#
发布于:2018-12-21 17:08
了解了,跟我第一个回复是一样的问题,fastcgi模式运行php获取不到get_allheaders函数的值导致的。你可以尝试把php版本绑定到php5.4,如果还不行,这套程序就只能用命令版的apache php5.2搭建了
|
|
11楼#
发布于:2018-12-22 14:12
|
|