免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: smallstarli
打印 上一主题 下一主题

[系统安装] linux(RHEL5.6)安装pdo_mysql出错。提示mysql_querry missing[已解决] [复制链接]

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
131 [报告]
发表于 2013-08-14 16:22 |只看该作者
不是那个目录.
rpm安装的,应该在/var/log/httpd目录下.源码安装的,在你apache安装的目录下的logs目录下

论坛徽章:
0
132 [报告]
发表于 2013-08-14 16:24 |只看该作者
[root@localhost apache2]# ls
bin  build  cgi-bin  conf  error  htdocs  icons  include  lib  logs  man  manual  modules
[root@localhost apache2]# cd logs
[root@localhost logs]# ls
[root@localhost logs]#
里面是空的

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
133 [报告]
发表于 2013-08-14 16:39 |只看该作者
不应该啊.你检查下apache的配置文件,看看log的配置部分.

论坛徽章:
0
134 [报告]
发表于 2013-08-14 16:48 |只看该作者
LoadModule php5_module modules/libphp5.so
·····
DirectoryIndex index.html index.html.var index.php
···············
AddType application/x-httpd-php .php
······························
配置文件上我改了这三个地方,应该可以了吧
错误信息是在你说的那里的,可是········
# ErrorLog: The location of the error log file.
# If you do not specify an ErrorLog directive within a <VirtualHost>
# container, error messages relating to that virtual host will be
# logged here.  If you *do* define an error logfile for a <VirtualHost>
# container, that host's errors will be logged there and not here.
#
ErrorLog "logs/error_log"

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
135 [报告]
发表于 2013-08-14 16:51 |只看该作者
确实很奇怪.你重启下apache服务看看.在安装目录没有,到/var/log目录下找找

论坛徽章:
0
136 [报告]
发表于 2013-08-14 16:57 |只看该作者
重启过好几次了,我怀疑,是不是我php没装对呀,可是用rpm包装的时候,没提示错误啊
[root@localhost logs]# rpm -qa|grep -i php
php-devel-5.1.6-27.el5_7.5
php-cli-5.1.6-27.el5_7.5
php-mysql-5.1.6-27.el5_7.5
php-5.1.6-27.el5_7.5
php-pdo-5.1.6-27.el5_7.5
php-common-5.1.6-27.el5_7.5

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
137 [报告]
发表于 2013-08-14 17:00 |只看该作者
php应该是安装了.你可以看下php -v,应该有结果的

论坛徽章:
0
138 [报告]
发表于 2013-08-14 17:01 |只看该作者
^[[?1;2c[root@localhost logs]# php -v
PHP 5.1.6 (cli) (built: Feb  3 2012 09:12:34)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
有的有的,那是他工作不正常或者他根本就没工作呢?或者是啥········html的可以打开,说明我apache跟路径没问题吧

论坛徽章:
0
139 [报告]
发表于 2013-08-14 17:07 |只看该作者
[Wed Aug 14 17:03:57 2013] [error] [client 192.168.0.216] Directory index forbidden by Options directive: /var/www/html/
[Wed Aug 14 17:06:10 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:06:11 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:06:13 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:06:14 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:06:16 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:06:20 2013] [error] [client 192.168.0.66] script '/var/www/html/test.php' not found or unable to stat
[Wed Aug 14 17:07:42 2013] [error] [client 192.168.0.66] script '/var/www/html/info.php' not found or unable to stat
[Wed Aug 14 17:07:49 2013] [error] [client 192.168.0.66] script '/var/www/html/info.php' not found or unable to stat
[Wed Aug 14 17:07:50 2013] [error] [client 192.168.0.66] script '/var/www/html/info.php' not found or unable to stat
找到了,为什么路径会跑到www/html下面  他是这个意思吗

论坛徽章:
0
140 [报告]
发表于 2013-08-14 17:11 |只看该作者
有了有了,我在他这个路径上弄了一个,就有了,可是我很不明白啊,我没有改过httpd.conf上的路径。上面不是都apapche2/htdocs/吗,为什么php会跑到这里呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP