- 主题:ubuntu 12.04LTS安装的kbs web经常出现载入中错误
apache2,php都是apt-get安装的,其他都正常,就web打开页面经常会提示载入中,直接打开载入中的文章,显示“无法显示网页”,用wget去抓,提示“HTTP request sent, awaiting response... No data received.”,用firefox和chrome看,大小是0,apache access log里面“"GET /bbscon.php?bid=145&id=59477 HTTP/1.1" 200 0 ”,error log里面没有任何错误。服务器时间也ntpdate更新过。gdb调试也不会出现错误,会是啥问题?
--
FROM 125.77.201.*
部分文章有这种错误,如果restart apache2,错误的文章就有可能正常了。apache access log里面发现有这种错误 IP - - [26/Apr/2012:13:28:47 +0800] "-" 408 0 "-" "-" 。keepalive是off的。
【 在 Haishion (Haishion) 的大作中提到: 】
: apache2,php都是apt-get安装的,其他都正常,就web打开页面经常会提示载入中,直接打开载入中的文章,显示“无法显示网页”,用wget去抓,提示“HTTP request sent, awaiting response... No data received.”,用firefox和chrome看,大小是0,apache access log里面“
--
FROM 125.77.201.*
php啥版本
【 在 Haishion (Haishion) 的大作中提到: 】
: apache2,php都是apt-get安装的,其他都正常,就web打开页面经常会提示载入中,直接打开载入中的文章,显示“无法显示网页”,用wget去抓,提示“HTTP request sent, awaiting response... No data received.”,用firefox和chrome看,大小是0,apache access log里面“
--
FROM 123.118.10.*
PHP 5.3.10-1ubuntu3 with Suhosin-Patch (cli) (built: Apr 11 2012 17:38:30)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
apache是 Version: 2.2.22-1ubuntu1
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: php啥版本
--
FROM 125.77.201.*
呃。。。诡异了。php开errorlog试试
www2代码写的不太规矩,会有可能warning级别的错误出来破掉js输出
另外php.ini里看看display_errors是不是off
【 在 Haishion (Haishion) 的大作中提到: 】
: PHP 5.3.10-1ubuntu3 with Suhosin-Patch (cli) (built: Apr 11 2012 17:38:30)
: Copyright (c) 1997-2012 The PHP Group
: Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies
: ...................
--
FROM 123.118.10.*
error_reporting = E_ALL
display_errors = On
奇怪,错误的页面我现在F5刷新一下access log会出现2条,有时候又没有。然后偶尔还有一条408超时错误。
- - [26/Apr/2012:16:05:10 +0800] "GET /bbscon.php?bid=56&id=74245 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
- - [26/Apr/2012:16:05:10 +0800] "GET /bbscon.php?bid=56&id=74245 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
- - [26/Apr/2012:16:05:32 +0800] "-" 408 0 "-" "-"
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: 呃。。。诡异了。php开errorlog试试
: www2代码写的不太规矩,会有可能warning级别的错误出来破掉js输出
: 另外php.ini里看看display_errors是不是off
: ...................
--
FROM 125.77.201.*
【 在 Haishion (Haishion) 的大作中提到: 】
: 标 题: Re: ubuntu 12.04LTS安装的kbs web经常出现载入中错误
: 发信站: 水木社区 (Thu Apr 26 16:10:15 2012), 转信
:
: error_reporting = E_ALL
: display_errors = On
关了它
:
: 奇怪,错误的页面我现在F5刷新一下access log会出现2条,有时候又没有。然后偶尔还有一条408超时错误。
:
: - - [26/Apr/2012:16:05:10 +0800] "GET /bbscon.php?bid=56&id=74245 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
: - - [26/Apr/2012:16:05:10 +0800] "GET /bbscon.php?bid=56&id=74245 HTTP/1.1" 200 0 "-" "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)"
: - - [26/Apr/2012:16:05:32 +0800] "-" 408 0 "-" "-"
:
:
:
: 【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: : 呃。。。诡异了。php开errorlog试试
: : www2代码写的不太规矩,会有可能warning级别的错误出来破掉js输出
: : 另外php.ini里看看display_errors是不是off
: : ...................
:
: --
:
: ※ 来源:·水木社区 newsmth.net·[FROM: 125.77.201.*]
--
FROM 123.118.10.*
关掉还是一模一样。我为了测试apache和php5,安装了个drupal,貌似一切正常。
我对bbscon.php不停的die(rand());测试出错在哪,目前在第170行的
$s = bbs2_readfile($filename); 发现错误,只要die在前面,就显示ok,die在后面,就是200,返回0.很明显这个函数出了什么问题。我继续跟进去看下。这里是phpbbs_file.c的内容,有没有办法修改了立刻生效?这样子我还可以用die大发进去定位问题,或者gdb么?
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: 关了它
--
FROM 125.77.201.*
gdb进去看吧。
【 在 Haishion (Haishion) 的大作中提到: 】
: 关掉还是一模一样。我为了测试apache和php5,安装了个drupal,貌似一切正常。
: 我对bbscon.php不停的die(rand());测试出错在哪,目前在第170行的
: $s = bbs2_readfile($filename); 发现错误,只要die在前面,就显示ok,die在后面,就是200,返回0.很明显这个函数出了什么问题。我继续跟进去看下。这里是phpbbs_file.c的内容,有没有办法修改了立刻生效?这样子我还可以用die大发进去定位问题,或者gdb么?
: ...................
--
FROM 123.118.10.*
怎么gdb?看过atppp的web seg fault 调试方法,但是没有 seg fault,所以gdb不会停止。
我的步骤如下:
source /etc/apache2/envvars
gdb /usr/sbin/apache2
(gdb) run -k start
(gdb) list
No symbol table is loaded. Use the "file" command.
(gdb) bt
No stack.
【 在 fancyrabbit (fancy★一摩尔时光) 的大作中提到: 】
: gdb进去看吧。
--
FROM 125.77.201.*