Hello. I have performed a new install of PHP on a Windows 2000 Pro machine running IIS 5.0. The system has been used for a few years as a web server hosting a ASP.Net website and works fine. I downloaded and installed PHP 5.2.11, PECL 5.2.6 extensions, configured IIS, updated the php.ini file, and restarted the server. I created a test file (phpver.php and placed it in c:\inetpub\wwwroot) with the following code:
<?php
phpinfo();
?>
When I open the file with a web browser, it works correctly and I get all the detailed information about the PHP version and configuration. So, theoretically, PHP should be properly installed.
Now for the problem: I have a customer website that built in PHP and is being migrated to the subject server. The entire contents of the site are being placed in c:\inetpub\wwwroot\dta folder. However, when I try to open any of the .php files copied from that website I receive an HTTP 500 error. I don't think it's a folder or file permission error, as I've reviewed permissions and everything appears to be in order. I also copied my phpver.php test file into the same folder as the other migrated files and can open it without a problem. So, there must be something wrong in the page(s) being displayed.
I'm attaching a copy of the index.php file. Hopefully, it will make sense to someone.
One more thing: I am new to PHP!
Thank you in advance for your kind assistance.
Greg