ayaxian Posted July 25, 2008 Share Posted July 25, 2008 I'm on a Win XP SP2. I've installed Apache 2.2.9, PHP 5.2.6 (they both are shown in the status area of the Apache Service Monitor window) and MySQL 5.0; but I can't still test a simple php file. I stopped and restarted Apache after installing PHP. I entered the 'http://localhost/' in ie7 and got the 'It works' message. First attempt was trying to test directly from Dreamweaver and I got a 404 error (file not found). I copied the file to the root directory ('c:\inetpub\wwwroot\myfile.php') and enter the path 'http://localhost/myfile.php' in the address bar again in ie7 and got the same error. Read an article about configuring Apache to work with PHP and found some lines that should be added to the 'httpd.conf'. Checked the .conf file and the lines were already there. Now I have no idea what else to do so any help is very welcome Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted July 25, 2008 Share Posted July 25, 2008 Unless you have re configured Apache to use a different document root, c:\inetpub\wwwroot is for IIS. With Apache you should place it in Apaches htdocs folder. This is not a PHP configuration issue. 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.