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