Linux > Plesk

How to enable the Apache mod_status module on a Plesk server (centos)

(1/1)

vichithrakumart:
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: ---# httpd -M | grep status
--- End code ---


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: ---# vim  /etc/httpd/conf.modules.d/status.conf
--- End code ---

for Apache 2.2:


--- Code: ---<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>
--- End code ---

for Apache 2.4:


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

5. Restart Apache:

Navigation

[0] Message Index

Go to full version