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.

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,612
    Likes Received:
    11
    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:
     
  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:
     
  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