Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th July 2010, 17:22
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default big problem with config server

I just moved a big forum with a shared hosting to a dedicated server, and the page loading slower than before .... i use fast-cgi option, and in the error_log i have this erros :

Code:
[Sat Jul 17 17:13:22 2010] [error] [client 196.206.217.222] client denied by server configuration: /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 17:13:23 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 17:13:28 2010] [error] [client 196.206.217.222] client denied by server configuration: /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 17:13:34 2010] [error] [client 196.206.217.222] client denied by server configuration: /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 17:13:40 2010] [error] [client 196.206.217.222] client denied by server configuration: /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 17:13:44 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 17:06:56 2010] [error] [client 93.3.20.199] client denied by server configuration: /var/www/dimadimaraja.info/web/forum/index.php
[Sat Jul 17 17:06:56 2010] [error] [client 41.251.23.10] client denied by server configuration: /var/www/dimadimaraja.info/web/forum/index.php
[Sat Jul 17 16:49:30 2010] [warn] mod_fcgid: can't apply process slot for /var/www/dimadimaraja.info/web/forum/index.php
[Sat Jul 17 16:49:33 2010] [warn] mod_fcgid: can't apply process slot for /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 16:49:33 2010] [warn] mod_fcgid: can't apply process slot for /var/www/dimadimaraja.info/web/index.php
[Sat Jul 17 16:49:36 2010] [warn] mod_fcgid: can't apply process slot for /var/www/dimadimaraja.info/web/forum/index.php
[Sat Jul 17 16:49:39 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:39 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:43 2010] [warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:23 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sat Jul 17 16:49:24 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:23 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sat Jul 17 16:49:24 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:23 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sat Jul 17 16:49:24 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function
[Sat Jul 17 16:49:23 2010] [warn] (104)Connection reset by peer: mod_fcgid: read data from fastcgi server error.
[Sat Jul 17 16:49:24 2010] [warn] (104)Connection reset by peer: mod_fcgid: ap_pass_brigade failed in handle_request function
any idea please ? a problem with fast-cgi ?

my board : http://www.dimadimaraja.info/forum/index.php

Last edited by 007007; 17th July 2010 at 18:20.
Reply With Quote
Sponsored Links
  #2  
Old 17th July 2010, 17:25
gerr1t gerr1t is offline
Junior Member
 
Join Date: Jul 2010
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have u tried mod_php? might be a decent temp workaround.
Reply With Quote
  #3  
Old 17th July 2010, 17:56
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

mod_php is suitable for small sites, there's no solution for fast-cgi?

after 30min running the server is down

site config :



my phpinfo : http://www.dimadimaraja.info/pret.php
server status : http://www.dimadimaraja.info/status.php

my /etc/apache2/sites-available/dimadimaraja.info.vhost

Code:
<Directory /var/www/dimadimaraja.info>
    AllowOverride None
    Order Deny,Allow
    Deny from all
</Directory>

<VirtualHost *:80>
      DocumentRoot /var/www/dimadimaraja.info/web
  
    ServerName dimadimaraja.info
    ServerAlias *.dimadimaraja.info 
    ServerAlias site.dimadimaraja.info
    ServerAdmin webmaster@dimadimaraja.info

    ErrorLog /var/log/ispconfig/httpd/dimadimaraja.info/error.log
	
    <Directory /var/www/dimadimaraja.info/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>
    <Directory /var/www/clients/client3/web5/web>
        Options FollowSymLinks
        AllowOverride All
        Order allow,deny
        Allow from all
        
        # ssi enabled
        AddType text/html .shtml
        AddOutputFilter INCLUDES .shtml
        Options +Includes
    </Directory>

    # cgi enabled
	<Directory /var/www/clients/client3/web5/cgi-bin>
      Order allow,deny
      Allow from all
    </Directory>
    ScriptAlias  /cgi-bin/ /var/www/clients/client3/web5/cgi-bin/
    AddHandler cgi-script .cgi
    AddHandler cgi-script .pl
    # suexec enabled
    SuexecUserGroup web5 client3
    # Clear PHP settings of this website
    <FilesMatch "\.ph(p3?|tml)$">
        SetHandler None
    </FilesMatch>
    # php as fast-cgi enabled
    <IfModule mod_fcgid.c>
      # SocketPath /tmp/fcgid_sock/
      IdleTimeout 3600
      ProcessLifeTime 7200
      # MaxProcessCount 1000
      DefaultMinClassProcessCount 3
      DefaultMaxClassProcessCount 100
      IPCConnectTimeout 8
      IPCCommTimeout 360
      BusyTimeout 300
    </IfModule>
    <Directory /var/www/dimadimaraja.info/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web5/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
	<Directory /var/www/clients/client3/web5/web>
        AddHandler fcgid-script .php .php3 .php4 .php5
        FCGIWrapper /var/www/php-fcgi-scripts/web5/.php-fcgi-starter .php
        Options +ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>

    # add support for apache mpm_itk
    <IfModule mpm_itk_module>
      AssignUserId web5 client3
    </IfModule>


</VirtualHost>
(I noticed that these errors / slowdown appear only when it s too much people on the forum => 300 members online or more ...)

Last edited by 007007; 19th July 2010 at 11:03.
Reply With Quote
  #4  
Old 18th July 2010, 19:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in /var/www/php-fcgi-scripts/web5/.php-fcgi-starter? You might have to play around with the settings there.
__________________
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 18th July 2010, 19:33
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

here my file

Code:
#!/bin/sh
PHPRC="/etc/php5/cgi/"
export PHPRC
PHP_DOCUMENT_ROOT="/var/www/clients/client3/web5"
export PHP_DOCUMENT_ROOT
# The variable PHP_FCGI_CHILDREN is onyl useful for lighty or nginx as apache 
# mod_fcgi will control the number of childs themself and never use the additional processes.
# PHP_FCGI_CHILDREN=8
# export PHP_FCGI_CHILDREN
PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_MAX_REQUESTS
exec /usr/bin/php-cgi \
 $1
what do I do please ?
Reply With Quote
  #6  
Old 19th July 2010, 12:03
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

mod_fcgi is controlled by these parameters in the vhost file:

IdleTimeout 3600
ProcessLifeTime 7200
# MaxProcessCount 1000
DefaultMinClassProcessCount 3
DefaultMaxClassProcessCount 100
IPCConnectTimeout 8
IPCCommTimeout 360
BusyTimeout 300

you might have to adjust them to match your installation if you have very high loads. there are a lot of google threads about tuning these parameters if you serach for the error message. e.g.

http://www.moe.co.uk/2010/04/12/mod_...cript-headers/
http://gallery.menalto.com/node/82337
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #7  
Old 19th July 2010, 12:16
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Hi,

values that the author has proposed is that which is by default !!

Quote:
This did not work. Eventually we ended up putting the same contents into vhost.conf AND vhost_ssl.conf which appears to have worked. The values we ended up putting in both files were:

Code:
    <IfModule mod_fcgid.c>
    # Sane place to put sockets
    SocketPath /var/lib/httpd/fcgid/sock
    IdleTimeout 3600
    ProcessLifeTime 7200
    MaxProcessCount 1000
    DefaultMinClassProcessCount 3
    DefaultMaxClassProcessCount 100
    IPCConnectTimeout 8
    IPCCommTimeout 600
    BusyTimeout 300
    </IfModule>
he mentioned 2 files vhost.conf AND vhost_ssl.conf : where are they? but as I said these are the default values ...

Last edited by 007007; 19th July 2010 at 12:24.
Reply With Quote
  #8  
Old 19th July 2010, 12:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
Default

Both links work, just click on them. Regarding the file names, the post is not about ispconfig, thats why the named of the files are different. Your vhost file is named /etc/apache2/sites-available/dimadimaraja.info.vhost
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #9  
Old 19th July 2010, 12:34
007007 007007 is offline
Senior Member
 
Join Date: Jul 2010
Posts: 139
Thanks: 5
Thanked 0 Times in 0 Posts
Default

ok

in the first link that the author has proposed is already in default files ispconfig3 I am wrong?

the 2nd link is blocked in my country, you can give me the solutions they found it please?
Reply With Quote
  #10  
Old 19th July 2010, 12:40
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,478
Thanks: 813
Thanked 5,255 Times in 4,121 Posts
 
Default

There are hundreds of posts about this topic available on google. I've just posted you 2 examples. Pleease click here:

http://www.google.com

and enter this search term:

mod_fcgid: ap_pass_brigade failed in handle_request function
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
amavis & ispconfig 3 yalex2000 Installation/Configuration 20 18th February 2010 17:02
mail delivered in mbox patfee Installation/Configuration 8 11th December 2007 13:58
Server big problem... please help :( draven76 Server Operation 3 12th May 2007 18:39
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 03:41.


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