piped log program failed unexpectedly

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

piped log program failed unexpectedly

Post by NoS. »

Hi guys, I am currently running apache piped log to pipe to a php page,
which records data into MySQL

However, my httpd daemon sometimes stops functioning and users could not access to my pages; and i have to run apachctl start manually myself =\

The following are the only errors I notice on my error_log, hope it helps:

piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:21 2005] [notice] child pid 8748 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:22 2005] [notice] child pid 8749 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:23 2005] [notice] child pid 8750 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:24 2005] [notice] child pid 8751 exit signal Segmentation fault (11)
piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:25 2005] [notice] child pid 8752 exit signal Segmentation fault (11)


These error kept showing in error_log over and over again if I enabled piped log.


This is what I have in httpd.conf:
LogFormat "%{Referer}i" referrers
CustomLog "|/scripts/record_page.php" referrers

The php script would do the trick, records everything to MySQL nicely and stuff, but the server do crashes after couple hours. (sometimes 2 hr sometimes 20)

Can Anyone PLEASE help me on this one?

THANKS!
8O
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

sounds like a large memory leak.. what modules do you have installed?
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Post by NoS. »

I done another test,

I suspect that maybe my script was not well written which caused the server to crash or something. Therefore, I commented out EVERYTHING

Code: Select all

#!/usr/local/bin/php
<?php
/*
  blah blah blah
*/
?>
My server still crashed after an hour or two.
so I don't think it's because of my script over loading the server =\
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Post by NoS. »

I didn't install lots modules
all i have installed myself is php4_module, mod_rewrite,
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Post by NoS. »

Memory leak?
What's that? what is normally the cause of that?
what would happen if i had memory leak? =\

I'm sorry but i am new to this.

your reply will be VERY appreciated
NoS.
Forum Newbie
Posts: 7
Joined: Fri Dec 03, 2004 6:08 pm
Location: Vancouver, Canada
Contact:

Post by NoS. »

I've got rid of the Error message:

piped log program '/scripts/record_page.php' failed unexpectedly
[Tue Jan 25 16:16:25 2005] [notice] child pid 8752 exit signal Segmentation fault (11)

However, my httpd daemon still stops functioning after a while, Does anyone know what would be the reason? =\
Post Reply