User login

Manually setting up fcgi wrapper permissions

ssh root@agaric-prod
vi /home/members/agariclabs/sites/agaric.com/.red/apache2/apache.conf

Add these two lines inside the VirtualDirectory:

        FCGIWrapper /home/members/agariclabs/sites/agaric.com/bin/php-cgi .php
        SuexecUserGroup agaric agaric

Then copy the bin directory with php-cgi in it from another project and set the permissions to the same user group defined there.

Old way

# This file was created by Red. Best not to modify
# by hand unless you know what you're doing.
<VirtualHost *:80>
        # web config for agaric.com
        ServerName agaric.com
        ServerAlias www.agaric.com agaricdesign.com www.agaricdesign.com
        SuexecUserGroup agaric agaric
        DocumentRoot /var/local/drupal/agaric/web
        CustomLog /home/members/agariclabs/sites/agaric.com/logs/web.log combined
        ErrorLog /home/members/agariclabs/sites/agaric.com/logs/error.log
        ScriptAlias /cgi-bin /home/members/agariclabs/sites/agaric.com/cgi-bin

        <Directory /var/local/drupal/agaric/web>
                AddHandler fcgid-script .php
                FCGIWrapper /var/local/drupal/fastcgi-agaric/php5-cgi .php
                Options FollowSymlinks Indexes MultiViews ExecCGI
                Include /var/local/drupal/agaric/web/.htaccess
                AllowOverride None
                Order allow,deny
                allow from all
        </Directory>
</VirtualHost>

Copy a fast-cgi directory and rename it.
cd /var/local/drupal/
cp -pr fastcgi-alreadythere fastcgi-agaric
chown -R agaric:agaric fastcgi-agaric

/etc/init.d/apache2 force-reload

The Blatant Error this Corrects: 500 Internal Server Error

Internal Server Error

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

Please contact the server administrator, [no address given] 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.
Apache/2.2.9 (Debian) mod_ssl/2.2.9 OpenSSL/0.9.8g WebAuth/3.6.0 Server at my.agaric.com Port 80

As it appears in the log:

[apparently, the wrong place to look]
tail -f /home/members/agariclabs/sites/my.agaric.com/logs/error.log

[Thu Sep 23 10:43:33 2010] [error] [client 209.6.110.26] SoftException in Application.cpp:302: GID of script "/var/local/drupal/oa/web/index.php" is smaller than min_gid
[Thu Sep 23 10:43:33 2010] [error] [client 209.6.110.26] Premature end of script headers: index.php

[the right place to look]
tail -f /var/log/apache2/error.log

[Thu Sep 23 11:21:42 2010] [notice] mod_fcgid: call /var/local/drupal/oa/web/index.php with wrapper /var/local/drupal/fastcgi-oa/php5-cgi
suexec policy violation: see suexec log for more details
[Thu Sep 23 11:21:48 2010] [notice] mod_fcgid: process /var/local/drupal/oa/web/index.php(17814) exit(communication error), terminated by calling exit(), return code: 120

Searched words: 
take care of the permissions of the fcgi wrapper FastCGI server permissions error

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <small> <h2> <h3> <h4> <h5> <h6> <sub> <sup> <p> <br> <strike> <table> <tr> <td> <thead> <th> <tbody> <tt> <output>
  • Lines and paragraphs break automatically.

More information about formatting options

By submitting this form, you accept the Mollom privacy policy.