免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 4330 | 回复: 3
打印 上一主题 下一主题

[Web] Apache/2.2.8 (Unix) 运行PHP/5.2.6出现问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-05-30 20:31 |只看该作者 |倒序浏览
10可用积分
apache运行正常,增加php支持后运行cacti,界面直接打不开显示
无法显示网页apache的日志:
$ more access_log
192.168.66.66 - - [30/May/2008:23:37:53 +0800] "GET /cacti HTTP/1.1" 301 241
192.168.66.66 - - [30/May/2008:23:38:44 +0800] "GET /cacti HTTP/1.1" 301 241
192.168.66.66 - - [30/May/2008:23:38:50 +0800] "GET / HTTP/1.1" 200 44
192.168.66.66 - - [30/May/2008:23:38:52 +0800] "GET /cacti HTTP/1.1" 301 241

$more error_log
[Fri May 30 23:38:43 2008] [notice] Apache/2.2.8 (Unix) PHP/5.2.6 configured -- resuming normal operations
[Fri May 30 23:38:47 2008] [notice] child pid 2265 exit signal Segmentation fault (11)
[Fri May 30 23:38:49 2008] [notice] child pid 2266 exit signal Segmentation fault (11)
[Fri May 30 23:38:55 2008] [notice] child pid 2268 exit signal Segmentation fault (11)
[Fri May 30 23:38:56 2008] [notice] child pid 2267 exit signal Segmentation fault (11)

apache关于php的配置:
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.html.var


apche安装时编译参数:
./configure --prefix=/local/apache \
--enable-so
php编译参数:
./configure --prefix=/local/php --with-apxs2=/local/apache/bin/apxs \
--with-config-file-path=/local/php  \
--enable-sockets --with-mysql=/local/mysql  \
--with-zlib-dir=/usr/include --with-gd

论坛徽章:
0
2 [报告]
发表于 2008-05-30 20:37 |只看该作者
./configure LDFLAGS="-L/usr/lib64 -L/lib64" --enable-so
更正下,apache编译时增加了64位的支持,系统是centos5,64位的

论坛徽章:
0
3 [报告]
发表于 2008-05-30 20:53 |只看该作者
刚试了个php的测试html:
<html>
<head>
<title>apache测试页面</title>
</head>
<body>
html:Hello,this is apache test page!<br><br>
php代码显示:
<?php
echo "测试php";
echo phpinfo();
?>
</body>
</html>

结果显示为:
html:Hello,this is apache test page!

php代码显示:

论坛徽章:
0
4 [报告]
发表于 2008-05-31 02:15 |只看该作者
找到原因了,原来是我没把cacti的数据库导入的缘故
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP