Noob question coming at ya'. I'm a programmer, but am new to web development. I want to build a web site using PHP and MySQL. I just downloaded and installed WinLAMP under Windows 7 (I'll be using a hosting service when the site goes live, I just want to develop it locally). I then wrote a simple PHP page like this: <HTML> <HEAD> <TITLE>Hello</TITLE> </HEAD> <BODY> <?php echo 'Hello' ?> </BODY> </HTML> When I pointed my browser to it, it just displayed a blank page. Obviously, Apache isn't "serving" this page to me through my browser. When I try to start Apache, it tells me that it's already active. Do I need to put this page in some special folder under Apache? Or set some configuration setting in Apache so that it will display this page when I view 'localhost' in my browser? Thanks for any help you can give me
Im sure you have a document root for apache, like a public_html directory. I never messed with apache on windows but there has to definately be a doc root..
Yes. I saved my page as index.php in C:/Apache2/htdocs But when I type localhost, I still get the page that says Apache was installed successfully, instead of my test PHP page.
somewhere you have an idex page that is showing that, do a search for index.xxx in you apache2 directory