The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

service command not working

Discussion in 'General Discussion' started by shortfork, May 19, 2011.

  1. shortfork

    shortfork Well-Known Member

    Joined:
    Sep 4, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Hummn.. this is a new one. I used to be able to (as root) type service httpd restart or same for other services.. and it would work, now I'm getting this error message..

    Warning: DocumentRoot [/dev/null] does not exist

    I've done nothing to the box since last I last used this command.. anyone else? Ideas?

    TIA!

    Shortz
     
  2. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Hello Shortz,

    That message is a warning rather than an error and would not impact Apache restarting. It happens due to a virtual host entry in httpd.conf for /dev/null created when you've used the WHM > Setup/Edit Domain Forwarding area. The entry will look similar to the following:

    Code:
    # DO NOT EDIT. AUTOMATICALLY GENERATED.  IF YOU NEED TO MAKE A CHANGE PLEASE USE THE INCLUDE FILES.
    # WHM DOMAIN FORWARDING VHOST
    <VirtualHost IP.xx.xx.xx>
        ServerName IP.xx.xx.xx
        ServerAdmin root@localhost
        DocumentRoot /dev/null
        ScriptAliasMatch .* /usr/local/cpanel/cgi-sys/domainredirect.cgi
    </VirtualHost>
    Thanks!
     
  3. shortfork

    shortfork Well-Known Member

    Joined:
    Sep 4, 2006
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    Awesome, I had a forwarder set from a looong time ago, removed it... all good.

    THANKS!
     
Loading...

Share This Page