Thursday, March 28, 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.