Welcome! Log In Create A New Profile

Advanced

How to capture error messages that are sent to syslog from php script in php-fpm chrooted?

Posted by dreamer 
Hi.

I'm using php 5.3.3RC2 (php-fpm patched).
I'm setting up php-fpm.conf and php.ini:

; php.ini
log_errors = On
error_log = syslog

; php-fpm.conf
chroot = /home/chrooted

and I'm trying to run test php script that have error code on the web.
system logger can't catpure the errror message.

when I turn off php-fpm chrooted, It can capture the error message.

how can I catpure php error message on php-fpm chrooted?

sorry my poor english.

thanks
I think it's about /dev/log socket. Would you try to append '-a
/home/chrooted/dev/log' parameter to syslogd?

On Sat, Jul 10, 2010 at 1:54 AM, dreamer <peniar@gmail.com> wrote:
> and I'm trying to run test php script that have error code on the web.
> system logger can't catpure the errror message.
> when I turn off php-fpm chrooted, It can capture the error message.
> how can I catpure php error message on php-fpm chrooted?


--
Ren Xiaolei
Hi.
It works!

thanks.

On Jul 11, 12:14 am, 任晓磊 <julycl...@gmail.com> wrote:
> I think it's about  /dev/log  socket. Would you try to append '-a
> /home/chrooted/dev/log' parameter to syslogd?
>
> On Sat, Jul 10, 2010 at 1:54 AM, dreamer <pen...@gmail.com> wrote:
> > and I'm trying to run test php script that have error code on the web.
> > system logger can't catpure the errror message.
> > when I turn off php-fpm chrooted, It can capture the error message.
> > how can I catpure php error message on php-fpm chrooted?
>
> --
> Ren Xiaolei
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 100
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready