Google Answers Logo
View Question
 
Q: Apache malfunctions on cPanel server ( No Answer,   0 Comments )
Question  
Subject: Apache malfunctions on cPanel server
Category: Computers > Software
Asked by: andreym-ga
List Price: $100.00
Posted: 10 Oct 2006 13:17 PDT
Expires: 12 Oct 2006 06:54 PDT
Question ID: 772403
I am running a busy banner exchange on Linux-PHP-MySql and recently
moved it to a new and bigger server Dual Zeon 3.2G with cPanel, Apache
1.3.37 and PHP 4.4.4. The old machine was Dual Zeon 2.0, no cPanel,
Apache 2.0.46 and PHP 4.3.2 . Both machines have 2G RAM. On the old
server it worked without any problems, but on the new machine it
showed the following problems:

Right out of the box the new webserver would pile up and reject
connections while only working at 10% of its CPU capacity. I did some
performance tuning by tweaking values in httpd.conf, php.ini and
my.cnf. It improved things, but once in every two-three days the
server would go into a very "slow mode" with many "defunct" apache
processes while CPU usage never exceeded 25% and a lot of free memory
available. No memory swapping. The "slow mode" always occurred
suddenly, not gradually, with a noticeable bandwidth decrease on the
server's chart.  Restarting Apache would fix the issue until the next
time the 'slow mode' occurred. I never figured what causes Apache to
slow down with so much available CPU power and memory.

Finally, this morning it went into its "slow mode" again, except this
time restarting did not help, and even rebooting machine did not help.
I moved the app back to the old server with the database running on
the new machine.

I decided the problem might be due to the old Apache version, and to
upgrade Apache from 1.3 to 2.x. But my "Stable cPanel" did not support
2.0. Only the "bleeding edge" cPanel version currently supports Apache
2.0. So, I upgraded cPanel to the "edge" version and then attempted to
upgrade Apache. Tried several times with various configs but the
upgrade always failed with the error "postcheck() returned a failed
status" , apparently because of the bugs in the "edge" cPanel version.

Then I downgraded cPanel back to "Stable" version and attempted to
upgrade PHP version to 5.1.6 But the upgrade failed with make errors
and Apache would not restart. I attempted to reisntall Apache with the
"default" options - with same result - make errors and Apache does not
start.

At this point I am not sure what to do next. I need assistance fixing
Apache and PHP and figuring and fixing the case of the initial problem
to allow Apache utilize all the available resources on the machine and
never go into the "slow mode" again.

Any additional information will be provided on request.

Thank you.
Answer  
There is no answer at this time.

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy