Karel
Ping works but status does not in Apache
October 10, 2010 03:24PM
Hello,

php-fpm rocks. Thanks to the wiki and the posts in this newsgroup I
got it working nicely. But I am not sure how to set it up in Apache2,
so that it responds to status and ping requests. I have seen the
nginx tutorials, but I am not sure how to adapt it.

Setting up an alias does work for ping (Reply: pong), but not for
status (Int. server error). What am I missing?

Thanks for reading!
Rob
Re: Ping works but status does not in Apache
December 06, 2010 06:56PM
Hello,

Do have this working already?

Rob

On 10 okt, 20:18, Karel <kare...@gmail.com> wrote:
> Hello,
>
> php-fpm rocks.  Thanks to the wiki and the posts in this newsgroup I
> got it working nicely.  But I am not sure how to set it up in Apache2,
> so that it responds tostatusand ping requests.  I have seen the
> nginx tutorials, but I am not sure how to adapt it.
>
> Setting up an alias does work for ping (Reply: pong), but not forstatus(Int. server error).  What am I missing?
>
> Thanks for reading!
Jérôme Loyet
Re: Ping works but status does not in Apache
December 06, 2010 06:58PM
2010/12/7 Rob <rob@bsdfreaks.nl>:
> Hello,
>
> Do have this working already?

yes this works

>
> Rob
>
> On 10 okt, 20:18, Karel <kare...@gmail.com> wrote:
>> Hello,
>>
>> php-fpm rocks.  Thanks to the wiki and the posts in this newsgroup I
>> got it working nicely.  But I am not sure how to set it up in Apache2,
>> so that it responds tostatusand ping requests.  I have seen the
>> nginx tutorials, but I am not sure how to adapt it.
>>
>> Setting up an alias does work for ping (Reply: pong), but not forstatus(Int. server error).  What am I missing?

what is your conf ?

>>
>> Thanks for reading!
>
Rob
Re: Ping works but status does not in Apache
December 06, 2010 07:12PM
Pool config
pm.status_path = /fpm-status

fastcgi.conf
<IfModule mod_fastcgi.c>

# Directory where the PHP-FPM fastcgi sockets exist
FastCgiIpcDir /sites/www/fastcgi

# All files ending in .php will be handled by php-fpm
<FilesMatch \.php$>
SetHandler php5-fcgi
</FilesMatch>

# Fake directory that handles php-fpm requests.
# Directory can be anything, it should not exist and will
# not be visible to the end-user
# Each virtual host will alias this to a PHP-FPM socket
<Location "/fastcgiphp">
Order Deny,Allow
Deny from All
# Prevent accessing this path directly
Allow from env=REDIRECT_STATUS
</Location>

# Direct all PHP requests to the /fastcgiphp fake directory
# Each virtual host will alias this to a PHP-FPM socket
Action php5-fcgi /fastcgiphp
</IfModule>

Vhost config:

<IfModule mod_fastcgi.c>
# Reference to external PHP-FPM socket
# The path (/usr/local/bin) must exist but the filename (bob-php-
fpm)
# does not have to exist. The socket file (bob-php-fpm.sock)
should exist
# in the directory specified by the FastCgiIpcDir directive (/usr/
local/var/run/fastcg)
FastCgiExternalServer /usr/local/bin/df-php-fpm -socket df.sock
Alias /fastcgiphp /usr/local/bin/df-php-fpm
</IfModule>

<Directory /sites/www/www.aaaa.com/web>
Options SymLinksIfOwnerMatch ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

But it could be that my .htaccess is hamering me so I added:

RewriteCond %{REQUEST_URI} !=/fpm-status as seen here:
http://www.ducea.com/2009/03/01/wordpress-mod_rewrite-rules-taking-over-mod_status/


Rob
On 7 dec, 00:55, Jérôme Loyet <m...@fatbsd.com> wrote:
> 2010/12/7 Rob <r...@bsdfreaks.nl>:
>
> > Hello,
>
> > Do have this working already?
>
> yes this works
>
>
>
> > Rob
>
> > On 10 okt, 20:18, Karel <kare...@gmail.com> wrote:
> >> Hello,
>
> >> php-fpm rocks.  Thanks to the wiki and the posts in this newsgroup I
> >> got it working nicely.  But I am not sure how to set it up in Apache2,
> >> so that it responds tostatusand ping requests.  I have seen the
> >> nginx tutorials, but I am not sure how to adapt it.
>
> >> Setting up an alias does work for ping (Reply: pong), but not forstatus(Int. server error).  What am I missing?
>
> what is your conf ?
>
>
>
>
>
>
>
>
>
> >> Thanks for reading!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 324
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready