I have php5-fpm running just fine. My entire site is running as expected, almost no issues. However, I am unable to make use of the ping and status pages. When I navigate to mydomain.com/status or mydomain.com/ping I get an error (403, 404, 500, depends on the config).
I'm very new to the LAMP stack. I've been thrown to the wolves on this, but I've got to get it figured out.
I'll include anything I think is pertinent below, but if I miss something cue me in, thanks in advance for your patience!
Running Ubuntu 14.04
Mods enabled in Apache (the important ones at least):
I'm going to leave out the majority of the fpm configuration because it is functioning, but here's the ping and status settings... Pretty vanilla setup.
pm.status_path = /status ping.path = /ping
Listening on a socket to reduce tcp/ip overhead...
listen = /var/run/php5-fpm.sock
I have php5-fpm.conf configured in /etc/apache2/conf-available/ and a symlink in conf-enabled, the contents of which are:
<IfModule mod_fastcgi.c> AddHandler php5-fcgi .php Action php5-fcgi /php5-fcgi Alias /php5-fcgi /usr/lib/cgi-bin/php5-fcgi FastCgiExternalServer /usr/lib/cgi-bin/php5-fcgi -socket /var/run/php5-fpm.sock -pass-header Authorization <LocationMatch "/(ping|status)"> SetHandler php5-fcgi-virt Action php5-fcgi-virt /php5-fpm-handler.fcgi virtual </LocationMatch> </IfModule>
Most of the documentation I've found makes reference to the LocationMatch as the only hotfix needed to get the ping and status pages working. I'm not sure where to go from here. I've tried everything I can find on the web to no avail. I've made various changes to the php5-fpm.conf file and each change either has no effect or leads me to a different error. I've encountered internal server error's, permissions issues, etc. With this setup I'm currently getting a 500 internal server error.
All help is beyond appreciated! Thank you!
After reading this helpful guide here I've replaced the LocationMatch in php5-fpm.conf with:
<FilesMatch "^ping|status$"> SetHandler php-script </FilesMatch>
This did not fix the problem, but did change the effect. I'm now receiving a 404 Error. Still not sure what I'm missing here...
I've gone back to the more popular notion that the "LocationMatch" is correct and the "FilesMatch" will not get me closer to success. Again, very new to hosting and LAMP servers in general, but I found that when I get a 404 Error (using the "FilesMatch) nothing is logged in /var/log/apace2/error.log, but when using the "LocationMatch" I still get a 500 Error, and I get a log entry:
[Tue Feb 10 00:29:17.216917 2015] [core:error] [pid 8978:tid 140200547378944] [client IP:Port] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
I've done a little digging around the web, but cannot find good documentation describing a fix for this issue. Any Ideas?