Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Apache, "sh: host: command not found"

Discussion in 'General Discussion' started by alexis75, Sep 21, 2017.

  1. alexis75

    alexis75 Member

    Joined:
    Sep 12, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Hello,
    may I ask what does this line in the Apache error_log means?
    sh: host: command not found

    those are quite many, and then comes this:
    [mpm_worker:notice] [pid 28240:tid xxxxxxxxx] xxxxxxxx.. Doing graceful restart

    I believe this started after I recompiled EA4 using 'MPM Worker CloudLinux + cPanel profile + every PHP option'.

    q: is this normal? if not (something is missing perhaps), then what to look for and how to fix it?
    Thank you.
     
  2. HostingH

    HostingH Well-Known Member

    Joined:
    Jan 13, 2008
    Messages:
    100
    Likes Received:
    10
    Trophy Points:
    68
    cPanel Access Level:
    Root Administrator
    Hello,

    Do you mean that apache service is getting graceful restarted automatically? if yes any time frame and number of apache process are? If possible paste more logs.
     
  3. alexis75

    alexis75 Member

    Joined:
    Sep 12, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Yes, Apache was restarting by itself every 2 hour or so, unusual.. i did a night test-run.
    I switched back to '_prefork' profile and everything is back to normal, no errors on logs.

    I guess something didn't work well with '_worker' on my Server, need to investigate further before trying it again. Thanks for answering!
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
  5. alexis75

    alexis75 Member

    Joined:
    Sep 12, 2017
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Sweden
    cPanel Access Level:
    Root Administrator
    Ok, thanks for explaining!
    I see :) , Graceful restarts occurs even with '_prefork' profile.

    So far I see no problem with that, we can always enable 'Piped Log Configuration' if needed.
     
    cPanelMichael likes this.
Loading...

Share This Page