Today, I got a problem with one of my website. Suddenly, I could access my website using Nginx but all themes were gone. I, then, switched back to Apache. It became worse. I can't access my website at all. The error when access my website using Apache is below :
Forbidden You don't have permission to access / on this server. Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
At first, I thought something is wrong with my configuration but then, I could access DA control panel, Munin, phpmyadmin and any other pages without any problem. Also checked permission but it looks like it's ok. Nothing is wrong. So, I checked error log and found error like below :
[Wed Jul 26 14:53:01 2011] [crit] [client xx.xx.xx.xx] (13)Permission denied: /home/admin/domains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable
Google and found in DirectAdmin. Basically, it's something about permission which I may not know what it is. John is kindly provided an updated set_permissions.sh allow us to set permission to specific user. You can get it from here -> http://files.directadmin.com/services/all/set_permissions.sh Use it by type :
./set_permisions.sh set_user_home username
where username has to changed to the one you want. John said that set_permissions.sh will be included in the future version of DirectAdmin.
Source : http://www.directadmin.com/forum/showthread.php?t=39278