Just deleted a log file and now ispconfig/websites not accessible

Discussion in 'Installation/Configuration' started by syed shah, Apr 23, 2015.

  1. syed shah

    syed shah New Member

    Hi i just deleted a log folder for a subdomain that i did not need and which was not is use in /var/log/ispconfig/httpd/en.exampledomain.co.uk and now the ispconfig 3 or any of the websites fail to work. I deleted this folder to free space in the /root directory as it was nearly full.

    when i try to restart httpd i get the following erros
    Code:
     service httpd restart
    Stopping httpd:                                            [FAILED]
    Starting httpd: [Thu Apr 23 07:32:07 2015] [warn] NameVirtualHost *:443 has no VirtualHosts
    [Thu Apr 23 07:32:07 2015] [warn] NameVirtualHost *:80 has no VirtualHosts
                                                               [FAILED]
    
    when i run netstat -tap this is the result
    Code:
    netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name
    tcp        0      0 *:81                        *:*                         LISTEN      2023/lighttpd
    tcp        0      0 mail.s3.dns-thnetz.d:domain *:*                         LISTEN      7833/named
    tcp        0      0 cp.islamtube.co.uk:domain   *:*                         LISTEN      7833/named
    tcp        0      0 localhost:domain            *:*                         LISTEN      7833/named
    tcp        0      0 *:ftp                       *:*                         LISTEN      2037/pure-ftpd (SER
    tcp        0      0 *:38581                     *:*                         LISTEN      1440/rpc.statd
    tcp        0      0 *:ssh                       *:*                         LISTEN      7679/sshd
    tcp        0      0 localhost:ipp               *:*                         LISTEN      1574/cupsd
    tcp        0      0 localhost:rndc              *:*                         LISTEN      7833/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      1976/master
    tcp        0      0 *:imaps                     *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      1873/dovecot
    tcp        0      0 localhost:10024             *:*                         LISTEN      1899/amavisd (maste
    tcp        0      0 localhost:10025             *:*                         LISTEN      1976/master
    tcp        0      0 *:mysql                     *:*                         LISTEN      1848/mysqld
    tcp        0      0 *:pop3                      *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1420/rpcbind
    tcp        0      0 localhost:36224             localhost:mysql             ESTABLISHED 23535/error
    tcp        0      0 localhost:mysql             localhost:36042             ESTABLISHED 1848/mysqld
    tcp       55      0 localhost:58512             localhost:10025             CLOSE_WAIT  2055/amavisd (ch1-a
    tcp       55      0 localhost:44358             localhost:10025             CLOSE_WAIT  2056/amavisd (ch1-a
    tcp        0      0 localhost:36235             localhost:mysql             ESTABLISHED 23547/error
    tcp       40      0 mail.s3.dns-thnetz.de:smtp  hn.kd.ny.adsl:60604         CLOSE_WAIT  -
    tcp        0   2576 cp.islamtube.co.uk:ssh      host-2-100-221-219.as:55166 ESTABLISHED 2370/sshd
    tcp        0      0 localhost:mysql             localhost:35987             ESTABLISHED 1848/mysqld
    tcp        0      0 localhost:mysql             localhost:36210             ESTABLISHED 1848/mysqld
    tcp        0      0 localhost:mysql             localhost:36235             ESTABLISHED 1848/mysqld
    tcp        0      0 localhost:35987             localhost:mysql             ESTABLISHED 2055/amavisd (ch1-a
    tcp        0      0 localhost:36210             localhost:mysql             ESTABLISHED 23261/trivial-rewri
    tcp        0      0 localhost:36042             localhost:mysql             ESTABLISHED 2056/amavisd (ch1-a
    tcp        0      0 localhost:mysql             localhost:36224             ESTABLISHED 1848/mysqld
    tcp        0      0 *:domain                    *:*                         LISTEN      7833/named
    tcp        0      0 *:ftp                       *:*                         LISTEN      2037/pure-ftpd (SER
    tcp        0      0 *:ssh                       *:*                         LISTEN      7679/sshd
    tcp        0      0 localhost:ipp               *:*                         LISTEN      1574/cupsd
    tcp        0      0 *:58743                     *:*                         LISTEN      1440/rpc.statd
    tcp        0      0 localhost:rndc              *:*                         LISTEN      7833/named
    tcp        0      0 *:smtp                      *:*                         LISTEN      1976/master
    tcp        0      0 *:imaps                     *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:pop3s                     *:*                         LISTEN      1873/dovecot
    tcp        0      0 localhost:10024             *:*                         LISTEN      1899/amavisd (maste
    tcp        0      0 *:pop3                      *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:imap                      *:*                         LISTEN      1873/dovecot
    tcp        0      0 *:sunrpc                    *:*                         LISTEN      1420/rpcbind
    
    if i run iptables -L this is what i get
    Code:
    iptables -L
    Chain INPUT (policy DROP)
    target     prot opt source               destination
    fail2ban-SSH  tcp  --  anywhere             anywhere            tcp dpt:ssh
    DROP       tcp  --  anywhere             loopback/8
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
    ACCEPT     all  --  anywhere             anywhere
    DROP       all  --  base-address.mcast.net/4  anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    PUB_IN     all  --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain FORWARD (policy DROP)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
    DROP       all  --  anywhere             anywhere
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    PUB_OUT    all  --  anywhere             anywhere
    
    Chain INT_IN (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain INT_OUT (0 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PAROLE (10 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain PUB_IN (5 references)
    target     prot opt source               destination
    ACCEPT     icmp --  anywhere             anywhere            icmp destination-unreachable
    ACCEPT     icmp --  anywhere             anywhere            icmp echo-reply
    ACCEPT     icmp --  anywhere             anywhere            icmp time-exceeded
    ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:ftp
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:ssh
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:smtp
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:domain
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:http
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:pop3
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:https
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:mysql
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:webcache
    PAROLE     tcp  --  anywhere             anywhere            tcp dpt:ndmp
    ACCEPT     udp  --  anywhere             anywhere            udp dpt:domain
    DROP       icmp --  anywhere             anywhere
    DROP       all  --  anywhere             anywhere
    
    Chain PUB_OUT (5 references)
    target     prot opt source               destination
    ACCEPT     all  --  anywhere             anywhere
    
    Chain fail2ban-SSH (1 references)
    target     prot opt source               destination
    RETURN     all  --  anywhere             anywhere
    
    also forgot to mention i am able to access all website via FTP but cannot access the control panel or any of the websites online.
    please can you tell me how i can fix this so i can get access to the ispconfig panel and the websites.

    Thanks and looking forward to your advice.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Thats waht to be expected when you remove log folders of a system dameon like apache manually. You will have to recreate the folder and then delete the whole vhost subdomain in ispconfig instead of deleting its folder which is required for apache t start as long as this subdomain exists.

    Beside that, logs are managed by ispconfig and removed after 30 days, so dont remove them manually if you dont want to break your server.
     
  3. syed shah

    syed shah New Member

    Thankyou very much for your help everything is now back to normal.

    thanks
     

Share This Page