No - it's not a "DokuWiki" problem, I've seen the same error with WordPress, CMSMS and various other CMS/Wikis. It only occurs with IIS.
Try running
php-cgi from the CLI (you'll find it works).
It's likely either:-
1. The PHP extension directory path (
extension_dir directive) in
php.ini is incorrect. Check that path (
C:\Program Files\PHP\v5.6\php-cgi.exe) - you may find it needs to be something like "
C:\PHP\ext" in PHP.ini (I don't know where/how you installed PHP - and you are running an old version of PHP, but it should be fine with that old version of DokuWiki). Usually this problem spits out a more detailed error message than what you've quoted e.g.
Detailed Error Information Module FastCgiModule Notification ExecuteRequestHandler Handler PHP_via_FastCGI Error Code 0x000000ff Requested URL http://localhost:80/index.php Physical Path C:\inetpub\wwwroot\index.php Logon Method Anonymous Logon User Anonymous I'm about ready to give up.
2. You need to comment out "
extension=php_gd.dll" in
php.ini
3. The Registry path is incorrect (check
HKEY_LOCAL_MACHINE\SOFTWARE\PHP\IniFilePath)
4. It's an IIS "Handler Mapping" problem - solution is similar to the first solution I've quoted above, except to resolve it:-
Open the IIS Manager and find the "Panel" marked "Handler Mappings".
While in the "Handler Mappings" select create a new mapping.
For the new mapping select the wildcard "*.php" then for the "executable" browse to where the "php-cgi.exe" is located enclose the executable name in double quotes ""php-cgi.exe"" then select in the method to use select the "Fast-CGI" then go to the "Restrictions" "Button" then select each "Tab"
Mapping ( file and the check box selected)
Access( file check box).
Verbs (type in GET,HEAD,POST).
Close the "button" and the dialog, it then will prompt with do you want to all this press the "yes".
Exit the "Handler Mapping" dialog.
While still in the IIS manager find the "Panel" titled "Fast CGI" open the "panel" and browse to where the "php-cgi.exe" is located. You then will have an additional dialog that has a label "Monitor Changes to file" - select this option and browse to where the "php.ini" is located.
Restart the web server.
5. Given the version of PHP you are running it
may be an issue with
VC++
A good reference is
http://learn.iis.net/page.aspx/246/using-fastcgi-to-host-php-applications-on-iis-7/