Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion PHP-FPM Apache error_log
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
cody  
View profile  
 More options May 21 2012, 9:25 pm
From: cody <cbr...@gmail.com>
Date: Mon, 21 May 2012 18:25:11 -0700 (PDT)
Local: Mon, May 21 2012 9:25 pm
Subject: Re: PHP-FPM Apache error_log
I have some more info...

I changed FPM from socket to 127.0.0.1:9000 and setup the access_log
to log %R

127.0.0.1 -  21/May/2012:21:20:50

So what I see is the connection is from the localhost address instead
of the actual remote IP.  This is likely due to my apache config line:

FastCGIExternalServer /php -host 127.0.0.1:9000 -idle-timeout 1000

Is there a way to pass the remote_IP so it doesn't do this?

Thanks

On May 21, 11:46 am, cody <cbr...@gmail.com> wrote:

> Hi,

> Yes, we are running php 5.3.13 with the --enable-fpm flag so I think I
> am running the latest version.

> I do see the %R for the access_log stuff, but does that same thing
> work for error_log?

> Thanks,
> Cody

> On May 21, 10:34 am, "Sammie S. Taunton" <diem...@gmail.com> wrote:

> > Hello,

> > Are you using the latest version of PHP-FPM? There are new access log
> > options which allows you to set %R to get the Remote IP Address.

> > ~ Sammie

> > On Sun, May 20, 2012 at 9:34 PM, cody <cbr...@gmail.com> wrote:
> > > Hello,

> > > We have our PHP-FPM deployment up and running and everything is
> > > working great, however the Apache error_log is lacking some big items
> > > we need and I cannot find anyway to get that info.  We would like to
> > > see the REMOTE_IP in the logs, but I cannot find a way to do so...

> > > FPM.conf:

> > > php_admin_value[error_log] = /usr/local/apache/logs/error_log
> > > php_admin_flag[log_errors] = on
> > > php_admin_value[error_reporting] = E_ALL

> > > Apache error_log:

> > > Here is what I see when a PHP error happens... for some reason its
> > > using UTC timezone as well.

> > > [20-May-2012 21:09:05 UTC] foo bar

> > > At minimum I would like to have REMOTE_IP passed to the log... any
> > > ideas?

> > > Thanks,
> > > Cody


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.