Web server offline

Discussion in 'Server Operation' started by shajazzi, Jun 2, 2007.

  1. shajazzi

    shajazzi Member

    I am running Suse 10.0 and after rebooting the server I now found that under ISPconfig the webserver is offline
    These are my outputs:
    netstat -tap

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 localhost:submit *:* LISTEN 14589/fam
    tcp 0 0 *:mysql *:* LISTEN 12465/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 14118/portmap
    tcp 0 0 *:8081 *:* LISTEN 15722/iptables
    tcp 0 0 *:hosts2-ns *:* LISTEN 14476/ispconfig_htt
    tcp 0 0 *:ftp *:* LISTEN 15463/proftpd: (acc
    tcp 0 0 192.168.1.104:domain *:* LISTEN 15373/named
    tcp 0 0 192.168.1.111:domain *:* LISTEN 15373/named
    tcp 0 0 www.speedy-fit.c:domain *:* LISTEN 15373/named
    tcp 0 0 192.168.1.110:domain *:* LISTEN 15373/named
    tcp 0 0 192.168.1.73:domain *:* LISTEN 15373/named
    tcp 0 0 localhost:domain *:* LISTEN 15373/named
    tcp 0 0 *:ipp *:* LISTEN 15439/cupsd
    tcp 0 0 localhost:953 *:* LISTEN 15373/named
    tcp 0 0 *:smtp *:* LISTEN 15263/master
    tcp 0 0 192.168.1.73:34002 lm-in-f147.goo:www-http ESTABLISHED 15980/firefox-bin
    tcp 0 0 192.168.1.73:54992 kr-in-f165.goo:www-http ESTABLISHED 15980/firefox-bin
    tcp 0 0 192.168.1.73:44562 akamai-cluster:www-http ESTABLISHED 15980/firefox-bin
    tcp 0 0 192.168.1.73:44559 akamai-cluster:www-http ESTABLISHED 15980/firefox-bin
    tcp 0 0 192.168.1.73:50728 lm-in-f166.goo:www-http ESTABLISHED 15980/firefox-bin
    tcp 0 0 192.168.1.73:41000 cd.48.1343.sta:www-http ESTABLISHED 19722/wget
    tcp 0 0 192.168.1.73:40212 213.200.110.71:www-http TIME_WAIT -
    tcp 0 0 *:pop3 *:* LISTEN 14427/couriertcpd
    tcp 0 0 *:imap *:* LISTEN 14322/couriertcpd
    tcp 0 0 *:ssh *:* LISTEN 14617/sshd
    tcp 0 0 localhost:953 *:* LISTEN 15373/named
    tcp 0 0 *:smtp *:* LISTEN 15263/master

    ls -la /root/ispconfig

    total 112
    drwxr-xr-x 9 named root 4096 Jun 2 08:39 .
    drwx------ 23 named root 4096 Jun 2 09:06 ..
    -rw-r--r-- 1 named root 8 Jun 2 08:39 .old_path_httpd_root
    -rwxr-xr-x 1 named root 45592 Apr 9 12:34 cronolog
    -rwxr-xr-x 1 named root 9673 Apr 9 12:34 cronosplit
    drwxr-xr-x 12 named root 4096 Apr 9 12:23 httpd
    drwxr-xr-x 14 named root 4096 Apr 9 12:34 isp
    drwxr-xr-x 6 named root 4096 Apr 9 12:13 openssl
    drwxr-xr-x 6 named root 4096 Apr 9 12:29 php
    drwxr-xr-x 4 named root 4096 Apr 9 12:34 scripts
    drwxr-xr-x 4 named root 4096 Apr 9 12:34 standard_cgis
    drwxr-xr-x 2 named root 4096 Apr 9 12:34 sv
    -rwx------ 1 named root 9389 Apr 9 12:34 uninstall

    which httpd

    /usr/sbin/httpd

    and when i restart apache i get these errors:
    Syntax OK
    Starting httpd2 (prefork) /etc/init.d/apache2: line 101: /var/log/apache2/rc.out: No such file or directory
    cat: /var/log/apache2/rc.out: No such file or directory

    The command line was:
    /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf -DSSL
    failed

    shajazzi
     
  2. shajazzi

    shajazzi Member

    OK i have found the problem. /var/log/apache2/access_log does not exist, somehow and for what reason i don`t know it has been deleted.

    Under /var/log I created a folder and named it apache2 and within that folder i created a text file and named it access_log. Then i booted up apache and my web server is now online.

    shajazzi
     

Share This Page