Permission denied to domain.ext/webmail, /phpMyAdmin and /squirrelmail for a user

lb4is

Verified User
Joined
Mar 17, 2006
Messages
6
Location
Spain
Hi,

I have an issue accessing to /webmail, /roundcube, /phpMyAdmin and /squirrelmail for just one of my directadmin users/domain.

Suddenly, one of my hosted accounts has lost access to those global aliases, all the other accounts are accessing without problems, but one of my accounts receive an access denied response (403) to those aliases in /var/www/html.

My directadmin is 1.443. I've checked permissions and all is ok (/var/www/html has 755), all other accounts can access to that aliases but one of them got a 403 forbidden response from server. I applied chmod 755 to /var/www/html and dind't work, should I execute set_permissions.sh webapps, or something like that?.

Thank you in advance for your answers.
 

lb4is

Verified User
Joined
Mar 17, 2006
Messages
6
Location
Spain
check the error log
Thank you, this is my log:

Code:
[Tue Feb 25 21:53:29.002284 2014] [core:crit] [pid 24108] (13)Permission denied: [client 80.30.62.207:52530] AH00529: /var/www/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable and that '/var/www/' is executable
I also checked this threads on directadmin forum:
http://forum.directadmin.com/showthread.php?t=48097
http://forum.directadmin.com/showthread.php?t=42514

I applied chmod 755 but didn´t work. This issue only happens with one of my customer, all others, including my own site works fine.

Thank you.
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,769
Location
LT, EU
Please post the output of:
Code:
ls -l / | grep var
ls -l /var/ | grep www
ls -l /var/www/ | grep html
 

lb4is

Verified User
Joined
Mar 17, 2006
Messages
6
Location
Spain
Please post the output of:
Code:
ls -l / | grep var
ls -l /var/ | grep www
ls -l /var/www/ | grep html
Code:
ls -l / | grep var
drwxr-xr-x.  23 root root   4096 abr  9  2013 var
Code:
ls -l /var/ | grep www
dr-xr-x---.  9 webapps apache 4096 abr  9  2013 www
Code:
ls -l /var/www/ | grep html
drwxr-xr-x.  5 root root  4096 feb 24 03:17 html
I am using CB2 and mod_ruid2. Thank you.
 

lb4is

Verified User
Joined
Mar 17, 2006
Messages
6
Location
Spain
Code:
ls -l / | grep var
drwxr-xr-x.  23 root root   4096 abr  9  2013 var
Code:
ls -l /var/ | grep www
dr-xr-x---.  9 webapps apache 4096 abr  9  2013 www
Code:
ls -l /var/www/ | grep html
drwxr-xr-x.  5 root root  4096 feb 24 03:17 html
I am using CB2 and mod_ruid2. Thank you.
This is the file list for html dir:
Code:
total 20
-rw-r--r--.  1 root    root      44 abr  9  2013 index.html
lrwxrwxrwx   1 webapps webapps   44 feb 24 03:17 phpMyAdmin -> /var/www/html/phpMyAdmin-4.1.8-all-languages
drwxr-xr-x   9 webapps webapps 4096 feb 24 03:17 phpMyAdmin-4.1.8-all-languages
-rwxr-xr-x.  1 root    root      68 abr  9  2013 redirect.php
lrwxrwxrwx   1 webapps webapps   19 oct 23 03:47 roundcube -> roundcubemail-0.9.5
drwxr-xr-x  10 webapps webapps 4096 oct 23 03:47 roundcubemail-0.9.5
lrwxrwxrwx   1 webapps webapps   19 may  1  2013 squirrelmail -> squirrelmail-1.4.22
drwxr-xr-x. 16 webapps webapps 4096 may  1  2013 squirrelmail-1.4.22
Thanks.
 

lb4is

Verified User
Joined
Mar 17, 2006
Messages
6
Location
Spain
Solved :)

Please try:
Code:
chmod 551 /var/www
Hey!!!, all it's ok now, thank you very much. But, I cannot understand why just only one of my customers was affected. If the Read/Others permission wasn´t established, It was for everyone, isn't it?, why my other customers had access to those urls in /var/www without others read permission?. I think this happened past feb-24 when phpMyAdmin was automatically updated by update script, but it's rare, isn´t it?.

Thank you again Martynas, 10 points!!
 

Nerigal

Verified User
Joined
Jul 6, 2009
Messages
124
Got exactly the same problem and this is since the update of directadmin to version 1.44.3...
i know its not to much information but that all i have the pass version we had was 1.42

using custombuild 1.2

Thanks
 
Top