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!

Restart Services Command?

Discussion in 'General Discussion' started by Damian, Jul 1, 2018.

  1. Damian

    Damian Well-Known Member

    Joined:
    Oct 1, 2001
    Messages:
    100
    Likes Received:
    6
    Trophy Points:
    318
    What command/process is run when you click on HTTP Server (Apache) under Restart Services in the WHM?

    It always restarts apache when running something like service httpd restart does not.
     
  2. Jcats

    Jcats Well-Known Member

    Joined:
    May 25, 2011
    Messages:
    720
    Likes Received:
    123
    Trophy Points:
    168
    Location:
    New Jersey
    cPanel Access Level:
    DataCenter Provider
    Code:
    /scripts/restartsrv_apache
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    cPanelLauren likes this.
  3. cPanelLauren

    cPanelLauren Forums Analyst II
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    3,517
    Likes Received:
    251
    Trophy Points:
    193
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @Damian

    Both should restart apache, if you're running on CentOS 7 you should use
    Code:
    systemctl restart httpd.service
    to restart apache though really you should only officially need to use
    Code:
    /scripts/restartsrv_httpd
    or
    Code:
    /scripts/restartsrv_apache
    as suggested by @Jcats

    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice