Results 1 to 7 of 7

Thread: Restarting apache

  1. #1
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Default Restarting apache

    Is there an easy way to restart apache from WHM ?

    sorry i dont know about commands... so need a button click

  2. #2
    Registered Member PWSowner's Avatar
    Join Date
    Nov 2001
    Location
    ON, Canada
    Posts
    2,993

    Default

    At the very bottom of the menu under "restart services" unless you're a reseller and they didn't give you access to those functions.
    Mike
    WHM and cPanel Scripts (join our "Scripts Club")
    D/A Photography

  3. #3
    Registered Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    447

    Default

    If you are a reseller and do not have access to the Restart Services commands, there is of course another way: Any time you Park a Domain or Create a New Account, Apache is restarted as well. Yes, that's not a clean method, but if you are desperate it is an option

  4. #4
    Registered Member ullalla's Avatar
    Join Date
    Jan 2006
    Posts
    192

    Default

    gud suggestion

  5. #5
    Registered User
    Join Date
    Nov 2006
    Posts
    3

    Default

    thanks friends.

    is there anyway to restart apache after certain period ( 6 hrs, 8 hrs etc) thru cronjob or something?

  6. #6
    Registered Member
    Join Date
    Nov 2005
    Posts
    147

    Default

    Quote Originally Posted by icare View Post
    thanks friends.

    is there anyway to restart apache after certain period ( 6 hrs, 8 hrs etc) thru cronjob or something?
    In root SSH type

    Code:
    crontab -e
    then

    Code:
    * 8 * * * service httpd restart
    That should restart apache every 8 hours every day...

    From,
    Adam
    cPanel Customer since November 2005
    ---
    - 7 Servers running cPanel/WHM

    Tutorials I have made:
    - Transfer accounts from one server to another

  7. #7
    Registered Member Manuel_accu's Avatar
    Join Date
    Jun 2005
    Posts
    191

    Default

    Quote Originally Posted by icare View Post
    thanks friends.

    is there anyway to restart apache after certain period ( 6 hrs, 8 hrs etc) thru cronjob or something?
    I dont understand why you required this
    Linux Web Administrator Guide
    Optimize, secure and performance tunning for Apache || MySQL5.1 Cluster How To
    The visionary conceives the impossible, The missionary makes it possible. ...Gita.

Similar Threads

  1. Apache Restarting
    By mehrana in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 01-14-2013, 08:58 PM
  2. Apache Restarting Nightly
    By orty in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 03-07-2012, 11:47 AM
  3. Apache restarting automagically
    By taproot in forum cPanel & WHM Discussions
    Replies: 3
    Last Post: 12-22-2008, 04:06 PM
  4. Apache restarting without any reason
    By CoolMike in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 08-09-2006, 01:14 AM
  5. Apache not restarting
    By compunet2 in forum cPanel & WHM Discussions
    Replies: 4
    Last Post: 05-20-2003, 06:30 PM
bargain