Wednesday, April 24, 2024

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

配置Linux服务器出现问题,如题,解决问题方法如下

今天服务器上的phpmyadmin打开后出现下面的提示:

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

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

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

以前遇到权限问题都是一律设为777,现在看来不能再这样了,呵呵,安全问题也是很重要。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.