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
[the right place to look]
tail -f /var/log/apache2/error.log
Comments
Post new comment