No log on some sites

Discussion in 'Installation/Configuration' started by Ralf Schmidt, Jul 16, 2016.

  1. Ralf Schmidt

    Ralf Schmidt New Member

    Hi,
    I'm having trouble with a couple of my sites. Some do log normally to access.log and error.log, some do not. The ones that do not log even do not log to other_vhosts_access.log.
    Having trouble with the domains pma.domain.tld and svn.domain.tld (see below).

    Have already checked bind mounts to be present and checked hopefully correct entries in fstab. Also did update to the latest version and did everthing mentioned in the update instructions.

    Note: All domain entries renamed in following outputs to domain.tld

    fstab:
    Code:
    # mount external svn repositories to svn.domain.tld
    /mnt/web_data/svn_repos  /var/www/svn.domain.tld/web/svn_repos  none  bind  0 0
    
    /var/log/ispconfig/httpd/ffsync.domain.tld /var/www/clients/client1/web13/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/pma.domain.tld /var/www/clients/client1/web5/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/tine.domain.tld /var/www/clients/client1/web6/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/ttrss.domain.tld /var/www/clients/client1/web7/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/foto.domain.tld /var/www/clients/client1/web3/log    none    bind,nobootwait,_netdev    0 0
    /var/log/ispconfig/httpd/svn.domain.tld /var/www/clients/client1/web12/log    none    bind,nobootwait,_netdev    0 0
    mount:
    Code:
    /dev/simfs on / type simfs (rw,relatime)
    /dev/simfs on /mnt/web_data type simfs (rw,relatime)
    /dev/simfs on /mnt/backup_mysql type simfs (rw,relatime)
    /dev/simfs on /mnt/backup_svn type simfs (rw,relatime)
    proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
    sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
    tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=419432k,mode=755)
    tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k)
    tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=943700k)
    devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
    /dev/simfs on /var/www/clients/client1/web3/web/albums type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web12/web/svn_repos type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web13/log type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web5/log type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web6/log type simfs (rw,relatime,_netdev)
    /dev/simfs on /var/www/clients/client1/web7/log type simfs (rw,relatime,_netdev)
    /dev/simfs on /var/www/clients/client1/web3/log type simfs (rw,relatime,_netdev)
    /dev/simfs on /var/www/clients/client1/web12/log type simfs (rw,relatime,_netdev)
    /dev/simfs on /var/www/clients/client1/web3/web/albums type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web12/web/svn_repos type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web3/web/albums type simfs (rw,relatime)
    /dev/simfs on /var/www/clients/client1/web12/web/svn_repos type simfs (rw,relatime)
    directory rights:
    Code:
    ls -al /var/www/
    total 44
    drwxr-xr-x  8 root    root     4096 Feb  9  2014 .
    drwxr-xr-x 13 root    root     4096 Dec  1  2013 ..
    drwxr-xr-x  2 ispapps ispapps  4096 Dec 30  2012 apps
    drwxr-xr-x  5 root    root     4096 Jan 13  2013 clients
    drwxr-xr-x  5 root    root     4096 Jan 13  2013 conf
    lrwxrwxrwx  1 root    root       31 Oct 14  2013 ffsync.domain.tld -> /var/www/clients/client1/web13/
    lrwxrwxrwx  1 root    root       30 Jan  2  2013 foto.domain.tld -> /var/www/clients/client1/web3/
    -rw-r--r--  1 root    root      177 Dec 30  2012 index.html
    lrwxrwxrwx  1 root    root       34 Dec 30  2012 ispconfig -> /usr/local/ispconfig/interface/web
    drwxr-xr-x  3 root    root     4096 Jan  2  2013 php-cgi-scripts
    drwxr-xr-x 11 root    root     4096 Oct 14  2013 php-fcgi-scripts
    lrwxrwxrwx  1 root    root       30 Jan  4  2013 pma.domain.tld -> /var/www/clients/client1/web5/
    lrwxrwxrwx  1 root    root       31 Feb 24  2013 svn.domain.tld -> /var/www/clients/client1/web12/
    lrwxrwxrwx  1 root    root       30 Jan 12  2013 tine.domain.tld -> /var/www/clients/client1/web6/
    lrwxrwxrwx  1 root    root       30 Jan 13  2013 ttrss.domain.tld -> /var/www/clients/client1/web7/
    drwxr-xr-x  2 root    root    12288 Jul 16 06:25 webalizer
    
    ls -al /var/www/svn.domain.tld/
    total 44
    drwxr-xr-x 9 root  root  4096 Mar 27  2015 .
    drwxr-xr-x 8 root  root  4096 Oct 14  2013 ..
    -rwxr-xr-x 1 root  root  40 Feb 24  2013 .htpasswd_stats
    -rw-r--r-- 1 root  www-data  56 Feb 24  2013 .pass-SVN_Access
    drwxr-x--x 2 web12 client1  4096 Feb 24  2013 cgi-bin
    drwxr-xr-x 2 web12 client1  4096 Jul 15 12:55 log
    drwx--x--- 2 web12 client1  4096 Mar 27  2015 private
    drwxr-xr-x 2 root  root  4096 Mar 27  2015 ssl
    drwxrwx--- 2 web12 client1  4096 Feb 24  2013 tmp
    drwx--x--x 5 web12 client1  4096 Feb 24  2013 web
    drwx--x--- 2 web12 client1  4096 Mar 27  2015 webdav
    
    ls -al /var/www/svn.domain.tld/log/
    total 24
    drwxr-xr-x 2 web12 client1  4096 Jul 15 12:55 .
    drwxr-xr-x 9 root  root  4096 Mar 27  2015 ..
    -rw-r--r-- 1 root  root  0 Jul 15 12:55 20130224-access.log
    lrwxrwxrwx 1 root  root  19 Feb 24  2013 access.log -> 20130224-access.log
    -rw-r--r-- 1 root  root  13058 Jul 15 14:29 error.log
    lrwxrwxrwx 1 root  root  54 Feb 25  2013 yesterday-access.log -> /var/www/clients/client1/web12/log/20130224-access.log
    
    ls -al /var/www/pma.domain.tld/
    total 40
    drwxr-xr-x 9 root root  4096 Jul 15 14:47 .
    drwxr-xr-x 8 root root  4096 Oct 14  2013 ..
    -rwxr-xr-x 1 root root  40 Jan 11  2013 .htpasswd_stats
    drwxr-x--x 2 web5 client1 4096 Jan  4  2013 cgi-bin
    drwxr-xr-x 2 web5 client1 4096 Jul 15 12:55 log
    drwx--x--- 2 web5 client1 4096 Nov 24  2013 private
    drwxr-xr-x 2 root root  4096 Mar 27  2015 ssl
    drwxrwx--- 2 web5 client1 4096 Jul 16 12:34 tmp
    lrwxrwxrwx 1 root root  22 Jul 15 14:43 web -> /usr/share/phpmyadmin/
    drwx--x--x 4 web5 client1 4096 Nov 24  2013 web.orig
    drwx--x--- 2 web5 client1 4096 Nov 24  2013 webdav
    
    
    Touched file /var/www/svn.domain.tld/log/20130224-access.log yesterday since access.log was pointing to nowhere but did not help.

    Had pma.domain.tld pointing via DocumentRoot to /usr/share/phpmyadmin before and changed to symlink /var/www/pma.domain.tld/web yesterday for testing by the help of chattr -i and chattr +i.

    My setup:
    Code:
    ISPConfig version: 3.0.5.4p9
    Linux Distribution: Debian 7.11
    uname -a
    Linux web 2.6.32-44-pve #1 SMP Sun Mar 13 17:00:54 CET 2016 x86_64 GNU/Linux
    means running in an OpenVZ container
    Hope that somebody can point me to the right direction what to do.
    Thanks
    Ralf
     
  2. Ralf Schmidt

    Ralf Schmidt New Member

    And the output of htf_report.txt:
    Code:
    ##### SERVER #####
    IP-address (as per hostname): ***.***.***.***
    IP-address(es) (as per ifconfig): ***.***.***.***
    [INFO] ISPConfig is installed.
    
    ##### ISPCONFIG #####
    ISPConfig version is 3.0.5.4p9
    
    
    ##### VERSION CHECK #####
    
    [INFO] php (cli) version is 5.4.45-0+deb7u4
    [INFO] php-cgi (used for cgi php in default vhost!) is version 5.4.45-0+deb7u4
    
    ##### PORT CHECK #####
    
    [WARN] Port 143 (IMAP server) seems NOT to be listening
    [WARN] Port 993 (IMAP server SSL) seems NOT to be listening
    [WARN] Port 110 (POP3 server) seems NOT to be listening
    [WARN] Port 995 (POP3 server SSL) seems NOT to be listening
    [WARN] Port 465 (SMTP server SSL) seems NOT to be listening
    [WARN] Port 21 (FTP server) seems NOT to be listening
    
    ##### MAIL SERVER CHECK #####
    
    [WARN] I found no "submission" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer port 587 for smtp connections you have to enable this.
    [WARN] I found no "smtps" entry in your postfix master.cf
    [INFO] this is not critical, but if you want to offer SSL for smtp (not TLS) connections you have to enable this.
    
    ##### RUNNING SERVER PROCESSES #####
    
    [INFO] I found the following web server(s):
      Apache 2 (PID 1198)
    [INFO] I found the following mail server(s):
      Postfix (PID 2385)
    [WARN] I could not determine which pop3 server is running.
    [WARN] I could not determine which imap server is running.
    [WARN] I could not determine which ftp server is running.
    
    ##### LISTENING PORTS #####
    (only  ()
    Local  (Address)
    [localhost]:3306  (23020/mysqld)
    [anywhere]:111  (1289/portmap)
    [anywhere]:22  (25071/sshd)
    [localhost]:25  (2385/master)
    *:*:*:*::*:8080  (1198/apache2)
    *:*:*:*::*:80  (1198/apache2)
    *:*:*:*::*:8081  (1198/apache2)
    *:*:*:*::*:22  (25071/sshd)
    *:*:*:*::*:25  (2385/master)
    *:*:*:*::*:443  (1198/apache2)
    
    
    
    
    ##### IPTABLES #####
    Chain INPUT (policy ACCEPT)
    target  prot opt source  destination
    fail2ban-pma-access  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache-pma-isp  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-tine20  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache-isp  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache-pma  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-ispconfig  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 8080
    fail2ban-apache-noscript-isp  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache-noscript  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache-overflows  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-apache  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 80,443
    fail2ban-ssh  tcp  --  [anywhere]/0  [anywhere]/0  multiport dports 22
    
    Chain FORWARD (policy ACCEPT)
    target  prot opt source  destination
    
    Chain OUTPUT (policy ACCEPT)
    target  prot opt source  destination
    
    Chain fail2ban-apache (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    Chain fail2ban-apache-isp (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-apache-noscript (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-apache-noscript-isp (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-apache-overflows (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-apache-pma (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-apache-pma-isp (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-ispconfig (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-pma-access (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-ssh (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    
    Chain fail2ban-tine20 (1 references)
    target  prot opt source  destination
    RETURN  all  --  [anywhere]/0  [anywhere]/0
    Ralf
     

Share This Page