用户有虚拟空间转换为主机租用。将原来的web数据转移到新的服务器后,访问域名无法打开。
查看error log,提示
[Mon Dec 24 10:49:09 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:09 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:10 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:33 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:33 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:41 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:41 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:42 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:45 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:49:45 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:51:03 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
[Mon Dec 24 10:51:03 2012] [crit] [client 180.169.14.*] (13)Permission denied: /home/test/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
登录系统查看
#ll drwx------ 4 admin admin 4096 Dec 24 10:45 admin drwx------ 5 pytest pytest 4096 Dec 6 09:43 test web的数据目录为/home/test/www目录。因test目录的权限为700,导致了其他用户无法读取文件。 将test目录的权限修改为755.问题解决。 #chmod 755 test