I have a webserver, and I am migrating it over to RHEL7 (httpd 2.2 -> 2.4). In our old server (2.2), we could do a httpd fullstatus, and it would show a lot of good information about apache on the server.
On the apache 2.4 server, I am having issues getting the fullstatus command to work. Here is a list of steps that I took (compiled from various guides around the internet) –
1.) – Checked if status_module is enabled. httpd -M | grep status
returns status_module (shared)
.
2.) – Added the module into the httpd.conf –
<IfModule mod_status.c>
<Location "/server-status">
SetHandler server-status
Require host <my hostname>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
</IfModule>
3.) – Created a conf file inside of conf.modules.d/ (with the same words as above) –
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
I reloaded / restarted apache after doing all of those things, but I still has no luck in getting httpd fullstatus to work.
NOTE – I did both of these steps individually as well with no luck, which is why I put them together with the hope that it would work.
Do you guys have any ideas on what I should do for a next step?
Thanks.
EDIt – This is the current output whne I try to run httpd fullstatus –
[username@hostname]# httpd fullstatus
Usage: httpd [-D name] [-d directory] [-f file]
[-C "directive"] [-c "directive"]
[-k start|restart|graceful|graceful-stop|stop]
[-v] [-V] [-h] [-l] [-L] [-t] [-T] [-S] [-X]
EDIT2 – When running apachectl fullstatus, I get a permission denied error –
Forbidden
You don't have permission to access /server-status on this server.
Best Answer
fullstatus
is an option of the apachectl command, not of httpd. From the usage output, it sound like that is the problem here. Try