Partner and Community Forums
PHP Web Platform Installer
Last post Dec 21, 2013 07:20 AM by ServerIntellect_JB
Nov 26, 2013 11:35 PM|Waltoz|LINK
I have used the MS Web Platform installer to install PHP and FASTCGI.
Everything looks like it worked succesfully but when running a test html page with PHP code to do a HELLO world or PGP info the page is blank.
<?php echo "Hello World!"; ?>
< title>PHP Test</title>
< ?php phpinfo(); ?>
I made sure they were in C:\INETPUB\WWWROOT. The page pops up but no response from PHP.
I check all the old posts and the FASTCGI.INI is correct.
[PHP] ExePath=C:\Program Files\PHP\v5.4\php-cgi.exe
The FASTCGI.js is there. I even ran the two command line scripts and the out put seems correct from both (given the old results were prior to PHP 5.4)
cscript.exe C:\inetpub\AdminScripts\adsutil.vbs GET w3svc/DefaultDoc
DefaultDoc : <STRING> "Default.aspx, Default.htm, Default.asp, index.htm, index.php"
cscript.exe C:\inetpub\AdminScripts\adsutil.vbs GET w3svc/ScriptMaps | findstr php
The Info works if I run PHP.exe -I. I just cant get any results to my webpage.
I check the extensions and PHP = FASTCGI every where I looked.
Dec 21, 2013 07:20 AM|ServerIntellect_JB|LINK
When you install PHP via the Web Platform Installer, it will also install the PHP manager module for IIS 7 and above.
If this is the case, please got the the php manager configuration section of your site and take a screenshot so we can review the base configuration.
As for the test page, it is sufficient to just erase all the content and replace it with the following line:
<?php phpinfo(); ?>
It does pretty much the same thing as your example but eliminates any variables other than php.
Also, I'm assuming this was already done, but if not, make sure the file has a php extension, as the handler mapping will not apply to it otherwise.
Hope this helps, and if you can get us that screenshot, I'm sure we'll be able to help you resolve it.