logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: New user of Apache server-cannot find localhost error
Author
Daisy



Joined: 28 Sep 2010
Posts: 10

PostPosted: Tue 28 Sep '10 16:12    Post subject: New user of Apache server-cannot find localhost error Reply with quote

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

PostPosted: Tue 28 Sep '10 22:31    Post subject: Reply with quote

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

PostPosted: Wed 29 Sep '10 13:15    Post subject: Reply with quote

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

PostPosted: Wed 29 Sep '10 14:03    Post subject: Reply with quote

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

PostPosted: Wed 29 Sep '10 17:29    Post subject: Reply with quote

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

PostPosted: Thu 30 Sep '10 10:11    Post subject: Reply with quote

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

PostPosted: Fri 01 Oct '10 17:28    Post subject: Reply with quote

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

PostPosted: Fri 01 Oct '10 17:40    Post subject: Reply with quote

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

PostPosted: Sun 03 Oct '10 16:08    Post subject: Reply with quote

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

PostPosted: Sat 16 Oct '10 1:38    Post subject: Reply with quote

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


Reply to topic   Topic: New user of Apache server-cannot find localhost error View previous topic :: View next topic
Post new topic   Forum Index -> Apache