I'm running a Windows 2003/IIS6 server and have just installed the most recent PHP4. For some reason, I'm able to access any files on the server EXCEPT .php files! When I try to access a .php file it's returning a 404 not found error.
Any ideas?
Are you putting the files in the document root of your server? Is it properly installed?
Houdini wrote:Are you putting the files in the document root of your server? Is it properly installed?
I believe it is properly installed. I did set the document root in the php.ini to the folder containing all of the websites on the server. I used the windows installer although it got a script error. I then read the install.txt and installed it manually.
What happens if you were to write and execute this code (name it info.php) by putting it in the root directory and opening your browser with http://localhost/info.php?
<?php phpinfo();?>
Houdini wrote:What happens if you were to write and execute this code (name it info.php) by putting it in the root directory and opening your browser with http://localhost/info.php? <?php phpinfo();?>
404 The page cannot be found.
Hmm. :quiet:
I use Apache but did at one time have IIS running and I believe your document root is c:\inetpub\www this is where your html and php files should be placed. Do HTML files display properly?
I've resolved the issue! I have no idea what it was that fixed it.. but it works!
Maybe just needed a server restart! Or restart the whole computer for new values to be seen.