thepip3r Posted May 11, 2007 Share Posted May 11, 2007 I tried putting this into the PHP Installation forum but don't get any answers or suggestions there so I'm going to try it here and hope it doesn't get moved. I'm on a Windows 2003/PHP 5.22 setup. I'm TRYING to upgrade from PHP 5.02 which did work on my server and quite well. I followed the upgrading and installation instructions layed out on the PHP.net set -- I still can't get it to work. The install dumped all the PHP related files under "c:\program files\php". I've ensured that path is in my windows PATH statement for my env vars. I've also verified that "c:\program files\php\php-cgi.exe" is in my Web Service Extensions listing in IIS and the status is set to "Allowed". From the command-line, I can execute my "test.php" file that has the phpinfo(); info function in it and it works fine. It's only when I try to use my web browser to access the php file that I get the 404 error, "page cannot be displayed". I know that IIS in general is working ok because I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine. It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error. My web server just doesn't seem to be interpretting PHP files anymore and I can't figure out why. Please help, this is really starting to bug me. Quote Link to comment https://forums.phpfreaks.com/topic/50951-php-pages-getting-404-error-page-cannot-be-displayed/ Share on other sites More sharing options...
AV1611 Posted May 11, 2007 Share Posted May 11, 2007 I can point it to the default http://servername/iisstart.htm and it resolves to that page just fine. It's only when I change it to http://servername/test.php (which has my phpinfo()) function in it when I get the 404 error. If that statement is true, perhaps you don't have the test.php file in the correct file for html files on IIS? I think it's the /wwwroot directory? If that's not it, then you either have to adjust PHP.INI or IIS config so they are on the same page "no put intended" I find it best to leave PHP in the default directory c:/php but you don't have to obviously... Quote Link to comment https://forums.phpfreaks.com/topic/50951-php-pages-getting-404-error-page-cannot-be-displayed/#findComment-250672 Share on other sites More sharing options...
thepip3r Posted May 11, 2007 Author Share Posted May 11, 2007 But I do.... my test.php file is under c:\inetput\wwwroot\test.php just like my c:\inetpub\wwwroot\iisstart.htm file is and like i said... the HTM file reads like it should but the test.php file doesn't display. The only reason I'm using C:\program files\php instead of c:\php is because that's what the PHP 5.22 installation notes recommend. Quote Link to comment https://forums.phpfreaks.com/topic/50951-php-pages-getting-404-error-page-cannot-be-displayed/#findComment-250680 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.