ISPCONFIG doesn't Start!

Discussion in 'General' started by vaio1, May 7, 2008.

  1. vaio1

    vaio1 Member

    There is no syslog in the /var/log/ directory :confused:
     
  2. Snowman

    Snowman Member

    distro?!?

    lol what distro ?
     
  3. vaio1

    vaio1 Member

    The distro is FEDORA 7

    I have find a directive in the syslog.conf:

    Code:
    # Log anything (except mail) of level info or higher.
    # Don't log private authentication messages!
    *.info;mail.none;authpriv.none;cron.none		/var/log/messages

    In /var/log/messages file there is no errors for the named service.
     
  4. vaio1

    vaio1 Member


    The distro is the FEDORA 7.

    I don't understand why the web interface of ISP CONFIG is down!! This problem persist since the last reboot of the server (last weekend).

    Please help me to solve it.

    Thanks
     
  5. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    df -h
    ?
    Is SELinux disabled?
     
  6. vaio1

    vaio1 Member

    Yes it is, I suppose.
    How can I check it?
     
  7. falko

    falko Super Moderator Howtoforge Staff

  8. vaio1

    vaio1 Member

    The SELinux is disabled, and I have followed that instructions 6 month ago.

    However the is /etc/selinux/config file has been checked again:

    Code:
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    #       enforcing - SELinux security policy is enforced.
    #       permissive - SELinux prints warnings instead of enforcing.
    #       disabled - No SELinux policy is loaded.
    SELINUX=disabled
    # SELINUXTYPE= can take one of these two values:
    #       targeted - Targeted processes are protected,
    #       mls - Multi Level Security protection.
    SELINUXTYPE=targeted
    
    no solution! :confused:
     
  9. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    df -h
    ?

    Are there any errors in the error log in /root/ispconfig/httpd/logs?
     
  10. vaio1

    vaio1 Member

    Here the resuts: df -h

    Code:
    [root@server1 ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/mapper/VolGroup00-LogVol00
                          130G   24G  100G  19% /
    /dev/sda2              99M   19M   76M  20% /boot
    tmpfs                 1.7G     0  1.7G   0% /dev/shm
    
    
    /root/ispconfig/httpd/logs there is no errors.
     
  11. falko

    falko Super Moderator Howtoforge Staff

    Did you check /root/ispconfig/httpd/logs/error_log?
     
  12. vaio1

    vaio1 Member

    There are no errors in the /root/ispconfig/httpd/logs/error_log

    This is the result of /etc/init.d/ispconfig_server restart
    Code:
    [root@server1 ~]# /etc/init.d/ispconfig_server restart
    Shutting down ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl stop: httpd stopped
    ISPConfig system stopped!
    Starting ISPConfig system...
    /root/ispconfig/httpd/bin/apachectl startssl: httpd (pid 2958) already running
    ISPConfig system is now up and running!
    
    :confused: :confused: :confused:
     
  13. falko

    falko Super Moderator Howtoforge Staff

    Please run
    Code:
    ps aux
    Do you see a process with the PID 2958 there? If so, kill it and restart ISPConfig again.
     
  14. vaio1

    vaio1 Member

    Yes it is there but it is DEFUNCT!
    Code:
    avahi     2958  0.0  0.0      0     0 ?        Zs   May03   0:00 [avahi-daemon] <defunct>
    but the kill 2958 command doesn't hide it.

    If I try to understand what happens to the named service restarting it:
    Code:
    #service named restart
    Stopping named:                                            [FAILED]
    Starting named:
    Error in named configuration:
    /etc/named.conf:3: change directory to '/home/admispconfig/ispconfig/web/multidoc/edit' failed: file not found
    
    /etc/named.conf:3: parsing failed
                                                               [FAILED]
    
    :confused: :confused:

    I have tried to follow this thread http://www.howtoforge.com/forums/showthread.php?t=11207&page=6 but I don't understand how have I change the path.

    in the /home/admispconfig/ispconfig/ispconfig.log

    Code:
    17.05.2008 - 16:21:21 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/bastille-firewall restart &> /dev/null
    17.05.2008 - 16:21:21 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/httpd restart &> /dev/null
    17.05.2008 - 16:21:21 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/postfix stop &> /dev/null
    17.05.2008 - 16:21:21 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/postfix start &> /dev/null
    17.05.2008 - 16:21:21 => WARN - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: WARNING: could not /etc/rc.d/init.d/named stop &> /dev/null
    17.05.2008 - 16:21:21 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 728: /etc/rc.d/init.d/proftpd restart &> /dev/null
    
    These are the firewall rules
    Code:
    # Generated by iptables-save v1.3.8 on Sat May 17 17:17:55 2008
    *filter
    :INPUT DROP [1:78]
    :FORWARD DROP [0:0]
    :OUTPUT ACCEPT [1788:337779]
    :INT_IN - [0:0]
    :INT_OUT - [0:0]
    :PAROLE - [0:0]
    :PUB_IN - [0:0]
    :PUB_OUT - [0:0]
    -A INPUT -d 127.0.0.0/255.0.0.0 -i ! lo -p tcp -j DROP 
    -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 
    -A INPUT -i lo -j ACCEPT 
    -A INPUT -s 224.0.0.0/240.0.0.0 -j DROP 
    -A INPUT -i eth+ -j PUB_IN 
    -A INPUT -i ppp+ -j PUB_IN 
    -A INPUT -i slip+ -j PUB_IN 
    -A INPUT -i venet+ -j PUB_IN 
    -A INPUT -j DROP 
    -A INPUT -p tcp -m tcp --dport 81 -j ACCEPT 
    -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT 
    -A FORWARD -j DROP 
    -A OUTPUT -o eth+ -j PUB_OUT 
    -A OUTPUT -o ppp+ -j PUB_OUT 
    -A OUTPUT -o slip+ -j PUB_OUT 
    -A OUTPUT -o venet+ -j PUB_OUT 
    -A OUTPUT -p tcp -m tcp --sport 81 -j ACCEPT 
    -A INT_IN -p icmp -j ACCEPT 
    -A INT_IN -j DROP 
    -A INT_OUT -p icmp -j ACCEPT 
    -A INT_OUT -j ACCEPT 
    -A PAROLE -j ACCEPT 
    -A PUB_IN -p icmp -m icmp --icmp-type 3 -j ACCEPT 
    -A PUB_IN -p icmp -m icmp --icmp-type 0 -j ACCEPT 
    -A PUB_IN -p icmp -m icmp --icmp-type 11 -j ACCEPT 
    -A PUB_IN -p icmp -m icmp --icmp-type 8 -j ACCEPT 
    -A PUB_IN -p tcp -m tcp --dport 21 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 22 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 25 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 53 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 80 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 81 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 110 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 443 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 10000 -j PAROLE 
    -A PUB_IN -p tcp -m tcp --dport 3306 -j PAROLE 
    -A PUB_IN -p udp -m udp --dport 53 -j ACCEPT 
    -A PUB_IN -p icmp -j DROP 
    -A PUB_IN -j DROP 
    -A PUB_OUT -j ACCEPT 
    COMMIT
    # Completed on Sat May 17 17:17:55 2008
    # Generated by iptables-save v1.3.8 on Sat May 17 17:17:55 2008
    *nat
    :PREROUTING ACCEPT [582040:30566050]
    :POSTROUTING ACCEPT [126506:8588396]
    :OUTPUT ACCEPT [126506:8588396]
    COMMIT
    # Completed on Sat May 17 17:17:55 2008
    # Generated by iptables-save v1.3.8 on Sat May 17 17:17:55 2008
    *mangle
    :PREROUTING ACCEPT [7272406:1300617561]
    :INPUT ACCEPT [7272406:1300617561]
    :FORWARD ACCEPT [0:0]
    :OUTPUT ACCEPT [6641858:5557431972]
    :POSTROUTING ACCEPT [6641846:5557428042]
    COMMIT
    # Completed on Sat May 17 17:17:55 2008
    
     
    Last edited: May 17, 2008
  15. vaio1

    vaio1 Member


    Maybe I have understand.
    Code:
    [root@server1 ~]# telnet ###.###.###.### 81
    Trying ###.###.###.###...
    telnet: connect to address ###.###.###.###: Connection refused
    
    OR

    Code:
    [root@server1 ~]# telnet localhost 81
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    
    Look at my previous post to see the iptables rules. What happens?
     
    Last edited: May 17, 2008
  16. vaio1

    vaio1 Member

    I reply to myself. :)

    The problem was the bad path of the named.conf (read previous message)
    The Iptables Rules. (Only after a reboot the rules have been applied)

    Now there is a bug in the php code of the Web ISPConfig.
    Code:
    Notice: Undefined index: err in /home/admispconfig/ispconfig/web/login.php on line 32
    
     
  17. falko

    falko Super Moderator Howtoforge Staff

    That's no bug. You must change the error level in /root/ispconfig/php/php.ini to the original value (I guess you changed it?).
     
  18. vaio1

    vaio1 Member

    Hi Falko,

    thanks for your help. I have followed your suggestions and now it works!

    Thanks
     

Share This Page