Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to enable the Apache mod_status module on a Plesk server (centos)  (Read 4012 times)

0 Members and 2 Guests are viewing this topic.

vichithrakumart

  • Guest
The Status module allows a server administrator to find out how well their server is performing. A HTML page is presented that gives the current server statistics in an easily readable form. If required this page can be made to automatically refresh (given a compatible browser). Another page gives a simple machine-readable list of the current server state.

1. Connect to a Plesk server via SSH.
2. Check if the "status_module" is loaded:
 
Code: [Select]
# httpd -M | grep status

It will show "status_module (shared)" if it is installed.

3. If not, navigate to Tools & Settings > Apache Web Server. to enable the module

4. To make status reports visible to IP address 1.2.3.4 and localhost, add the below code to the Apache configuration file (create a new file, if there is no:

Code: [Select]
# vim  /etc/httpd/conf.modules.d/status.conf
for Apache 2.2:

Code: [Select]
<IfModule mod_status.c>
    <Location /server-status>
        SetHandler server-status
        Order deny,allow
        Deny from all
        Allow from 127.0.0.1 localhost ip6-localhost 1.2.3.4
    </Location>
    ExtendedStatus On
</IfModule>

for Apache 2.4:

Code: [Select]
<IfModule mod_status.c>
    <Location /server-status>
        SetHandler server-status
        <RequireAny>
            Require local
            Require ip 1.2.3.4
        </RequireAny>
    </Location>
    ExtendedStatus On
</IfModule>

5. Restart Apache: