Webmin only working after service restart

Help
Nimp
2011-08-06
2013-05-22
  • Nimp
    Nimp
    2011-08-06

    I've just installed the latest version of webmin on centos 6.0 and the webmin page is unavailable if I try to access it after a system restart.  I can resolve this by stopping the webmin service then the network service, and then restarting the network service and the webmin service, but I'm at a loss as to why it doesn't just work without having to restart the services. The webmin service is enabled and webmin uses port 443.  My miniserv.conf reads:

    port=443
    bind=192.168.7.11
    root=/usr/libexec/webmin
    mimetypes=/usr/libexec/webmin/mime.types
    addtype_cgi=internal/cgi
    realm=Webmin Server
    logfile=/var/webmin/miniserv.log
    errorlog=/var/webmin/miniserv.error
    pidfile=/var/webmin/miniserv.pid
    logtime=168
    ppath=
    ssl=1
    env_WEBMIN_CONFIG=/etc/webmin
    env_WEBMIN_VAR=/var/webmin
    atboot=1
    logout=/etc/webmin/logout-flag
    denyfile=\.pl$
    log=1
    blockhost_failures=3
    blockhost_time=120
    blockuser_failures=3
    blockuser_time=120
    syslog=1
    session=1
    premodules=WebminCore
    server=MiniServ/1.560
    userfile=/etc/webmin/miniserv.users
    keyfile=/etc/webmin/miniserv.pem
    passwd_file=/etc/shadow
    passwd_uindex=0
    passwd_pindex=1
    passwd_cindex=2
    passwd_mindex=4
    passwd_mode=0
    preroot=theme-stressfree
    #preroot=blue-theme
    passdelay=1
    utmp=1

    The network address used is not a physical card as such, its listed as eth0:1 and its ifcfg-eth0:1 reads:

    DEVICE="eth0:1"
    BOOTPROTO=none
    BROADCAST=192.168.7.255
    IPADDR=192.168.7.11
    NETMASK=255.255.255.0
    NETWORK=192.168.7.1
    ONBOOT=yes

    TYPE=Ethernet
    PREFIX=24
    GATEWAY=192.168.7.1
    DNS1=208.67.222.222
    DNS2=208.67.220.220
    DEFROUTE=yes
    IPV4_FAILURE_FATAL=yes
    IPV6INIT=no
    NAME="System eth0:1"
    UUID=7758ac79-c4a2-dd87-1760-71284a316d00

    Has anyone else seen this type of problem? any advice greatly received!
    Regards
    Nimp

     
  • Nimp
    Nimp
    2011-08-08

    ok, managed to get it resolved, turns out I didn't have an entry in /etc/hosts for my virtual nic pointing to my domain name.  Basically I copied the entry for the physical nic and just changed the IP address, all works fine now.