Fastcgi and wordpress

Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-17 03:58:00

Hi. This is my first post here :D

My issue is about enabling fastcgi module in wordpress according this wiki ling:
http://wiki.dreamhost.com/index.php/PHP_FastCGI
it doesn't work (error 500). I have done it a lot of times but i think it is about that module or the .htaccess

Can anyone help me??

The script php5-wrapper.fcgi (executable) is:

#!/bin/bash
export PHP_FCGI_CHILDREN=3
exec /dh/cgi-system/php5.cgi

And the .htaccess is:

Options +ExecCGI AddHandler fastcgi-script fcg fcgi fpl
AddHandler php5-fastcgi .php
Action php5-fastcgi /php5-wrapper.fcgi
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress


Thanks, do you know what is wrong? I want to enable it to have a lower CPU consumption


Re: Fastcgi and wordpress

Posted by: sdayman
Posted on: 2007-06-17 06:21:00

That line with Options +ExecCGI AddHandler fastcgi-script fcg fcgi fpl
needs to be split:

Options +ExecCGI
AddHandler fastcgi-script fcg fcgi fpl

...all the rest

That should fix it.

-Scott

Re: Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-17 09:37:00

Sorry. It is mistake i have had here. It is splitted in the .htaccess

Re: Fastcgi and wordpress

Posted by: sdayman
Posted on: 2007-06-17 10:11:00

I have WordPress running with PHP5 FastCGI and it's not giving me any errors. My files look like yours. But I found this discussion:
http://markjaquith.wordpress.com/2006/10/28/some-wordpress-205-users-reporting-server-500-error/

-Scott

Re: Fastcgi and wordpress

Posted by: sdayman
Posted on: 2007-06-17 10:14:00

Oh yeah, and if you want to lower CPU consumption, which gets you a faster site, enable WP-Cache in your WP Admin Plugins panel.

-Scott

Re: Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-17 11:41:00

No. It makes slower my site. I have just disabled wp-cache.
I prefer using fast-cgi for a better performance

Re: Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-17 11:45:00

Thanks. But, i use Wordpress 2.2 and if possible it hurt my DB. I am going to see the content of this plugin to watch what it does.

Re: Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-17 12:38:00

I have checked the php plugin and it is ok. I am going to try it tomorrow. Thanks

Re: Fastcgi and wordpress

Posted by: sdayman
Posted on: 2007-06-17 16:00:00

I'm also running WordPress 2.2 (from the One-Click install).

Uh, in Manage Domains from the DreamHost control panel, do you have FastCGI Support turned on? It's not on by default.

-Scott

Re: Fastcgi and wordpress

Posted by: magarto
Posted on: 2007-06-18 10:12:00

This must be a issue in fast-cgi module in my hosting :@
Thanks everybody

Re: Fastcgi and wordpress

Posted by: sdayman
Posted on: 2007-06-18 20:19:00

Or maybe it's this glitch:
http://www.dreamhoststatus.com/2007/06/18/500-internal-server-errors/

-Scott

Tags: php5fplfcgiwordpressdreamhosthtaccesswikifcgoptions execcgicgi systemerror 500dhexecutableexec