Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 28th February 2011, 00:02
Dark_Balor Dark_Balor is offline
Junior Member
 
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default [SOLVED]FastCGI ignore directive

Hi,

I have a big problem with FastCGI for php.
I created an another the master file (conf-custom) vhost to change these values :

Code:
     # Idle fastcgi will not be killed if their count is less than n
      # Set this to 0, and tweak IdleTimeout
          DefaultMinClassProcessCount 0

          # DefaultMaxClassProcessCount n (100)
      # The maximum number of fastcgi application instances allowed to run for
      # particular one fastcgi application.
      DefaultMaxClassProcessCount 4
I regenerate the vhost's config for my website, everything fine.
Then I used ab to test my server while monitoring it with top.
Code:
ab -n500 -c20 http://my-website.com/index.php
Top said that there was 20 php-cgi spawn by apache ... instead of the max I set (4) ...
I tried with FcgidMaxProcessesPerClass (http://httpd.apache.org/mod_fcgid/mo...cessesperclass), make it global in http.conf etc ... every time it's ignored ...

I don't know what to do ... I tried everything I know and every time it's failed ...

I used this tutorial to install my server : http://www.howtoforge.com/perfect-se...nny-ispconfig3 (apache2-mpm-prefork)

Just used aptitude instead of apt-get.

I compiled and added eAccelerator (try with and without nothing change)

Then ... help ...

Edit : wait for the moderator to approve my last post with the solution.

Last edited by Dark_Balor; 2nd March 2011 at 23:13. Reason: Problem Solved by applying a patch to the source of mod_fcgi.
Reply With Quote
Sponsored Links
  #2  
Old 28th February 2011, 10:33
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,669
Thanks: 819
Thanked 5,317 Times in 4,170 Posts
Default

Try to use this variable instead:

MaxProcessCount 4
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 28th February 2011, 10:38
Dark_Balor Dark_Balor is offline
Junior Member
 
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
Default

I don't want to block the total of Fcgi child to 4 (already configured to 32).

This param works (just tried before going here) but I have other website on the server with that param the other sites are blocked as the Max is reached ...

And I can't use MaxProcessCount in <virtualhost>

Don't know what to do ...
Reply With Quote
  #4  
Old 2nd March 2011, 23:12
Dark_Balor Dark_Balor is offline
Junior Member
 
Join Date: Feb 2011
Posts: 4
Thanks: 0
Thanked 2 Times in 2 Posts
 
Default

Okay I found why ...

Because in the last version of mod_fcgi (2.3.6) they change how this param work.

I just goes to their website and find a patch to have the "old way".

Everything is here http://httpd.apache.org/download.cgi
Quote:
A patch is available here for a regression in this release.
Hope it'll help somebody else too.

(just had to install the patch manually, change one line with one other)
Reply With Quote
The Following User Says Thank You to Dark_Balor For This Useful Post:
falko (3rd March 2011)
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
My Ispconfig UI is not totally loading when i log in wachira General 23 2nd February 2011 20:11
403 Forbidden gillesdevals Installation/Configuration 13 5th December 2010 17:48
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
Can't access to my website - after install problem pallermo Installation/Configuration 18 4th June 2010 13:29
add web site serr57 Installation/Configuration 18 13th April 2008 11:40


All times are GMT +2. The time now is 13:09.


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