Partner and Community Forums
IIS 7 PHP 5.3.6 require statement generates server error 500
Last post Mar 07, 2013 09:52 AM by pvfpvf
Feb 19, 2013 09:26 AM|pvfpvf|LINK
I just installed IIS on my Win 7 professional, and manually configured it to use my pre-existing php-cgi.exe using fastCGI.
An index.php file in wwwroot folder saying
works fine. If I now add
where foo.php is also in wwwroot folder, it fails with server error 500. Also, in IIS Manager, if I go to Default web site/Basic Settings and click on TEST SETTINGS it says:
If I right-click on Default web site and go to Permissions it shows:
In any case, if php can read index.php surely permissions could not stop it reading foo.php from same folder. My php.ini has include_path=".;c:\php\includes" and I tried putting foo.php in the \php\includes folder also but that doesn't work.
Finally, despite having Detailed Errors set and error_reporting =E_ALL & ~E_DEPRECATED, I cannot get anything except the standard 500 server error message out of IIS.
Help please! P.S. Please don't say "Why don't you use the Microsoft Web Platform Installer?" because, as far as I can see, the latest version will only install Windows Azure (I have no idea what Azure is and I don't want to know, but I assume it isn't IIS+PHP+MySQL.)
Mar 07, 2013 09:52 AM|pvfpvf|LINK
I solved this letting WPI reinstall php for IIS.