
17th July 2010, 17:22
|
|
Senior Member
|
|
Join Date: Jul 2010
Posts: 123
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
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.
|

17th July 2010, 17:25
|
|
Junior Member
|
|
Join Date: Jul 2010
Posts: 14
Thanks: 0
Thanked 1 Time in 1 Post
|
|
Have u tried mod_php? might be a decent temp workaround.
|

17th July 2010, 17:56
|
|
Senior Member
|
|
Join Date: Jul 2010
Posts: 123
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
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.
|

18th July 2010, 19:10
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,685
Thanks: 1,899
Thanked 2,599 Times in 2,448 Posts
|
|
What's in /var/www/php-fcgi-scripts/web5/.php-fcgi-starter? You might have to play around with the settings there.
|

18th July 2010, 19:33
|
|
Senior Member
|
|
Join Date: Jul 2010
Posts: 123
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
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 ?
|

19th July 2010, 12:03
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
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
|

19th July 2010, 12:16
|
|
Senior Member
|
|
Join Date: Jul 2010
Posts: 123
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
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.
|

19th July 2010, 12:25
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
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
|

19th July 2010, 12:34
|
|
Senior Member
|
|
Join Date: Jul 2010
Posts: 123
Thanks: 5
Thanked 0 Times in 0 Posts
|
|
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?
|

19th July 2010, 12:40
|
|
Super Moderator
|
|
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 32,066
Thanks: 697
Thanked 4,248 Times in 3,260 Posts
|
|
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
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 02:31.
|
Recent comments
1 day 4 hours ago
1 day 6 hours ago
1 day 18 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 7 hours ago
2 days 17 hours ago
2 days 19 hours ago
3 days 3 hours ago
3 days 4 hours ago