I'm trying to install MediaWiki on a Win2008r2 server, but can't manage to install PHP. Here's what I did:
fastcgi.impersonate = 1
cgi.fix_pathinfo = 1
cgi.force_redirect = 0
open_basedir = "c:\inetpub\wwwroot;c:\PHP\uploadtemp;C:\PHP\sessiondata"
extension = php_mysql.dll
extension_dir = "./ext"
upload_tmp_dir = C:\PHP\uploadtemp
session.save_path = C:\php\sessiondata
In the Handler Mappings:
Created a test page into wwwroot directory: phpinfo.php and set the contents like this:
< ?php phpinfo(); ?>
HTTP Error 500.0 - Internal Server Error
An unknown FastCGI error occured
Detailed Error Information
Module: FastCgiModule
Notification: ExecuteRequestHandler
Handler: PHP via FastCGI
Error Code: 0x800736b1
Requested URL: http://localhost:80/phpinfo.php
Physical Path: C:\inetpub\wwwroot\phpinfo.php
Logon Method: Anonymous
Logon User: Anonymous
Does anyone know what I'm doing wrong here? Thanks.
This is caused by the lack of the VC9 runtime on your machine. You will need to install VC9 runtime from here.
You've missed out a few steps. The error code: 0x800736b1 suggest the DLL is not found. I don't see anywhere where you've entered the environmental settings?
After adding this, restart, launch command prompt and type "C:\PHP>php –info". This checks if PHP is picked up correctly.
Test your php script
Depending on which PHP version you download for windows (non-thread-safe 64 bit or 32 bit, V9 or V11 compiled), you will need to also download and install the appropriate Visual C++ redistributable app (V9 or V11).
If you had previously installed the module mapping in IIS for FastCGI, you will need to uninstall it and the CGI Role Service (and reboot). After installing VC9 or VC11, reinstall the CGI Role Service (this will include the FastCGI service), and reinstall the CGI module mapping to point to the path to php-cgi.exe.
Next, append the path with the full executable: e.g. ;C:\php\php-cgi.exe
. Be sure to include the parenthesis to distinguish the new entry.
Finally, be sure to set the php.ini values as described above, and also set your date.timezone value. You will find the data.timezone acceptable values here.
User contributions licensed under CC BY-SA 3.0