安装xampp遇到World-writable config file‘/opt/lampp/etc/my.cnf’is ignored错误的处理办法


 
安装xampp遇到World-writable config file‘/opt/lampp/etc/my.cnf’is ignored错误的处理办法
 
今天在ubuntu上安装xampp,安装完毕后在执行 lampp start时系统提示World-writable config file ‘/opt/lampp/etc/my.cnf’ is ignored,并且mysql无法启动。在浏览器中进入phpmyadmin,提示Wrong permissions on configuration file, should not be world writable!根据错误提示分析,可能是因为安装时习惯性的把整个lampp目录的权限设为777了。 
  www.2cto.com  
解决方法:进入lampp/etc/把my.cnf的权限改为755 重启lampp,正常。同理,把phpmyadmin的权限也改成755即可。至此,问题全部解决。 
 
PS:出于安全考虑,xampp不允许将mysql和phpmyadmin的权限范围设为最大,在安装时注意不要把整个lampp目录的权限设为777。
 
 
 
作者 lt200819

相关内容

    暂无相关文章