![]() |
|
#1
|
||||
|
||||
Help running Apache2 on windows XPI've got Apache2 running as a service on windows XP, the only problem is that when I try and access localhost IE comes up with the page not found error.
Any help would be greatly appreciated! Cheers |
||||
|
#2
|
|||
|
|||
|
Ya get linux instead all your problems forever more will be sorted windows has almost had it's time
|
|
#3
|
||||
|
||||
|
Hello gardolas,
Search your filesystem for a file named HOSTS, look inside it to see that it has this inside it: Code:
If you can find the file and it has that line it already, then you must check the apache error logs. That will usually tell you where and what is the problem. It may be also that your HOSTS file has been 'disabled', i.e. it is renamed to HOSTS.SAM or something like that. If that's it, you can just rename it back. Quote:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#4
|
|||
|
|||
|
First of all, that file hosts is actually called hosts.sam (short for sample). In order for Apache to run it seems to need that file renamed as just hosts (with no extension). As I use Apache on my own machine to test web sites locally, and learn sql etc I have to rename it with a batch file when I want to play, then rename it back to hosts.sam when I go on the internet (otherwise it tries to find my sites on my machine instead of going out to the internet to find the live version). Secondly I still cant get IE to find anything at all (like you) but Opera works perfectly. I love MSoft cos they have made my life easy, but Opera works fine in this instance and IE doesn't.
Quote:
|
|
#5
|
||||
|
||||
|
I hope you were not trying to tell me this... because I only wrote the article more than 3 years ago
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#6
|
|||
|
|||
Subservient one pleads and queries furtherOf course not, Oh Senior Member! It took me absolutely ages to understand simple nuances in those supposedly clear instructions they give you. I reckonned it might help if I was absolutely specific - to the ORIGINAL guy who asked!
I asked on this forum and others for help running Apache under XP and nobody had any answers to the problems til I worked them out for myself. For instance: Virtual hosts ask for the domian name as does the hosts file. It never occurred to me for ages that in fact you have to specify http://www.domain.com AS WELL AS domain.com in hosts. I thought a domain name was without the www! Incidentally (running all this locally to test sites out) - I open a Command Window, navigate and run Apache (which runs in the foreground so I get no further prompts) I then open another DOS window to run mySQL server - which does the same, then I open another window to run msql client - how do I write a batch file to do all 3 things autonatically? As I've written it, it opens a window, runs Apache and then sits there not going on to the second line of the batch file to start mysql server. Cheers! Quote:
|
|
#7
|
||||
|
||||
|
Quote:
But how do you make this work with your virtual hosts setting in the httpd.conf file? Are you using SERVER ALIAS too? Quote:
I don't use a batch file, instead I use shortcuts on my Desktop. I have one for each...
It's as uncomplicated as that with Windows ME but I suppose it's quite different with Windows XP. This is why I usually don't reply to questions that have to do with WinXP - simply because I wouldn't know what I am talking about... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#8
|
|||
|
|||
|
Quote:
Jon] It really is very very little different. I even run things in Consoles because I dont want everything starting up when I start the machine, and XP's miracle (??) is that it runs services (which I dont want) and doesn't need Consoles. |
|
#9
|
||||
|
||||
|
The HOSTS file is all present and correct which is weird, yet still no response!
I have got everything working using Apache Friends xampp though so whatever that does seems to have done the trick! Darn windows XP, windows 9X/Me vastly superior (I've got apahe/PHP/MySQL working fine on my Me Laptop!) Cheers |
|
#10
|
||||
|
||||
|
When you say "Apache Friends xampp" did you mean this: http://www.apachefriends.org/index-en.html?
The reason I ask is because someone else looking to troubleshoot a similar problem such as yours will at least have an alternative solution... __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
Review: Gel laptop cooling pad by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please i need help in Apache on windows xp | leacoco | Apache Web Server Forum | 33 | 05-Feb-2008 05:48 |
| problems enablin drives on windows xp pro | indian4evah003 | Computer Hardware Forum | 5 | 04-Dec-2003 14:40 |
| Apache on Windows XP and passing variables | Jos Elkink | Apache Web Server Forum | 4 | 21-Nov-2003 03:21 |
| Critics Please- New Computer Specs | BobbyDouglas | Computer Hardware Forum | 4 | 06-Sep-2003 01:19 |
| Scan your Windows XP for Security Holes | JdS | Computer Software Forum - Windows | 1 | 03-Feb-2002 13:46 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The