apache httpd v2.4 + php-fpm working, except for php-fpm "/status" virtual page. what's missing in the config?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'm running

	Apache/2.4.11-dev
	PHP 5.6.5-dev

on linux

apache's setup to use php-fmp

php-fpm config includes

	cat /usr/local/etc/php5/php-fpm.conf
		...
		pm.status_path         = /sec/php-fpm-status
		ping.path              = /sec/php-fpm-ping
		ping.response          = php-fpm-pong
		...

php-fpm is launched via systemd with
	...
	ExecStart=/usr/local/php5/sbin/php-fpm \
	          --pid /var/run/php-fpm.pid \
	          --fpm-config /usr/local/etc/php5/php-fpm.conf
	...

it's up & running

	ps ax | grep php
		 9643 ?        Ss     0:00 php-fpm: master process (/usr/local/etc/php5/php-fpm.conf)
		 9644 ?        S      0:00 php-fpm: pool www
		...

php, static html, and apache status pages are all being served correctly

except, the php-fpm status page

	@ https://mydomain.com/sec/php-fpm-status

returns

	Not Found
	The requested URL /usr/local/php5/sbin/php-fpm.fcgi/sec/php-fpm-status was not found on this server.

per

	https://httpd.apache.org/docs/2.4/mod/mod_proxy.html
	https://httpd.apache.org/docs/2.4/mod/mod_proxy_fcgi.html
	online posts ...

main config includes

	...
	LoadModule proxy_module       modules/mod_proxy.so
	LoadModule proxy_fcgi_module  modules/mod_proxy_fcgi.so
	ProxyRequests Off
	...

and here's the vhost config

	DirectoryIndex index.php index.html
	Options +FollowSymLinks

	<IfModule mod_proxy_fcgi.c>
		RewriteCond %{REQUEST_URI} !/.+index\.php$
		RewriteCond %{REQUEST_URI} /sec/.*\.php
		RewriteRule ^/sec/(.*)$ fcgi://127.0.0.1:10001/svr/www/secure/$1 [P]

		RewriteCond %{REQUEST_URI} !/.+index\.php$
		RewriteCond %{REQUEST_URI} \.php
		RewriteRule ^/(.*)$ fcgi://127.0.0.1:10001/svr/www/site01/$1 [P]
	</IfModule>

	Alias /sec/ "/svr/www/secure/"
	<Directory "/svr/www/secure" >
	    AllowOverride FileInfo All
	    Options +ExecCGI +FollowSymLinks +Includes +Indexes -MultiViews
	</Directory>

	<Location "/" >
		Require all granted
	</Location>

	<Location "/sec/" >
	    Require all granted
	</Location>

	<Location "/usr/local/php5/sbin/" >
	    Require local
	</Location>

	<Location "/sec/server-info" >
		SetHandler server-info
	</Location>

	<Location "/sec/server-status" >
		SetHandler server-status
	</Location>
	</IfModule>

	<Location "/sec/php-fpm-status">
		SetHandler php-fastcgi-virt
		Action php-fastcgi-virt /usr/local/php5/sbin/php-fpm.fcgi virtual
	</Location>


what's wrong or missing, so as to get the php-fpm-status page working ?

grant

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux