ISPCONFIG 3 + Debian Lenny = 403 error?

Discussion in 'Installation/Configuration' started by howardt, Feb 2, 2011.

  1. howardt

    howardt New Member

    Hi guys,

    I have spent a whole day searching for a solution. I found another thread who has the similar problem as me, and end up he said using ispconfig2 solved his problem.

    I have followed the guide step by step have everything working. However, I couldn't get the admin page up using

    http://hostname:8080 or http://ipaddress:8080

    it said 403 permission error.

    I checked the apache error.log, it doesn't show much. other than


    [Wed Feb 02 15:01:28 2011] [error] [client 58.96.0.225] (13)Permission denied: access to / denied
    [Wed Feb 02 15:01:28 2011] [error] [client 58.96.0.225] (13)Permission denied: access to /favicon.ico denied


    one thing i notice is the symbiotic link to the /usr/local/ispconfig/interface/web is 750

    not sure if that is related.

    Can someone point me to the right direction please?

    I have tired uninstall and re-install still no go.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    please post the output of:

    ls -la /var/www
     
  3. howardt

    howardt New Member

    Code:
    debian:~# ls -la /var/www
    total 1734348
    drwxr-xr-x 22 root    root          4096 Feb  1 23:09 .
    drwxr-xr-x 17 root    root          4096 Feb  2 14:59 ..
    drwxr-xr-x  2 ispapps ispapps       4096 Feb  1 23:08 apps
    lrwxrwxrwx  1 root    root            34 Feb  1 23:09 ispconfig -> /usr/local/ispconfig/interface/web
    drwxr-xr-x  2 root    root          4096 Feb  1 22:57 webalizer
    lrwxrwxrwx  1 root    root            24 Feb  1 23:00 webmail -> /usr/share/squirrelmail/
    
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Did you install your server as described in the perfect setup guide for ispconfig 3? The guide for ispconfig 2 is not compatible with ispconfig 3.
     
  5. howardt

    howardt New Member

    apart from installing the debian (i was using etch and then i preform an update to lenny), all the packages installation were followed by the guide.

    nothing missed.

    everything else seem to work fine. only the ispconfig part is not working.

    i can see the cronjob working as well, mysql has the ispconfig database.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Ok.

    Please post the output of:

    nestat -tap

    and

    iptables -L
     
  7. howardt

    howardt New Member

    Code:
    debian:~# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 *:36803                 *:*                     LISTEN      1804/rpc.statd  
    tcp        0      0 localhost:10024         *:*                     LISTEN      1999/amavisd (maste
    tcp        0      0 localhost:mysql         *:*                     LISTEN      2144/mysqld     
    tcp        0      0 localhost:spamd         *:*                     LISTEN      2226/spamd.pid  
    tcp        0      0 *:sunrpc                *:*                     LISTEN      1777/portmap    
    tcp        0      0 *:auth                  *:*                     LISTEN      3061/inetd      
    tcp        0      0 *:ftp                   *:*                     LISTEN      3126/pure-ftpd (SER
    tcp        0      0 debian.howardtan:domain *:*                     LISTEN      3044/mydns      
    tcp        0      0 localhost:domain        *:*                     LISTEN      3044/mydns      
    tcp        0      0 *:ssh                   *:*                     LISTEN      1974/sshd       
    tcp        0    240 debian.howardtang.c:ssh 192.168.1.3:62609       ESTABLISHED 10922/0         
    tcp6       0      0 [::]:imaps              [::]:*                  LISTEN      3014/couriertcpd
    tcp6       0      0 [::]:pop3s              [::]:*                  LISTEN      3037/couriertcpd
    tcp6       0      0 [::]:pop3               [::]:*                  LISTEN      3025/couriertcpd
    tcp6       0      0 [::]:imap2              [::]:*                  LISTEN      2996/couriertcpd
    tcp6       0      0 [::]:http-alt           [::]:*                  LISTEN      3296/apache2    
    tcp6       0      0 [::]:www                [::]:*                  LISTEN      3296/apache2    
    tcp6       0      0 [::]:tproxy             [::]:*                  LISTEN      3296/apache2    
    tcp6       0      0 [::]:ftp                [::]:*                  LISTEN      3126/pure-ftpd (SER
    tcp6       0      0 ip6-localhost:domain    [::]:*                  LISTEN      3044/mydns      
    tcp6       0      0 [::]:ssh                [::]:*                  LISTEN      1974/sshd       
    tcp6       0      0 [::]:https              [::]:*                  LISTEN      3296/apache2    
    debian:~# 
    

    Code:
    debian:~# iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    fail2ban-ssh  tcp  --  anywhere             anywhere            multiport dports ssh 
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain fail2ban-ssh (1 references)
    target     prot opt source               destination         
    RETURN     all  --  anywhere             anywhere            
    
     
  8. pdga

    pdga New Member

    Did you have installed something like selinux or apparmor ?
    In your etch installation, did you use apache and modify its configuration ?
    http://hostname is working ?
    ls -l /usr/local ?
    did you activate the different module of apache ? (a2enmod ... in the doc)

    Regards.
     
  9. howardt

    howardt New Member


    I didn't install selinux or apparmor.
    I did modify the apache configuration before by myself.
    http://hostname is working.
    Code:
    debian:~# ls -l /usr/local
    total 44
    drwxrwsr-x  2 root      staff     4096 Feb  2 11:32 bin
    drwxrwsr-x  3 root      staff     4096 Oct 21  2008 etc
    drwxrwsr-x  2 root      staff     4096 Oct 12  2008 games
    drwxrwsr-x  2 root      staff     4096 Oct 12  2008 include
    drwxr-s---  4 ispconfig ispconfig 4096 Feb  2 11:32 ispconfig
    drwxrwsr-x  7 root      staff     4096 Feb  1 21:44 lib
    lrwxrwxrwx  1 root      staff        9 Oct 13  2008 man -> share/man
    drwxrwx---  8 rancid    netadm    4096 Oct 16  2008 rancid
    drwxrwsr-x  2 root      staff     4096 Feb  1 22:55 sbin
    drwxrwsr-x 11 root      staff     4096 Feb  4 11:44 share
    drwxr-sr-x  4 root      staff     4096 Oct 14  2008 spine
    drwxrwsr-x 29 root      staff     4096 Feb  4 11:37 src
    debian:~# 
    
    I did activate the modules listed in the doc.
     
  10. pdga

    pdga New Member

    So, this is the only thing I see where the problem could be.
     

Share This Page