Wolverine68 Posted July 4, 2011 Share Posted July 4, 2011 I just installed PHP. To confirm it's been installed I created the following test file as index.php: <html> <head> <title>My First PHP Page from my Local Server</title> </head> <body> <?php print "<h1>Hello World</h1>"?> </body> </html> I then saved the file to the root. But, when I try to display the web page, http://localhost/index.php I get the error, "404 - File Not Found". I saved it to "C:\ ". That is the "root", right? Link to comment https://forums.phpfreaks.com/topic/241089-saving-to-the-web-root-to-confirm-php-installation/ Share on other sites More sharing options...
trq Posted July 5, 2011 Share Posted July 5, 2011 I saved it to "C:\ ". That is the "root", right? That is your OS's root, not necessarily your web servers though. You will need to check your Apache config (usually httpd.conf) file (assuming your using Apache). Link to comment https://forums.phpfreaks.com/topic/241089-saving-to-the-web-root-to-confirm-php-installation/#findComment-1238400 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.