Forbidden error for all subdomains after transfer
Hello,
I've just moved some sites from one VPS to another ( WHM transfer tool ), all subdomains are not accessible now, I have an error like this on my browser:
[QUOTE]
Forbidden
You don't have permission to access / on this server.
Server unable to read htaccess file, denying access to be safe
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
The subdomains are in these directories: /home/USER/subdomains/subdomain1 /home/USER/subdomains/subdomain2 ecc P.S. I`ve just tried to make a new subdomain and I have the same problem, in the error log I can see: [QUOTE] [Sat Jun 09 12:04:26.334894 2018] [core:crit] [pid 15524:tid 140087620773632] (13)Permission denied: [client xx.xx.xx.xx:55251] AH00529: /home/xxx/subdomains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/xxx/subdomains/' is executable, referer: [Sat Jun 09 12:04:25.736764 2018] [core:crit] [pid 15720:tid 140087536854784] (13)Permission denied: [client xxx.xxx.xxx.xxx:50005] AH00529: /home/xxx/subdomains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/xxx/subdomains/' is executable
I looked in /home/xxx/subdomains/ and I can`t see the .htaccess file ( it is not present olso in the old VPS and all subdomains were working)
The subdomains are in these directories: /home/USER/subdomains/subdomain1 /home/USER/subdomains/subdomain2 ecc P.S. I`ve just tried to make a new subdomain and I have the same problem, in the error log I can see: [QUOTE] [Sat Jun 09 12:04:26.334894 2018] [core:crit] [pid 15524:tid 140087620773632] (13)Permission denied: [client xx.xx.xx.xx:55251] AH00529: /home/xxx/subdomains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/xxx/subdomains/' is executable, referer: [Sat Jun 09 12:04:25.736764 2018] [core:crit] [pid 15720:tid 140087536854784] (13)Permission denied: [client xxx.xxx.xxx.xxx:50005] AH00529: /home/xxx/subdomains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/home/xxx/subdomains/' is executable
I looked in /home/xxx/subdomains/ and I can`t see the .htaccess file ( it is not present olso in the old VPS and all subdomains were working)
-
Ok I probably fuond the solution: /home/xxx/subdomains was 750, I changed the permission of this directory to 755 and now everything works, but is it safe? On the old VPS the directory have 750 permission end everything was fine. 0 -
If you want to set 750 then ownership of that dir should be user:nobody then it will work for you. 0 -
Done, thanks. 0 -
Hi @Skin Glad to see that @HostingH was able to help you and you were able to get your issue resolved! Please let us know if you have any other issues or concerns! Thanks! 0
Please sign in to leave a comment.
Comments
4 comments