`

Wrong permissions on configuration file, should not be world writable!

 
阅读更多

   前言:

          今天在Linux下构建php,mysql的时候,还是遵循了那句“在Linux下问题总是异常多”。

 

  场景:
         进入phpMyAdmin页面时显示:Wrong permissions on configuration file, should not be world writable
   
  原因:
         是phpmyadmin目录权限设置的问题,如果把phpmyadmin的所有文件chmod 777就会出现这个提示了
 
  解决方法:
         只要修改文件属性就可以了,phpmyadmin要运行在755权限下,
         终端运行chmod 755 phpmyadmin

         原来是phpmyadmin权限为777,要把所有文件的组和其他用户的写权限全部去掉才行,将权限改为755后一切正常.

         以前遇到权限问题都是一律设为777,现在看来不能再这样了,呵呵,php在考虑安全问题的时候也是很谨慎的!

1
1
分享到:
评论
1 楼 chenwq 2011-09-09  
/ / / / / / / / 便

相关推荐

Global site tag (gtag.js) - Google Analytics