安装LAMP以后遇到一点小问题总结

2019-03-05 09:48:09 浏览数 (1)

因为工作需要,所以需要建一个LAMP,又懒得源码安装了,所以就用了如下命令直接自动安装好了

  1. yum install mysql -devel.i686 mysql-devel.i686 mysql-libs.i686
  2. yum install php
  3. yum install httpd*

因为安装好了以后,mysql我不熟,好久不碰了,sql语句都不知道是什么兄弟了,就想起了phpmyadmin 装之

  1. yum install phpmyadmin

安装方法搜索一艘一大堆,装好了以后发现浏览不了,这下就悲剧了 看一下httpd的日志,错误如下

  1. [Fri Mar 02 01:17:32 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  2. [Fri Mar 02 01:17:38 2012] [error] [client 192.168.1.102] File does not exist: /var/www/html/phpmyadmi
  3. [Fri Mar 02 01:17:41 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  4. [Fri Mar 02 01:18:18 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  5. [Fri Mar 02 01:19:48 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  6. [Fri Mar 02 01:20:29 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  7. [Fri Mar 02 01:21:56 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  8. [Fri Mar 02 01:21:58 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  9. [Fri Mar 02 01:22:18 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  10. [Fri Mar 02 01:22:20 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  11. [Fri Mar 02 01:22:31 2012] [error] [client 192.168.1.102] client denied by server configuration: /usr/share/phpMyAdmin
  12. [Fri Mar 02 01:26:45 2012] [notice] caught SIGTERM, shutting down

搜噶,原来是酱紫的 错误原因找到,就去把Allow里面加一下自己的ip即可

  1. vim /etc/httpd/conf.d/phpMyAdmin.conf

ok了

0 人点赞