Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

piped log program failed unexpectedly

Status
Not open for further replies.

pewpew

IS-IT--Management
Jan 25, 2005
3
CA
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!
 
I've 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:

#!/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 =\
 
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? =\
 
No, but I am curious as to how you got rid of the error message...?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top