关于Centos7下Apache服务器php应用phpMyAdmin无法正常运行的问题

  昨晚在配置phpMyAdmin时突然无法打开了,打开主页显示空白,位于/etc/httpd/logs/error_log下面的apache的错误日志显示如下:
[Wed Mar 21 14:10:47.800034 2018] [autoindex:error] [pid 13460] [client ::1:35522] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
[Wed Mar 21 14:14:28.810509 2018] [mpm_prefork:notice] [pid 13459] AH00170: caught SIGWINCH, shutting down gracefully
[Wed Mar 21 14:14:30.104634 2018] [suexec:notice] [pid 13789] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Wed Mar 21 14:14:30.119509 2018] [auth_digest:notice] [pid 13789] AH01757: generating secret for digest authentication ...
[Wed Mar 21 14:14:30.120061 2018] [lbmethod_heartbeat:notice] [pid 13789] AH02282: No slotmem from mod_heartmonitor
[Wed Mar 21 14:14:30.128561 2018] [mpm_prefork:notice] [pid 13789] AH00163: Apache/2.4.6 (CentOS) PHP/7.2.3 configured -- resuming normal operations
[Wed Mar 21 14:14:30.128596 2018] [core:notice] [pid 13789] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Wed Mar 21 14:15:42.520244 2018] [mpm_prefork:notice] [pid 13789] AH00170: caught SIGWINCH, shutting down gracefully

  网上到查了半天也没有查处原因,也尝试过重装apache,刚才想到了配置文件的问题,于是把位于/var/www/html的phpMyAdmin安装目录下的config.sample.inc.php文件重新拷贝一份覆盖config.inc.php,问题解决。看来是改这个文件的时候不小心改错了,小小问题又花半天了时间。

  总结两点经验:1、linux下某些程序无法运行的时候可以想想是不是配置文件的问题。2、养成拷贝文件而不是重命名文件、备份文件的好习惯。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

vansl

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值