How can I fix the error: Apache tracking is not configured. The Apache module mod_status must be loaded and accept local connections to it?

Overview

The Juggernaut installer requires the Apache mod_status module to be active and accessible via local connections. If you encounter an error indicating that Apache tracking is not configured, follow the procedures below to enable the module, restrict access to localhost, update the CSF firewall configuration, and verify connectivity.

Prerequisites

  • Root or sudo privileges on the server
  • Plesk control panel installed (required for httpd_modules_ctl)
  • CSF (ConfigServer Security & Firewall) installed and active

Enable mod_status on AlmaLinux/CloudLinux/RHEL

  1. Enable the Apache module using the Plesk utility:
    plesk sbin httpd_modules_ctl -e status
  2. Create a new configuration file at /etc/httpd/conf.d/server-status.conf and insert the following directives:
    <IfModule mod_status.c>
    ExtendedStatus on
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1 ::1
    </Location>
    </IfModule>
  3. Restart the Apache service to apply changes:
    systemctl restart httpd

Enable mod_status on Debian/Ubuntu

  1. Enable the Apache module using the Plesk utility:
    plesk sbin httpd_modules_ctl -e status
  2. Edit /etc/apache2/mods-enabled/status.conf and ensure it matches the following configuration, which restricts access to local connections:
    <IfModule mod_status.c>
            # Allow server status reports generated by mod_status,
            # with the URL of http://servername/server-status
            # Uncomment and change the "192.0.2.0/24" to allow access from other hosts.
    
            <Location /server-status>
                    SetHandler server-status
                    Require local
                    #Require ip 192.0.2.0/24
            </Location>
    
            # Keep track of extended status information for each request
            ExtendedStatus On
    
            # Determine if mod_status displays the first 63 characters of a request or
            # the last 63, assuming the request itself is greater than 63 chars.
            # Default: Off
            #SeeRequestTail On
    
            <IfModule mod_proxy.c>
                    # Show Proxy LoadBalancer status in mod_status
                    ProxyStatus On
            </IfModule>
    
    </IfModule>
  3. Restart the Apache service:
    service apache2 restart

Configure CSF Apache Tracking URL

The login failure daemon (LFD) requires the correct endpoint to query Apache status. This endpoint depends on whether Nginx is active as a reverse proxy.

  1. Verify the current Nginx status:
    /usr/local/psa/admin/sbin/nginxmng -s
  2. Open /etc/csf/csf.conf in a text editor and locate the PT_APACHESTATUS directive. Update it based on your Nginx configuration:
    • If Nginx is enabled:
      PT_APACHESTATUS = "http://localhost:7080/server-status"
    • If Nginx is disabled:
      PT_APACHESTATUS = "http://localhost/server-status"
  3. Restart the LFD service to apply the configuration:
    service lfd restart

Verify Configuration

Confirm that mod_status is correctly configured and accessible locally using the lynx command-line browser.

  1. Install lynx:
    • CentOS/RHEL/CloudLinux:
      yum install lynx
    • Debian/Ubuntu:
      apt-get install lynx
  2. Test the appropriate endpoint based on your Nginx configuration:
    • If Nginx is enabled (Plesk default):
      lynx http://localhost:7080/server-status
    • If Nginx is disabled:
      lynx http://localhost/server-status
  3. A successful connection will display the Apache server status page in the terminal.

Troubleshooting

  • Service Restart Failures: If Apache fails to restart, check the error logs at /var/log/httpd/error_log (RHEL/CentOS) or /var/log/apache2/error.log (Debian/Ubuntu) for syntax errors in the configuration files.
  • Connection Refused: Ensure that mod_status is fully enabled and that no firewall rules are blocking local loopback traffic on ports 80 or 7080.
  • CSF Configuration Not Applying: After modifying /etc/csf/csf.conf, always restart the LFD service using service lfd restart. Changes will not take effect until the daemon is reloaded.
  • Lynx Output Shows 403 Forbidden: Verify that the Allow from or Require local directives in your Apache configuration explicitly permit connections from 127.0.0.1 and ::1.
  • apache
  • 1 Utilizadores acharam útil
Esta resposta foi útil?

Artigos Relacionados

How can I fix the error: The domain limit of this license key has been reached?

Overview The Admin and Pro editions of Danami products enforce a maximum domain limit within the...

How can I fix incorrect date and times displayed in the extension?

Overview The extension relies on accurate system and database timestamps to function correctly....

How can I fix the warning: This extension is deprecated. If you remove it, you will not be able to install it anymore?

Overview On July 25, 2025, WebPros and Danami concluded their partnership agreement regarding...

Why are /var/log/messages, /var/log/maillog and /var/log/secure empty?

Overview The absence of data in /var/log/messages, /var/log/maillog, and /var/log/secure...

How can I raise the open file limit for the login failure daemon?

Overview The Login Failure Daemon (LFD) may terminate unexpectedly when monitoring a high volume...