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!

What's the path to restart apache?

Discussion in 'EasyApache' started by WebHostPro, Jun 10, 2003.

  1. WebHostPro

    WebHostPro Well-Known Member
    PartnerNOC

    Joined:
    Jul 28, 2002
    Messages:
    1,654
    Likes Received:
    15
    Trophy Points:
    318
    Location:
    LA, Costa RIca
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    I got these to, but I need one more to my collection:

    /usr/local/apache/bin/apachectl stop
    /usr/local/apache/bin/apachectl start

    I am going to assume it's:

    /usr/local/apache/bin/apachectl restart

    Thanks, Charles

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. vishal

    vishal Well-Known Member

    Joined:
    Jan 28, 2003
    Messages:
    340
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    India
    /etc/rc.d/init.d/httpd start|stop|restart

    In WHM/CPanel => Restart Services ==> httpd server ;)

    Regards,

    cPanel.net Support Ticket Number:
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. hunet

    hunet Member

    Joined:
    Mar 29, 2003
    Messages:
    14
    Likes Received:
    0
    Trophy Points:
    151
    Or,

    To stop apache: kill -TERM `cat /usr/local/apache/logs/httpd.pid`

    To restart: httpd start

    :)

    Kevin

    cPanel.net Support Ticket Number:
     
  4. KenMaier

    KenMaier Member

    Joined:
    Nov 5, 2002
    Messages:
    23
    Likes Received:
    0
    Trophy Points:
    151
    You could also use:

    service httpd stop
    service httpd start

    This works for mysql too:

    service mysql stop
    service mysql start

    -ken

    cPanel.net Support Ticket Number:

    cPanel.net Support Ticket Number:
     
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