Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: users

Newbie problem with Cherokee PHP error logs

 

 

Cherokee users RSS feed   Index | Next | Previous | View Threaded


enrique.arizonbenito at gmail

Jun 28, 2011, 4:33 AM

Post #1 of 3 (293 views)
Permalink
Newbie problem with Cherokee PHP error logs

Hi,

I'm new to Cherokee. I'm testing it with some PHP apps of my own. It
works fine but some times PHP errors get hidden and I the only error I
can see in the /var/log/cherokee/cherokee.error file is a line similar
to:

{'type': "error", 'time': "28/06/2011 07:13:00.241", 'title': "Parsing
error: unknown version", 'code': "handler_fcgi.c:83", 'error': "40",
'version': "1.0.8", 'compilation_date': "Jan 12 2011 03:02:28",
'configure_args': " '--includedir=${prefix}/include'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
'--disable-dependency-tracking' '--host=i486-linux-gnu'
'--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
'--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--sysconfdir=/etc'
'--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
'--enable-pthread' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
'CPPFLAGS=' '--includedir=${prefix}/include'
'--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
'--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
'--disable-dependency-tracking' '--host=i486-linux-gnu'
'--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
'--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--sysconfdir=/etc'
'--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
'--enable-pthread' 'build_alias=i486-linux-gnu'
'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
'CPPFLAGS='", 'backtrace': ""}


I reloaded a few times the same page to get sure the error is not yet
flushed to the log file and I also checked with a line similar to:

find / -mmin -10

to get sure the error was not beeing written to another file.

Most of the time the PHP error (syntax error, ...) is printed to the
log file and I can trace it, it's just those few times when the log
only shows a 'error':"40" that I get lost with no clue about the error
and I have to start adding "debug echo lines" to the PHP line where
the error was thrown.

Is there any way to solve this issue or it's just me that I doing
something wrong?

Thx in advance for any help, hint or link!

Regards,

Enrique
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


enrique.arizonbenito at gmail

Jun 28, 2011, 4:50 AM

Post #2 of 3 (286 views)
Permalink
Re: Newbie problem with Cherokee PHP error logs [In reply to]

!!!Solved!!!

The code I was testing had a final catch 1000 lines down the code that
captured any raised exception. If that exception matched some rules
the catch block tried to send an email like:

$mail = "enrique.arizonbenito [at] gmail"; //TODO(0.5): Mejorar
$CMD = "echo -e \"subject:Error Aplicaci'on Usuario\n\n$e\" | ".
"/usr/sbin/ssmtp -f aplicacionAdministracion.$(hostname)@mail.net
-F $(hostname) $mail";
$output=shell_exec($CMD);

/usr/sbin/ssmtp was not instaled on the Cherokee server and that
raised a second exception with the error 40 commented!



On Tue, Jun 28, 2011 at 1:33 PM, ENRIQUE ARIZON BENITO
<enrique.arizonbenito [at] gmail> wrote:
> Hi,
>
> I'm new to Cherokee. I'm testing it with some PHP apps of my own. It
> works fine but some times PHP errors get hidden and I the only error I
> can see in the /var/log/cherokee/cherokee.error file is a line similar
> to:
>
> {'type': "error", 'time': "28/06/2011 07:13:00.241", 'title': "Parsing
> error: unknown version", 'code': "handler_fcgi.c:83", 'error': "40",
> 'version': "1.0.8", 'compilation_date': "Jan 12 2011 03:02:28",
> 'configure_args': " '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS=' '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS='", 'backtrace': ""}
>
>
> I reloaded a few times the same page to get sure the error is not yet
> flushed to the log file and I also checked with a line similar to:
>
> find / -mmin -10
>
> to get sure the error was not beeing written to another file.
>
> Most of the time the PHP error (syntax error, ...) is printed to the
> log file and I can trace it, it's just those few times when the log
> only shows a 'error':"40" that I get lost with no clue about the error
> and I have to start adding "debug echo lines" to the PHP line where
> the error was thrown.
>
> Is there any way to solve this issue or it's just me that I doing
> something wrong?
>
> Thx in advance for any help, hint or link!
>
> Regards,
>
> Enrique
>
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee


sub at kr0k3n

Jun 28, 2011, 4:54 AM

Post #3 of 3 (289 views)
Permalink
Re: Newbie problem with Cherokee PHP error logs [In reply to]

On 06/28/2011 01:33 PM, ENRIQUE ARIZON BENITO wrote:
> Hi,
>
> I'm new to Cherokee. I'm testing it with some PHP apps of my own. It
> works fine but some times PHP errors get hidden and I the only error I
> can see in the /var/log/cherokee/cherokee.error file is a line similar
> to:
>
> {'type': "error", 'time': "28/06/2011 07:13:00.241", 'title': "Parsing
> error: unknown version", 'code': "handler_fcgi.c:83", 'error': "40",
> 'version': "1.0.8", 'compilation_date': "Jan 12 2011 03:02:28",
> 'configure_args': " '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS=' '--includedir=${prefix}/include'
> '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info'
> '--libexecdir=${prefix}/lib/cherokee' '--disable-maintainer-mode'
> '--disable-dependency-tracking' '--host=i486-linux-gnu'
> '--build=i486-linux-gnu' '--enable-os-string=Debian GNU/Linux'
> '--prefix=/usr' '--localstatedir=/var' '--mandir=/usr/share/man'
> '--infodir=/usr/share/info' '--sysconfdir=/etc'
> '--docdir=/usr/share/doc/cherokee-doc' '--with-wwwroot=/var/www'
> '--enable-pthread' 'build_alias=i486-linux-gnu'
> 'host_alias=i486-linux-gnu' 'CFLAGS=-Wall -g -O2' 'LDFLAGS='
> 'CPPFLAGS='", 'backtrace': ""}
>
>
> I reloaded a few times the same page to get sure the error is not yet
> flushed to the log file and I also checked with a line similar to:
>
> find / -mmin -10
>
> to get sure the error was not beeing written to another file.
>
> Most of the time the PHP error (syntax error, ...) is printed to the
> log file and I can trace it, it's just those few times when the log
> only shows a 'error':"40" that I get lost with no clue about the error
> and I have to start adding "debug echo lines" to the PHP line where
> the error was thrown.
>
> Is there any way to solve this issue or it's just me that I doing
> something wrong?
>
> Thx in advance for any help, hint or link!
>
> Regards,
>
> Enrique
> _______________________________________________
> Cherokee mailing list
> Cherokee [at] lists
> http://lists.octality.com/listinfo/cherokee
On my Debian 6.0 I had similar Errors - some php-libs were missing. I
did the following:

sudo aptitude install php5-mysql php5-curl php5-gd php5-idn php-pear
php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming
php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy
php5-xmlrpc php5-xsl php5-json

Maybe some of them is enough for you.

Hope it helps.

Regards,

Filias
_______________________________________________
Cherokee mailing list
Cherokee [at] lists
http://lists.octality.com/listinfo/cherokee

Cherokee users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.