[TriLUG] Apache/Passenger/PHP weirdness

Thomas Ingram thomas at ravinggenius.com
Wed May 19 23:22:38 EDT 2010


`apache2ctl -S` doesn't seem to indicate anything broken to me. I
updated the fcgid.conf configuration with the sample below and now the
WordPress homepage comes up. Progress! Other pages still don't load
though. Thanks for the help!

2010/5/19 Cristóbal Palmer <cmp at cmpalmer.org>:
> On a debian or Ubuntu system you're probably looking for /usr/sbin/apache2ctl -S
>
> As for your fcgid.conf, that's looking leaner than it should. Mine not
> quite fills a screen. You should definitely spend some time at
> http://httpd.apache.org/mod_fcgid/mod/mod_fcgid.html instead of taking
> my word for it (esp. for performance tuning, which I'm leaving out),
> but here are some chunks from mine for a box that has WordPress on it:
>
> --- Begin ---
>
> # This is the Apache server configuration file for providing FastCGI support
> # through mod_fcgid
> # Documentation is available at http://fastcgi.coremail.cn/doc.htm
>
> LoadModule fcgid_module modules/mod_fcgid.so
> # Use FastCGI to process .fcg .fcgi & .fpl scripts
> # Don't do this if mod_fastcgi is present, as it will try to do the same thing
> <IfModule !mod_fastcgi.c>
>    AddHandler fcgid-script fcg fcgi fpl
> </IfModule>
> # Sane place to put sockets and shared memory file
> SocketPath run/mod_fcgid
> SharememPath run/mod_fcgid/fcgid_shm
> # let's use this for php, shall we?
> AddType text/html .php
> DirectoryIndex index.php
> IdleTimeout 240
> <Files *.php>
>   SetHandler fcgid-script
>   Options +ExecCGI
>   FCGIWrapper /usr/bin/php-cgi .php
> </Files>
> # allows basic auth to work
> RewriteEngine on
> RewriteCond %{HTTP:Authorization} ^(.*)
> RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
>
> --- End ---

-- 
Thomas Ingram ><>
Raving Genius™ - foaming at the brain™
919 449.6305
thomas at ravinggenius.com
http://www.ravinggenius.com/
http://www.isittheweekendyet.com/



More information about the TriLUG mailing list