Symbolic link not allowed

rutekp

Verified User
Joined
May 29, 2007
Messages
20
Hi,

When i try to access to webmail which is symlink to roundcube-0.2 o got:
Code:
Symbolic link not allowed or link target not accessible: /var/www/html/webmail
Try to change everything but no luck .
Anyone can help? Any method to trace it ? LogLevel debug dosent help.

Code:
SELINUX=disabled
SELINUXTYPE=targeted

/var/www/html
Directories access:
/
drwxr-xr-x. 20 root root 4096 Jun 8 18:27 var
no .htaccess in this directory

/var
drwxr-x--x 10 apache apache 4096 Jun 8 18:27 www
no .htaccess in this directory

/var/www
drwxr-xr-x 9 apache root 4096 Jun 8 18:27 html
no .htaccess in this directory

/var/www/html
no .htaccess in this directory
lrwxrwxrwx 1 root root 14 Jun 7 20:32 webmail -> roundcube-0.2/
drwxr-xr-x 15 apache apache 4096 Jun 7 20:13 roundcube-0.2

Apache options:

Code:
<Directory />
Options All
AllowOverride All
</Directory>

<Directory /home>
        AllowOverride All
        Options -MultiViews -Indexes +FollowSymLinks +IncludesNoExec +Includes
        <Limit GET POST OPTIONS PROPFIND>
                Order allow,deny
                Allow from all
        </Limit>
        <LimitExcept GET POST OPTIONS PROPFIND>
                Order deny,allow
                Deny from all
        </LimitExcept>
</Directory>

<Directory /var/www/html>
        Options -Indexes +FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        <IfModule mod_suphp.c>
                suPHP_Engine On
                suPHP_UserGroup apache apache
                SetEnv PHP_INI_SCAN_DIR
        </IfModule>
</Directory>

<Directory /var/www/cgi-bin>
        AllowOverride None
        Options None
        Order allow,deny
        Allow from all
</Directory>

Thanks
Pawel R.
 
I try to open mail.domain.com which go to /var/www/html/webmail.
/var/www/html/webmail is symlnik to /var/www/html/roundcube-0.2 and it dosent work. All on DirectAdmin fresh installation.
Error:
Code:
Symbolic link not allowed or link target not accessible: /var/www/html/webmail
 
Big thanks, of course it's help. Streange on Centos 5 i have webmail owned by root and roundcube as apache and it's work.
 
It's not strange, it's an Apache configuration issue; you get to choose between allow symlinks and allow symlinks if owner match.

Jeff
 
Back
Top