Symbolic link not allowed or link target not accessible: /var/www/ispconfig - Debian 7.8

Discussion in 'General' started by PVasileff, Aug 26, 2015.

  1. PVasileff

    PVasileff Member

    Code:
    ls -lah /var/www/
    total 32K
    drwxr-xr-x  8 root  root  4.0K Mar 23 08:05 .
    drwxr-xr-x 16 root  root  4.0K Aug 21 06:24 ..
    drwxr-xr-x  2 ispapps ispapps 4.0K Mar 22 19:20 apps
    drwxr-xr-x  3 root  root  4.0K Mar 23 08:05 clients
    drwxr-xr-x  2 root  root  4.0K Mar 23 08:05 conf
    drwxr-xr-x  2 root  root  4.0K Mar 22 20:25 default
    lrwxrwxrwx  1 root  root  34 Mar 22 19:20 ispconfig -> /usr/local/ispconfig/interface/web
    drwxr-xr-x  5 root  root  4.0K Mar 23 08:05 php-fcgi-scripts
    drwxr-xr-x  2 root  root  4.0K Mar 21 08:01 webalizer
    Code:
    ls -lah /usr/local/ispconfig/interface/web/
    total 124K
    drwxr-s--- 19 ispconfig ispconfig 4.0K Apr 17 23:07 .
    drwxr-s---  8 ispconfig ispconfig 4.0K Mar 22 19:20 ..
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 admin
    -rwxr-x---  1 ispconfig ispconfig 3.2K Jun  5 16:24 capp.php
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 client
    -rwxr-x---  1 ispconfig ispconfig 2.9K Jun  5 16:24 content.php
    drwxr-s---  7 ispconfig ispconfig 4.0K Mar 22 19:20 dashboard
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 dns
    -rwxr-x---  1 ispconfig ispconfig    0 Jun  5 16:24 dummy_login.html
    -rwxr-x---  1 ispconfig ispconfig  19K Jun  5 16:24 favicon.ico
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 help
    -rwxr-x---  1 ispconfig ispconfig 3.2K Jun  5 16:24 index.php
    drwxr-s---  4 ispconfig ispconfig 4.0K Mar 22 19:20 js
    -rwxr-x---  1 ispconfig ispconfig 1.7K Jun  5 16:24 keepalive.php
    drwxr-s---  4 ispconfig ispconfig 4.0K Mar 22 19:20 login
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 mail
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 mailuser
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 monitor
    -rwxr-x---  1 ispconfig ispconfig 4.2K Jun  5 16:24 nav.php
    drwxr-s---  2 ispconfig ispconfig 4.0K Mar 22 19:20 remote
    -rwxr-x---  1 ispconfig ispconfig   25 Jun  5 16:24 robots.txt
    drwxr-s---  7 ispconfig ispconfig 4.0K Mar 22 19:20 sites
    drwxr-s---  3 ispconfig ispconfig 4.0K Mar 22 19:20 strengthmeter
    drwxrws---  2 ispconfig ispconfig 4.0K Mar 22 19:20 temp
    drwxr-s---  7 ispconfig ispconfig 4.0K Mar 22 19:20 themes
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 tools
    drwxr-s---  6 ispconfig ispconfig 4.0K Mar 22 19:20 vm
    
    After trying to add +FollowSymLinks in /etc/apache2/sites-available/ispconfig.conf on:

    Code:
    # Do not allow access to the root file system of the server for security reasons
    <Directory />
            Options -Indexes +FollowSymLinks
        AllowOverride None
                    Order Deny,Allow
            Deny from all
            </Directory>
    
    and stop & start apache - problem is not fixed as it is written in https://www.howtoforge.com/communit...arget-not-accessible-var-www-ispconfig.63258/

    I decided to check where there are set this directive:

    Code:
    conf.d/smokeping:5:     Options FollowSymLinks
    conf.d/apache2-doc:4:    Options Indexes FollowSymlinks
    conf.d/nagios3.conf:31: Options FollowSymLinks
    conf.d/roundcube.conf:6:  Options +FollowSymLinks
    conf.d/roundcube.conf:30:        Options -FollowSymLinks
    conf.d/roundcube.conf:34:        Options -FollowSymLinks
    conf.d/roundcube.conf:40:        Options -FollowSymLinks
    conf.d/phpmyadmin.conf:9:       Options FollowSymLinks
    conf.d/javascript-common.conf:4:        Options FollowSymLinks MultiViews
    conf.d/mailman.conf:27:    Options FollowSymlinks
    conf.d/mailman.conf:54:#    Options FollowSymLinks
    conf.d/nconf.conf:6:  Options +FollowSymLinks
    conf.d/nconf.conf:29:        Options -FollowSymLinks
    conf.d/nconf.conf:33:        Options -FollowSymLinks
    conf.d/nconf.conf:39:        Options -FollowSymLinks
    mods-available/alias.conf:18:    Options FollowSymlinks
    mods-enabled/alias.conf:18:    Options FollowSymlinks
    sites-available/ispconfig.conf:61:        Options +FollowSymLinks
    sites-available/ispconfig.vhost:20:      Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
    sites-available/ispconfig.vhost:39:      Options +FollowSymLinks
    sites-available/default:5:                Options FollowSymLinks
    sites-available/default:9:                Options -Indexes FollowSymLinks MultiViews
    sites-available/apps.vhost:21:          Options FollowSymLinks
    sites-available/apps.vhost:32:          Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
    sites-enabled/000-ispconfig.vhost:20:      Options -Indexes +FollowSymLinks +MultiViews +ExecCGI
    sites-enabled/000-ispconfig.vhost:39:      Options +FollowSymLinks
    sites-enabled/000-apps.vhost:21:                Options FollowSymLinks
    sites-enabled/000-apps.vhost:32:                Options +Indexes +FollowSymLinks +MultiViews +ExecCGI
    sites-enabled/000-default:5:                Options FollowSymLinks
    sites-enabled/000-default:9:                Options -Indexes FollowSymLinks MultiViews
    sites-enabled/000-ispconfig.conf:61:        Options +FollowSymLinks
    
    I have 5 servers based on debian 7.8 + ISPConfig 3.0.5.4p8 and only this had this problem...
    Please help.
     
  2. PVasileff

    PVasileff Member

  3. till

    till Super Moderator Staff Member ISPConfig Developer

    What yre you trying to configure and in which exact situation do you get this error message?
     
  4. PVasileff

    PVasileff Member

    I get this error when trying to open ISPConfig Panel - https://myserver:8080/
    The different service that run on that server and is not available on another 4 servers is nagios3.
    I tried to move/remove the configuration file from /etc/apache2/conf.d/nagios3.conf to /tmp and to restart Apache server but that does not solve the problem.
     
  5. PVasileff

    PVasileff Member

    all day trying to solve this problem, and comparing the configuration of the new machine installed and everything is equally..
    I dont understand where is the problem...
    Here some strace outputs, If they can be useful:
    Code:
    $ ps aufx | grep sbin/apache | awk '{print"-p " $2}' | xargs strace
    
    [pid 14173] <... epoll_wait resumed> {{EPOLLIN, {u32=2908972392, u64=140714627523944}}}, 4, 10000) = 1
    [pid 14173] accept4(6, {sa_family=AF_INET, sin_port=htons(47262), sin_addr=inet_addr("XX.XX.XX.XX")}, [16], SOCK_CLOEXEC) = 21
    [pid 14173] semop(160727050, {{0, 1, SEM_UNDO}}, 1 <unfinished ...>
    [pid 25605] <... semop resumed> )       = 0
    [pid 25605] epoll_wait(11,  <unfinished ...>
    [pid 14173] <... semop resumed> )       = 0
    [pid 14173] getsockname(21, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("XX.XX.XX.XX")}, [16]) = 0
    [pid 14173] open("/dev/urandom", O_RDONLY|O_CLOEXEC) = 22
    [pid 14173] read(22, "\321\334\357w6\37\227\326<\362\343\324\370\226\t4\265\354Y\327\363g\267\10\263\225\234\206\355\201H\251"..., 512) = 512
    [pid 14173] close(22)                   = 0
    [pid 14173] fcntl(21, F_GETFL)          = 0x2 (flags O_RDWR)
    [pid 14173] fcntl(21, F_SETFL, O_RDWR|O_NONBLOCK) = 0
    [pid 14173] read(21, "\26\3\1\2\0\1\0\1\374\3\3_L\0\275\267\306DN\0\220\334T%\242>\310\245\310\335\252\220"..., 8000) = 517
    [pid 14173] writev(21, [{"\25\3\3\0\2\1p\26\3\3\0Q\2\0\0M\3\3U\335\325R\314\344\10\33\216\314\304]\3259"..., 144}], 1) = 144
    [pid 14173] poll([{fd=21, events=POLLIN}], 1, 10000) = 1 ([{fd=21, revents=POLLIN}])
    [pid 14173] read(21, "\24\3\3\0\1\1\26\3\3\0(\0\0\0\0\0\0\0\0\343z\270BJv\345o\202d\n\315\231"..., 8000) = 51
    [pid 14173] poll([{fd=21, events=POLLIN}], 1, 10000) = 1 ([{fd=21, revents=POLLIN}])
    [pid 14173] read(21, "\27\3\3\1J\0\0\0\0\0\0\0\1\f\2\325\207\214\261\f\330\343\200\316\341~_\363\247-h\325"..., 8000) = 335
    [pid 14173] stat("/var/www/ispconfig/", 0x7ffc48386930) = -1 EACCES (Permission denied)
    [pid 14173] lstat("/var", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    [pid 14173] lstat("/var/www", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
    [pid 14173] lstat("/var/www/ispconfig", {st_mode=S_IFLNK|0777, st_size=34, ...}) = 0
    [pid 14173] stat("/var/www/ispconfig", 0x7ffc48386880) = -1 EACCES (Permission denied)
    [pid 14173] write(2, "[Wed Aug 26 18:03:46 2015] [erro"..., 134) = 134
    [pid 14173] writev(21, [{"\27\3\3\1\20^\t1d\223K\264\201>\206\265\32\256\353By\364\364K\214\225\313\2154\362uM"..., 543}], 1) = 543
    [pid 14173] write(10, "vps.server.com:8080 XX.XX.XX.XX -"..., 179) = 179
    [pid 14173] write(12, "vps.server.com XX.XX.XX.XX - - [2"..., 174) = 174
    [pid 14173] times({tms_utime=4, tms_stime=2, tms_cutime=0, tms_cstime=0}) = 1353423258
    [pid 14173] poll([{fd=21, events=POLLIN}], 1, 1000 <unfinished ...>
    [pid 14160] <... poll resumed> )        = 0 (Timeout)
    [pid 14160] poll([{fd=15, events=POLLIN}], 1, 3000 <unfinished ...>
    [pid 14155] <... select resumed> )      = 0 (Timeout)
    [pid 14155] wait4(-1, 0x7ffc48386ca4, WNOHANG|WSTOPPED, NULL) = 0
    [pid 14155] select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
    [pid 14173] <... poll resumed> )        = 1 ([{fd=21, revents=POLLIN}])
    [pid 14173] read(21, "\25\3\3\0\32\0\0\0\0\0\0\0\2\220[\321,\206j%\21\240<H\2137O\v\205\3415", 8000) = 31
    [pid 14173] writev(21, [{"\25\3\3\0\32^\t1d\223K\264\205\31\251\334\306\27\3035S\351\232v\271\353*\263Hi\347", 31}], 1) = 31
    [pid 14173] shutdown(21, 1 /* send */)  = 0
    [pid 14173] poll([{fd=21, events=POLLIN}], 1, 2000) = 1 ([{fd=21, revents=POLLIN|POLLHUP}])
    [pid 14173] read(21, "", 512)           = 0
    [pid 14173] close(21)                   = 0
    [pid 14173] read(7, 0x7ffc48386c27, 1)  = -1 EAGAIN (Resource temporarily unavailable)
    [pid 14173] semop(160727050, {{0, -1, SEM_UNDO}}, 1 <unfinished ...>
    [pid 14155] <... select resumed> )      = 0 (Timeout)
    [pid 14155] wait4(-1, 0x7ffc48386ca4, WNOHANG|WSTOPPED, NULL) = 0
    [pid 14155] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
    [pid 14155] wait4(-1, 0x7ffc48386ca4, WNOHANG|WSTOPPED, NULL) = 0
    [pid 14155] select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
    [pid 14155] wait4(-1, 0x7ffc48386ca4, WNOHANG|WSTOPPED, NULL) = 0
    [pid 14155] select(0, NULL, NULL, NULL, {1, 0} <unfinished ...>
    [pid 14160] <... poll resumed> )        = 0 (Timeout)
    [pid 14160] semop(160399360, {{0, -1, SEM_UNDO}}, 1) = 0
    [pid 14160] semop(160399360, {{0, 1, SEM_UNDO}}, 1) = 0
    [pid 14160] semop(160399360, {{0, -1, SEM_UNDO}}, 1) = 0
    [pid 14160] semop(160399360, {{0, 1, SEM_UNDO}}, 1) = 0
    [pid 14160] semop(160399360, {{0, -1, SEM_UNDO}}, 1) = 0
    [pid 14160] semop(160399360, {{0, 1, SEM_UNDO}}, 1) = 0
    [pid 14160] poll([{fd=15, events=POLLIN}], 1, 3000^C
    <unfinished ...>
    Process 14155 detached
    
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Is mod_fcgi installed and enabled? Did you try to make a diff of the apache2.conf file of a working and non working system? Maybe a .htaccess file in /var/www that overrides the config?
     
  7. PVasileff

    PVasileff Member

    Module fastcgi already enabled
    apache2 has no diff between working and no working system. In /var/www has no .htaccess.
     
  8. PVasileff

    PVasileff Member

    any ideas? :(
     

Share This Page