WordPress in PHP via FastCGI- Error Handling, Permalinks Structure

10 Jul
2008
Delicious

If You are Installing PHP using FastCGI and Your WordPress gives you a 500 Error- Internal Server Error, Make sure that you have already established a server connection to mysql or mssql. Open I.E and then go to Tool–>Internet Options–>Click on Advanced Tab and then Un-check Show Friendly Error HTTP Messages. Click Apply. Now Refresh your page to see what is actually going on.

Also IIS does not support mod_rewrite so your permalink structure will look weired, here is the an example “/index.php/%year%/%monthnum%/%day%/%postname%/”. Inorder to have it such as the need for index.php is not required and it looks as if you were running it on Apache. Create a PHP file called permalinkhandler.php, save it in the root folder and include this code

 
<?php
$_SERVER['REQUEST_URI'] = substr($_SERVER['QUERY_STRING'], strpos($_SERVER['QUERY_STRING'], ':80')+3);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>

Navigate to your site on the Server Manager on Windows and go to Error Pages, find Status Code 404 and point to that php file. Make sure you put it under the Execute URL on this site. Now go back to wordpress and chose the permalink structure you would like.

Incoming Search Terms :fastcgi error , wordpress fastcgi , wordpress fastcgi error , fastcgi error wordpress , php_via_fastcgi 0x00000000 , php fastcgi error , wordpress and fastcgi , shopp fastcgi error wordpress , FastCGI Error php , PHP_via_FastCGI 500 error

Share this story with a friend !
Join SherifAbdou's Rss Feed Stumble This Article! Add this to your Delicious Bookmarks! Digg this story ! Add this story to Reddit ! Tweet This Brush


1 Response to WordPress in PHP via FastCGI- Error Handling, Permalinks Structure

Avatar

TealitaitinkNo Gravatar

August 2nd, 2008 at 6:47 pm

Very nice!!

Comment Form