在cpanel里手动安装网站,结果报了一500的错误,查看错误日志如下
 
SoftException in Application.cpp:256: File “/home/fashions/public_html/index.php” is writeable by group
 
原来是这cpanel不允许这个目录文件的权限为777,用chmod把他改成755就可以了
 
find ./ -type d -print0|xargs -0 chmod 755; find ./ -type f -print0 |xargs -0 chmod 644
 
还有一种情况也会报500错误,错误日志如下
 
SoftException in Application.cpp:422: Mismatch between target UID (515) and UID (501) of file “/home/bestdevi/public_html/index.php”
 
index.php这个文件的拥有者不匹配该域名的拥有者,执行如下命令
 
chown -R siteuser:siteuser /home/siteuser/public_html