How to enable Apache mod_status

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:55:10 UTC

Modified:

2017-02-21 11:05:37 UTC

3

Was this article helpful?


Have more questions?

Submit a request

How to enable Apache mod_status

Question

How to enable Apache 'mod_status' module?

Answer

  1. Check if 'status' module is already loaded:

    For Debian-based systems:

    # apache2ctl -M | grep status
    status_module (shared)

    For RedHat-based systems:

    # httpd -M | grep status
    status_module (shared)

    If it is not, enable it from Home> Tools & Settings > Apache Web Server Settings

  2. Edit configuration file /etc/apache2/mods-enabled/status.conf ( /etc/httpd/conf.modules.d/status.conf ) as on example:

    <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
    </Location>
    ExtendedStatus On
    </IfModule>
  3. Restart Apache service:

    For Debian-based systems:

    # service apache2 restart

    For RedHat-based systems:

    # service httpd restart
Have more questions? Submit a request
Please sign in to leave a comment.