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 restart service Error

Discussion in 'General Discussion' started by ChrisjV, Jul 7, 2017.

  1. ChrisjV

    ChrisjV Registered

    Joined:
    Jul 6, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Sydney
    cPanel Access Level:
    Root Administrator
    Hi,

    When I restart HTTP server(APACHE) through the WHM interface it's taking a very long time and printing out the following:

    Failed to sysseek(/etc/apache2/logs/error_log) at /usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm line 247. Failed to find “configured -- resuming normal operations ” or “starts successfully! ” at /usr/local/cpanel/Cpanel/HttpUtils/ApRestart.pm line 393. Apache successfully restarted. Signaled successfully.

    When I check error_log in that directory

    [root@s1 logs]# pwd
    /etc/apache2/logs
    [root@s1 logs]# ls -l
    total 162280
    -rw-r--r-- 1 root root 21047842 Jul 7 16:15 access_log
    drwx------ 2 root root 4096 Jul 1 19:38 archive
    drwx--x--x 8 root wheel 4096 Jul 7 16:04 domlogs
    -rw-r--r-- 1 root root 0 Jul 7 14:54 error_log
    -rw-r--r-- 1 root root 144794524 Jul 7 13:53 error_log-old
    drwx-wx-wt 2 root root 4096 Jun 21 00:40 modsec_audit
    -rw-r----- 1 root root 0 Jun 21 22:32 modsec_audit.log
    -rw-r----- 1 root root 0 Jun 21 22:32 modsec_debug.log
    -rw-r--r-- 1 root root 299947 Jul 7 16:12 ssl_engine.log


    So everything seems ok. The contents of error_log is empty however.

    Any thoughts?
     
  2. Dent

    Dent Member

    Joined:
    Dec 16, 2015
    Messages:
    9
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Earth
    cPanel Access Level:
    Root Administrator

    Try changing the error_log name to error_log.bak and restart.
     
  3. 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
    Hello,

    Do you have any third-party scripts or cron jobs that are routinely deleting the /etc/apache2/logs/error_log file? You can review a list of root cron jobs on your system with a command such as:

    Code:
    crontab -l
    Thank you.
     
Loading...

Share This Page