Need help setting up Apache Server for Windows

theSheWolf

Newbie
Joined
Aug 30, 2012
Messages
5
Reaction score
0
Hey, so I've setup apache and php on ubuntu before but I didn't like ubuntu and i got rid of it. I'm currently running windows 7. I've been trying to setup apache to run on windows however things aren't wrking out. At first, I was able to save files to htdocs but then when I started apache again, it said that it could not find the httpd.conf file. However, the httpd.conf file was right there and perfectly fine. So, I went back to the installer and opt it to repair. After it repair, the httpd.conf file problem was solved however, I now cannot save files to htdocs. If i save a file called hi.php and in my browser type 'localhost/hi.php' I'll get a chrome cannot find this page or whatever. However, the apache server does work as i do get the default "it works" page when just going to localhost. The link to htdocs is perfectly fine so I don't know why this is happening.

Also, strangely enough, firefox and opera don't seem to be able to run apache at all...when i type localhost into it, it doesn't even give me an "it works". It just tells me that they cannot find the page. So, I would really appreciate some help. Thanks.
 
localhost is just an alias for loopback 127.0.0.1.Make sure you have added that in hosts file. Also check if your port 80 is free. Why dont you save yourself a troubles and install something like wamp?
Still i dont get it how come one browser "see" http://loclahost and others not.Check proxy settings.
Sorry i coldnt be of more help :)
 
You may have to use http://localhost:8080/filename.php, This is because the default config file uses 8080 as the port number... It's better if you install apache & php using xampp. It'll take care of the config file issues by itself.
 
Last edited:
I'm still getting this error that says google chrome cannot connect to localhost/index/
what is wamp? Can i practice mysql and php on that? I might be interested in that.
 
I'm still getting this error that says google chrome cannot connect to localhost/index/
what is wamp? Can i practice mysql and php on that? I might be interested in that.

WAMP stack= Windows Apache MySQL PHP

Yes, you can use a local installation to practice and test things out. There's a commercial option as well, called 'WAMP Developer Pro'. It's kinda nice, because it takes care of vhosts and whatnot from a central console.
 
Last edited:
www.ampps.com would probably make your life easier, it's like a desktop cpanel with the softalicious installer built-in (and free)
 
Agreeing with everyone here, any sort of WAMP bundle would be better than trying to do this manually. USBWebServer is portable and what I use for app development on the go (some of the other ones feel bloated, personally).
 
xampp, wamp or any of that... or ditch the os'es living in the 1980's(vindouz, macoops) and deal with linux....
 
Back
Top