Author |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Tue 28 Sep '10 16:12 Post subject: New user of Apache server-cannot find localhost error |
|
|
Hi everyone
I am a new user of Apache Web Server.
I am using windows 7 operating system.
I installed apache server 2.2
It is installed in the following path
C:\Program Files (x86)\Apache Software Foundation\Apache2.2
I get an error like this "Cannot find localhostDNS Error - Server cannot be found"
Please help me what should i do
Many Thanks
Daisy |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Tue 28 Sep '10 22:31 Post subject: |
|
|
Do you get that error on your local client? A client from a different PC? in the error log? |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Wed 29 Sep '10 13:15 Post subject: |
|
|
error in local client.
But yesterday i found out that when i use http://localhost I
get message as "It works"
but when I use http://localhost:8080 I get that error
please explain
I am using windows 7 Is that the reason |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 29 Sep '10 14:03 Post subject: |
|
|
Win7 is not the reason.
Why do you expect apache on port 8080? Did you configure listen and a vhost on port 8080? |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Wed 29 Sep '10 17:29 Post subject: |
|
|
I do not know what is port listen or anything,I am very new to this apache server
If I want to get it on that port what should I do |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Thu 30 Sep '10 10:11 Post subject: |
|
|
if you want to have reachable localhost and localhost:8080
search for Listen 80 in the httpd.conf after it in a new line add Listen 8080
Last edited by James Blond on Sun 03 Oct '10 16:07; edited 1 time in total |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Fri 01 Oct '10 17:28 Post subject: |
|
|
Hi
I have added the new line but the file is not saving
I get error as Access is denied
please help |
|
Back to top |
|
Daisy
Joined: 28 Sep 2010 Posts: 10
|
Posted: Fri 01 Oct '10 17:40 Post subject: |
|
|
and also I cannot save any file on
C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs
I want to save a php file
but cannot
please explain
I am an administrator on my computer |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Sun 03 Oct '10 16:08 Post subject: |
|
|
I think you have to edit the permissions from that folder so that you can put files into the htdocs folder. You might start the text editor as Administrator so that you can save that file. |
|
Back to top |
|
trotskyicepick
Joined: 04 Oct 2010 Posts: 7
|
Posted: Sat 16 Oct '10 1:38 Post subject: |
|
|
I would not recommend installing Apache2 to it default location under C:\Program Files as Windows UAC (User Access Control) will cause you all sorts of problems when you try to create /modify/delete files there.
You can turn off UAC from the Control Panel (Can't remember where).
If this is a completely new install, start again and install to C:\Apache ........ and then you'll be able to modify httpd.conf.
Just out of interest, if you're new to Apache, how come you assumed it would listen on 8080? The usually TCP port for most http servers is 80. |
|
Back to top |
|