lightningrod Posted February 9, 2007 Share Posted February 9, 2007 I have posted this question in another section as well, but maybe this is where it belongs. I have WinXP Pro SP2, IIS 5.1. I used the PHP 5.2 Windows installer. It went through all the motions, made the proper changes to IIS, and all that. I made the classic test file "test.php" and put it in the C:\Inetpub\wwwroot folder. When I type in my browser (IE7) http://localhost/test.php all I get is 404 error (page can not be found). If I type in my domain name or IP address (instead of "localhost") I get the correct php info page. Why would "localhost" not work? And how can I fix it? And does it matter? My next step is to use PHP to work with MySQL for web database, but I have to know if the PHP is working properly with IIS. Quote Link to comment https://forums.phpfreaks.com/topic/37764-iis-51-php-52-on-winxp-pro/ Share on other sites More sharing options...
whitekolovrat Posted February 9, 2007 Share Posted February 9, 2007 check your C:\WINDOWS\system32\drivers\etc\hosts file, you may need to add a line 127.0.0.1 localhost in there, if you don't have it, or it is commented out with # Quote Link to comment https://forums.phpfreaks.com/topic/37764-iis-51-php-52-on-winxp-pro/#findComment-181074 Share on other sites More sharing options...
worldworld Posted February 14, 2007 Share Posted February 14, 2007 See here... Quote Link to comment https://forums.phpfreaks.com/topic/37764-iis-51-php-52-on-winxp-pro/#findComment-184401 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.