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!

How to activate mod_log_forensic in Easyapache 4

Discussion in 'EasyApache' started by speckados, Jun 13, 2018 at 5:19 AM.

  1. speckados

    speckados Well-Known Member

    Joined:
    May 21, 2003
    Messages:
    315
    Likes Received:
    0
    Trophy Points:
    166
    Location:
    Pastrana :: Guadalajara :: España
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Hi.

    On manual only show how to install module mod_log_forensic, (For Easyapche 3)

    I've installed via mod_log_forensic in EA4.

    But after install I only see teh load module.

    Code:
    /etc/apache2/conf.modules.d/245_mod_log_forensic.conf
    But after restart Apache I don't see any change.

    I think need some steeps for configure.

    Any help?

    TRY this.

    Code:
     cp /var/cpanel/templates/apache2_4/ssl_vhost.default /var/cpanel/userdata/seguimientoenerg/ssl_vhost.local
     cp /var/cpanel/templates/apache2_4/vhost.default /var/cpanel/userdata/seguimientoenerg/vhost.local
    
    #Edit files
    ...
    [% IF logstyle == 'combined' -%]
        [%- IF !enable_piped_logs || !supported.mod_log_config -%]
      CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %] combined
        [%- END %]
    [% ELSE %]
      TransferLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]
    [% END -%]
      CustomLog [% paths.dir_domlogs %]/[% wildcard_safe(vhost.log_servername) %]-forensic forensic
    ...
    #Run
     /usr/local/cpanel/scripts/rebuildhttpdconf
    Built /etc/apache2/conf/httpd.conf OK
    

    But not work.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #1 speckados, Jun 13, 2018 at 5:19 AM
    Last edited: Jun 13, 2018 at 6:51 AM
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,646
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello @speckados,

    Installing the module in EasyApache 4 works as it's intended. Upon installing the the mod_log_forensic EA4 RPM, it's successfully loaded as an Apache module:

    Code:
    # rpm -qa|grep mod_log_forensic
    ea-apache24-mod_log_forensic-2.4.33-5.5.1.cpanel.x86_64
    # httpd -M|grep forensic
     log_forensic_module (shared)
    There's no mechanism in place to automatically configure this Apache module after it's installed. This is something you need to do on your own after installing it based on the documentation at:

    mod_log_forensic - Apache HTTP Server Version 2.4

    For instance, I installed this module and then added the following entry to the Pre Main Include section in WHM Home » Service Configuration » Apache Configuration » Include Editor:

    Code:
    <IfModule log_forensic_module>
    ForensicLog /etc/apache2/logs/forensic.log
    </IfModule> 
    Upon doing this and accessing a website, /etc/apache2/logs/forensic.log included the forensic log output. Note this module is generally used for debugging purposes.

    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