PHP Processes not terminating correctly

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
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

PHP Processes not terminating correctly

Post by paqman »

Hey,

All of the sudden my website only showed a '500 Server Error' page. I found the problem - I had a large number of processes running, which seemed to 'freeze' my website. Once I forced them all to end with cpanel, everything was fine. However, every few minutes the problem returns. The two lines which constantly repeat in the process manager are:

/usr/bin/php index.php

and

/usr/bin/perl -w /usr/sbin/sendmail -t -i


If anyone has experience with this kind of problem, I'd really appreciate it!
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

I'm sorry, I can't see how this is a Unit Testing issue. Moved to Installation.
User avatar
Ambush Commander
DevNet Master
Posts: 3698
Joined: Mon Oct 25, 2004 9:29 pm
Location: New Jersey, US

Post by Ambush Commander »

I would presume that one of your PHP scripts is hanging due to sendmail, so the processes get zombified, and once your PHP process count hits a limit, you start getting Service Unavailable errors. Try pinpointing which script it is.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It may also be a bot/user that is exploiting a hole in your scripts.
User avatar
paqman
Forum Contributor
Posts: 125
Joined: Sun Nov 14, 2004 7:41 pm
Location: Burnaby, BC, Canada

Post by paqman »

I have a really strong feeling it is a bot exploiting a hole. I temporarily removed the contact form from my site and instantly the bot isn't bugging me anymore... I'm going to look into it tomorrow to see what's going on. But thanks for the help once again DevNetwork users!!!
Post Reply