Hi, I am new to PHP and have inherited a program that I can't get to work correctly on a new machine. I know that the code works, because I have it running on another machine currently. I downloaded the latest PHP binary for Windows 2000 Pro (PHP 4.3.1 installer) and installed it on the new machine. I grabbed the php.ini file from the machine that the program works on (let's call it "Good Machine") and replaced the php.ini file on the machine that the program is NOT working on (let's call it "Bad Machine"). PHP is working on Bad Machine as you can see that the phpInfo() function is working here: http://24.199.172.178/phpInfo.php
But if I go to the main directory where the program resides, I get a "CGI Error" message. See for yourself: http://24.199.172.178/ebay/index.php
Here is what I have tried so far based on other similar posts:
Modified my IIS configuration by changing the application used (PHP.exe) to the php4isapi.dll file. I also modified the php.ini file (\%systemroot%\php.ini) by uncommenting the "extension=php_iisfunc.dll" comment. This gave me another error, "Cannot load specified module" or something very close to that. Which is weird because I commented out all the modules, including the php_iisfunc.dll to see which one it was complaining about.
I set cgi.force_redirect = 1 in the php.ini file. This gave me an error, so I changed it back to cgi.force_redirect = 0.
I don't really know where to begin debugging the sucker since I know the code works on Good Machine. Is there possibly some all inclusive way of moving over the configuration of a PHP installation on one machine to another? Just in case you need any of my specific information on Bad Machine, here it is:
-OS: Windows 2000 Pro
-PHP Version: 4.3.1 (Installer Version)
-Extensions needed: php_java.dll, php_mssql.dll
-Here is a copy of the php.ini file on Good Machine:
http://24.199.172.178/php_ini.txt
Any pointers would be most appreciated.
Thanks,
Aaron