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!

Error Log will with Optional Junk (optional_hook_import, optional_fn_export | error)

Discussion in 'General Discussion' started by xlightwaverx, Oct 20, 2014.

  1. xlightwaverx

    xlightwaverx Member

    Joined:
    Sep 27, 2014
    Messages:
    13
    Likes Received:
    1
    Trophy Points:
    3
    cPanel Access Level:
    Root Administrator
    Hi.

    I have been wondering this for a while and in my searches in Google there is no direct answer on how to fix this, but my question is the following:

    How do I stop error messages like this:

    Code:
    [Tue Oct 14 01:20:23.963630 2014] [optional_fn_export:error] [pid 10608:tid 140347598362368] AH01871: Optional function test said: GET / HTTP/1.1
    [Tue Oct 14 01:20:23.984517 2014] [optional_hook_import:error] [pid 10606:tid 140347682281216] AH01866: Optional hook test said: GET / HTTP/1.1
    [Tue Oct 14 01:20:23.984535 2014] [optional_fn_export:error] [pid 10606:tid 140347682281216] AH01871: Optional function test said: GET / HTTP/1.1
    [Tue Oct 14 01:20:24.026878 2014] [optional_hook_import:error] [pid 10611:tid 140347566892800] AH01866: Optional hook test said: GET / HTTP/1.1
    [Tue Oct 14 01:20:24.026894 2014] [optional_fn_export:error] [pid 10611:tid 140347566892800] AH01871: Optional function test said: GET / HTTP/1.1
    from filling up my error_log file located in /usr/local/apache/logs?

    In my research I have found a site that shows the module responsible for creating all this junk. You can find it on this link (tigress.com/nobs/apache2-error-messages.html) but I will give you a snippet that looks like this:

    Code:
    Optional function test said: %s    +66 ./modules/test/mod_optional_fn_export.c    ap_log_error
    Optional hook test said: %s    +62 ./modules/test/mod_optional_hook_import.c    ap_log_error
    Basically from my understanding there is some type of test module that is compiled into Apache (even though I can't recall ever building apache with this module enabled, or if it even exits to be able to build) but none-the-less I would like to know how to remove it.

    Thanks in advance!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 xlightwaverx, Oct 20, 2014
    Last edited by a moderator: Mar 29, 2015
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,699
    Likes Received:
    1,790
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    The messages you provided are common when the system is out of memory. Do you notice any memory errors in /var/log/messages or low available memory overall when using the "free -m" command?

    Thank you.
     
    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