lightningrod Posted February 8, 2007 Share Posted February 8, 2007 I have installed PHP 5.2 on a WinXP Pro/IIS 5.1 server. I followed the installation instructions for manual install, but couldn't get it to work. I uninstalled PHP and downloaded the windows installer (CGI) version. It installed good and configured my IIS OK, but when I try to view my test file in IE using http//localhost/phpinfo.php I get 404 error. If I browse the phpinfo.php using my web address instead of "localhost" (using something like http://www.mydomainname.com/phpinfo.php) I get the correct PHP info screen. Why doesn't the "localhost" work? Quote Link to comment https://forums.phpfreaks.com/topic/37623-php-52-on-win-xp-pro-iis-51/ Share on other sites More sharing options...
wildteen88 Posted February 8, 2007 Share Posted February 8, 2007 localhost might be pointing to a different root folder compared to your web address. You will have to look into IIS's configuration. I am not experienced with IIS so I can't really help you sorry. Quote Link to comment https://forums.phpfreaks.com/topic/37623-php-52-on-win-xp-pro-iis-51/#findComment-180039 Share on other sites More sharing options...
lightningrod Posted February 8, 2007 Author Share Posted February 8, 2007 How can you tell where localhost is pointing? (I also tried typing into my browser 127.0.0.1/phpinfo.php and it didn't see it either). IIS is set up with c:\Inetpub\wwwroot as the home directory. Anyway, how important is it that localhost sees this file? Apparently my PHP is installed and running correctly or I would not get the info screen at all. I have MySQL installed also and it is working. I want to be able to communicate with MySQL through PHP in a web setting. Quote Link to comment https://forums.phpfreaks.com/topic/37623-php-52-on-win-xp-pro-iis-51/#findComment-180172 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.