thepip3r Posted May 9, 2007 Share Posted May 9, 2007 I was on PHP 5.0/Windows 2003. A security requirement made me need to upgrade from PHP 5.0 to PHP 5.2. Apparently this was a big change. I'm having problems simply getting PHP back up and running on my server. I initally tried to upgrade my PHP installation described on the PHP site here. When that didn't work, I uninstalled "the upgrade" which removed all the files written to my C:\Program Files\PHP directory but left my original 5.0 (C:\PHP) directory and all of it's files. So I figured I'd try to just delete and start from scratch. So I deleted all files related to PHP: c:\php, c:\program files\php, php.ini in System folder, php dlls in System folder, Web Service Extensions > PHP (Allowed) entry. I then reinstalled the php-5.2.2-win32-installer.msi. I've tried both the CGI and the ISAPI IIS install and I can't get either to work. I've verified that after the installs, my c:\program files\php exists, my php.ini *appears* to be set up correctly in my c:\program files\php directory, my Web Service Extension showed the appropriate php-cgi.exe or the .dll for ISAPI. And now I simply can't even get the phpinfo(); function to report back the proprer information. -- also verified that c:\program files\php is in my PATH statement. The install instructions on the PHP site make it sound simple but can't seem to get it to work. Am I missing something obvious?? Anyone have any pointers? Please help. TIA Quote Link to comment Share on other sites More sharing options...
thepip3r Posted May 9, 2007 Author Share Posted May 9, 2007 haha i just noticed. all the places i say "SYSTEM", i mean the c:\Windows folder and the error I'm getting is the 404 Page cannot be displayed like it's not interpreting the page w/PHP at all. Quote Link to comment Share on other sites More sharing options...
corbin Posted May 13, 2007 Share Posted May 13, 2007 Sounds to me like an incorrect document root... If you do something like page.html does it load? Quote Link to comment Share on other sites More sharing options...
thepip3r Posted May 14, 2007 Author Share Posted May 14, 2007 the default iisstart.htm runs fine. I've looked in my PHP.ini at my doc_root and it's blank. All the comment above it says it's "the root of the PHP pages" -- does that mean the location to my PHP directory or the folder where all my .php pages are stored? It also says you should only set this if you're running PHP as CGI in web servers other than IIS... It also says that the alternative is to use the cgi.force_redirect config but the comment for that parameter says, "You can safely turn this off for IIS, in fact, you MUST." Quote Link to comment 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.