因为工作需要,所以需要建一个LAMP,又懒得源码安装了,所以就用了如下命令直接自动安装好了
- yum install mysql++-devel.i686 mysql-devel.i686 mysql-libs.i686
-
-
yum install php
-
-
yum install httpd*
因为安装好了以后,mysql我不熟,好久不碰了,sql语句都不知道是什么兄弟了,就想起了phpmyadmin
装之
安装方法搜索一艘一大堆,装好了以后发现浏览不了,这下就悲剧了
看一下httpd的日志,错误如下
- [Fri Mar 02 01:17:32 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:17:38 2012] [error] [client 192.168.1.102] File does not exist: /var/www/html/phpmyadmi
-
[Fri Mar 02 01:17:41 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:18:18 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:19:48 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:20:29 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:21:56 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:21:58 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:22:18 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:22:20 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:22:31 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
-
[Fri Mar 02 01:26:45 2012] [notice] caught SIGTERM, shutting down
搜噶,原来是酱紫的
错误原因找到,就去把Allow里面加一下自己的ip即可
- vim /etc/httpd/conf.d/phpMyAdmin.conf
ok了
阅读(4640) | 评论(0) | 转发(0) |