Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 17th March 2010, 19:25
immobilia immobilia is offline
Junior Member
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Question How To Set Up Apache2 With mod_fcgid And PHP5 On Debian Etch

Hy, y follow your great tutorial, but i'have some problems :

Quote:
[warn] (103)Software caused connection abort: mod_fcgid: ap_pass_brigade failed in handle_request function
Quote:
[notice] mod_fcgid: process 3619 going graceful shutdown, sending SIGTERM
[notice] mod_fcgid: process /path/index.php(3619) exit(communication error), terminated by calling exit(), return code: 0
or

Quote:
[notice] mod_fcgid: process /path/index.php(8109) exit(busy timeout), terminated by calling exit(), return code: 0
With browser result :

Quote:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, administrator@mysite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
I' have sometime this errors, not always... mostly on php pages calling my site himself with php_curl, and others cases...

I use this php-fcgi-starter :

Code:
#!/bin/sh
PHPRC=/etc/php5/cgi/
export PHPRC
export PHP_FCGI_MAX_REQUESTS=5000
export PHP_FCGI_CHILDREN=8
exec /usr/lib/cgi-bin/php
And this Vhost

Code:
<VirtualHost *:80>
  ServerName mysite.com
  ServerAlias www.mysite.com
  ServerAdmin administrator@mysite.com
  DocumentRoot /var/www/mysite/

    ErrorLog /var/log/apache2/mysite-error.log
    CustomLog /var/log/apache2/mysite-access.log common

        <IfModule mod_fcgid.c>
                SuexecUserGroup mysite users
                PHP_Fix_Pathinfo_Enable 1
                <Directory /var/www/mysite/>
                        Options +ExecCGI
                        AllowOverride All
                        AddHandler fcgid-script .php
                        FCGIWrapper /var/www/php-fcgi-scripts/mysite/php-fcgi-starter .php
                        Order allow,deny
                        Allow from all
                </Directory>

# http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html
#               IPCCommTimeout 600

IPCConnectTimeout 300
IPCCommTimeout 600

        </IfModule>

  # ErrorLog /var/log/apache2/error.log
  # CustomLog /var/log/apache2/access.log combined
  ServerSignature Off

</VirtualHost>
Reply With Quote
Sponsored Links
 

Bookmarks

Tags
apache2, fcgi, mod_fcgid, php, php5

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 12:02.


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