ISPConfig3 Debian 9 x64 no webgui

Discussion in 'Installation/Configuration' started by sijmenNL, Jan 11, 2018.

  1. sijmenNL

    sijmenNL New Member

    Hi all

    i have done the ISPConfig3 perfect server setup updatet all packages

    first everything works fine but after i reboot server the ispconfig webgui is gone with a ERR_CONNECTION_REFUSED

    but if i restart apache it works again

    i have done this i use port 8765
    https://www.howtoforge.com/community/threads/new-server-no-login-page.78127/#post-369702

    Code:
    ######################################################
    # This virtual host contains the configuration
    # for the ISPConfig controlpanel
    ######################################################
    
    Listen 8765
    NameVirtualHost *:8765
    
    <VirtualHost _default_:8765>
      ServerAdmin [email protected]
    
      <Directory /var/www/ispconfig/>
        <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
        </FilesMatch>
      </Directory>
      <Directory /usr/local/ispconfig/interface/web/>
        <FilesMatch "\.ph(p3?|tml)$">
          SetHandler None
    
     
    Last edited: Jan 11, 2018
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    You missed to change the line 'Listen 8888' to port 8765
     
  3. sijmenNL

    sijmenNL New Member

    the port has changed still same error after reboot
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    then apache might not be enabled to be started at boot time. you can enable the apache2 service with the systemctl command.
     
  5. sijmenNL

    sijmenNL New Member

    why is it not starting when the server starts i followed the tutorial and how can i make it starting whit the server
     
  6. sijmenNL

    sijmenNL New Member

    After restart

    Code:
    [email protected]:~# systemctl list-unit-files --type=service | head -100
    UNIT FILE                              STATE
    amavis-mc.service                      generated
    amavis-snmp-subagent.service           generated
    amavis.service                         generated
    amavisd-new.service                    generated
    amavisd-snmp-subagent.service          generated
    apache-htcacheclean.service            disabled
    [email protected]           disabled
    apache2.service                        enabled
    [email protected]                       disabled
    apt-daily-upgrade.service              static
    apt-daily.service                      static
    [email protected]                        enabled
    bind9-pkcs11.service                   disabled
    bind9-resolvconf.service               disabled
    bind9.service                          enabled
    bootlogd.service                       masked
    bootlogs.service                       masked
    bootmisc.service                       masked
    certbot.service                        static
    checkfs.service                        masked
    checkroot-bootclean.service            masked
    checkroot.service                      masked
    clamav-daemon.service                  enabled
    clamav-freshclam.service               enabled
    console-getty.service                  disabled
    console-setup.service                  enabled
    [email protected]               static
    cron.service                           enabled
    cryptdisks-early.service               masked
    cryptdisks.service                     masked
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service   static
    dbus-org.freedesktop.login1.service    static
    dbus-org.freedesktop.network1.service  disabled
    dbus-org.freedesktop.resolve1.service  disabled
    dbus-org.freedesktop.timedate1.service static
    dbus.service                           static
    debug-shell.service                    disabled
    dovecot.service                        enabled
    emergency.service                      static
    fail2ban.service                       enabled
    fuse.service                           masked
    getty-static.service                   static
    [email protected]vice                         enabled
    halt.service                           masked
    haveged.service                        enabled
    hostname.service                       masked
    hwclock.service                        masked
    [email protected]                          static
    inetd.service                          enabled
    initrd-cleanup.service                 static
    initrd-parse-etc.service               static
    initrd-switch-root.service             static
    initrd-udevadm-cleanup-db.service      static
    irqbalance.service                     enabled
    jailkit.service                        generated
    keyboard-setup.service                 enabled
    killprocs.service                      masked
    kmod-static-nodes.service              static
    kmod.service                           static
    mailman-qrunner.service                generated
    mailman.service                        generated
    mariadb.service                        enabled
    [email protected]                       disabled
    memcached.service                      enabled
    module-init-tools.service              static
    motd.service                           masked
    mountall-bootclean.service             masked
    mountall.service                       masked
    mountdevsubfs.service                  masked
    mountkernfs.service                    masked
    mountnfs-bootclean.service             masked
    mountnfs.service                       masked
    mysql.service                          enabled
    mysqld.service                         enabled
    networking.service                     enabled
    ntp.service                            generated
    open-vm-tools.service                  enabled
    openbsd-inetd.service                  enabled
    php7.0-fpm.service                     enabled
    phpsessionclean.service                static
    postfix.service                        enabled
    [email protected]                       disabled
    postgrey.service                       generated
    procps.service                         static
    pure-ftpd-mysql.service                generated
    quota.service                          enabled
    quotaon.service                        static
    quotarpc.service                       enabled
    rc-local.service                       static
    rc.local.service                       static
    rc.service                             masked
    rcS.service                            masked
    reboot.service                         masked
    rescue.service                         static
    rmnologin.service                      masked
    rsync.service                          enabled
    rsyslog.service                        enabled
    sendsigs.service                       masked
    
    
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

    By default, apache starts on boot, when you follow that tutorial. But it might be that you used a base debian image where apache was installed and disabled, so it does not start at boot then. Like I posted above, you can enable apache to start at boot with systemctl command:

    systemctl enable apache2.service
     
  8. sijmenNL

    sijmenNL New Member

    stil not working
    i am going to reinstall te server tonight
    Code:
    [email protected]:~# systemctl list-unit-files --type=service | head -50
    UNIT FILE                              STATE
    amavis-mc.service                      generated
    amavis-snmp-subagent.service           generated
    amavis.service                         generated
    amavisd-new.service                    generated
    amavisd-snmp-subagent.service          generated
    apache-htcacheclean.service            disabled
    [email protected]           disabled
    apache2.service                        enabled
    [email protected]                       disabled
    apt-daily-upgrade.service              static
    apt-daily.service                      static
    [email protected]                        enabled
    bind9-pkcs11.service                   disabled
    bind9-resolvconf.service               disabled
    bind9.service                          enabled
    bootlogd.service                       masked
    bootlogs.service                       masked
    bootmisc.service                       masked
    certbot.service                        static
    checkfs.service                        masked
    checkroot-bootclean.service            masked
    checkroot.service                      masked
    clamav-daemon.service                  enabled
    clamav-freshclam.service               enabled
    console-getty.service                  disabled
    console-setup.service                  enabled
    [email protected]               static
    cron.service                           enabled
    cryptdisks-early.service               masked
    cryptdisks.service                     masked
    dbus-org.freedesktop.hostname1.service static
    dbus-org.freedesktop.locale1.service   static
    dbus-org.freedesktop.login1.service    static
    dbus-org.freedesktop.network1.service  disabled
    dbus-org.freedesktop.resolve1.service  disabled
    dbus-org.freedesktop.timedate1.service static
    dbus.service                           static
    debug-shell.service                    disabled
    dovecot.service                        enabled
    emergency.service                      static
    fail2ban.service                       enabled
    fuse.service                           masked
    getty-static.service                   static
    [email protected]                         enabled
    halt.service                           masked
    haveged.service                        enabled
    hostname.service                       masked
    hwclock.service                        masked
    [email protected]                          static
    
     
  9. till

    till Super Moderator Staff Member ISPConfig Developer

    You can try this:

    edit the file /etc/rc.local and add a command to start apache there. This file should get executed at the end of the boot process.
     
  10. sijmenNL

    sijmenNL New Member

    i my rc.local i put
    Code:
    /usr/local/httpd/bin/apachectl start
    no luck even with
    Code:
    /etc/init.d/apache2 start 
    no luck
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    As an alternative, you can try to do the job with cron. run:

    crontab -e

    as root user and then add this line:

    @reboot /usr/sbin/service apache2 restart
     

Share This Page