#1  
Old 5th November 2010, 09:22
Karasu Karasu is offline
Junior Member
 
Join Date: Oct 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default php-cgi and high cpu

Hi,

When I'm execute any web with php in my server, I have very php-cgi proceses and my cpu is a 90-95%. I try reinstall php and apache but it is not a solution in my problem. Anybody help me with this?

My php version is: PHP 5.2.14

Thanks...
Reply With Quote
Sponsored Links
  #2  
Old 6th November 2010, 14:55
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Did you enable PHP-CGI or PHP-FastCGI? FastCGI should use less resources than CGI.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 6th November 2010, 15:22
Karasu Karasu is offline
Junior Member
 
Join Date: Oct 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

I enabled Fastcgi, my fastcgi.conf is :

Code:
AddHandler    fcgid-script .fcgi
  IPCConnectTimeout 20
And change for :

Code:
 AddHandler    fcgid-script .fcgi
  IPCConnectTimeout 60
  IPCCommTimeout 90
  IdleTimeout 21600
  IdleScanInterval 900
  ProcessLifeTime 21600
  MaxProcessCount 128
  MaxRequestsPerProcess 10000
  DefaultMaxClassProcessCount 4
  DefaultMinClassProcessCount 1

But can't resolve the problem, my cpu is a 95-100%
Reply With Quote
  #4  
Old 7th November 2010, 20:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

Are there any errors related to this in your logs (especially the Apache error log)?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 13th November 2010, 13:20
Karasu Karasu is offline
Junior Member
 
Join Date: Oct 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Yes in my apache error.log:

Code:
[Thu Nov 11 23:07:48 2010] [notice] mod_fcgid: call /var/www/web2.com/web/index.php with wrapper /var/www/php-fcgi-scripts/web10/.php-fcgi-starter
[Thu Nov 13 23:07:50 2010] [notice] mod_fcgid: call /var/www/web1.info/web/index.php with wrapper /var/www/php-fcgi-scripts/web11/.php-fcgi-starter
[Thu Nov 13 23:07:56 2010] [notice] mod_fcgid: call /var/www/web15.org/web/index.php with wrapper /var/www/php-fcgi-scripts/web33/.php-fcgi-starter
[Thu Nov 13 23:07:59 2010] [notice] mod_fcgid: process 5446 going graceful shutdown, sending SIGTERM
[Thu Nov 13 23:12:15 2010] [notice] mod_fcgid: process /var/www/web1.info/web/index.php(5445) exit(communication error), terminated by calling exit(), return code: 0
Are more lines of notice same of this
Reply With Quote
  #6  
Old 18th November 2010, 15:09
Karasu Karasu is offline
Junior Member
 
Join Date: Oct 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Can nobody help me?
Reply With Quote
  #7  
Old 19th November 2010, 13:47
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,721 Times in 2,562 Posts
Default

What's the output of
Code:
ls -la /var/www/web1.info/web/index.php
? What's in /var/www/web1.info/web/index.php?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 19th November 2010, 18:48
Karasu Karasu is offline
Junior Member
 
Join Date: Oct 2010
Posts: 10
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

Output of ls -la /var/www/web1.info/web/index.php:

Code:
# ls -la /var/www/web1.info/web/index.php
-rwxrwxrwx 1 755 client2 397 oct 28 11:53 /var/www/web1.info/web/index.php
The output of ls -la /var/www/web2.com/web/index.php

Code:
# ls -la /var/www/web2.com/web/index.php
-rw-r--r-- 1 web16 client1 397 nov 16 01:04 /var/www/web2.com/web/index.php

The index.php are a few simple recently installed wordpress.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 21:55.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.