LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-21-2003, 05:39 AM   #1
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
localhost on apache


i am trying to run apache on my computer..
the service is running but when i do http://localhost/ on it it says could not contact localhost..
i have tried even http://127.0.0.1/ but still nothing...
i am using mozilla and RH8..
do i need to do anything else like configure http server..
i have put a name for the server..

regards
Xing
 
Old 09-21-2003, 06:31 AM   #2
WiZaC
Member
 
Registered: Sep 2003
Location: Denmark
Distribution: FreeBSD
Posts: 110

Rep: Reputation: 15
it is automaticlly configured on localhost, hmm, are you totally sure that apache is starte corectly?
WiZaC
 
Old 09-22-2003, 02:48 AM   #3
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
ys i have checked and also done service httpd restart..
but the localhost is till not connecting...
 
Old 09-22-2003, 05:11 AM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
I can almost gaurantee this is something wrong with your http.conf file.

What does your ServerName directive say? If you just want apache for local development it should look like:

ServerName 127.0.0.1

or:

ServerName localhost
 
Old 09-26-2003, 01:21 AM   #5
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
i had set the servername as jimesh

does servername really matter... i have seen machines which do not have server names at all in them but their http functions fine..

regardless, i will set my servername as localhost and get back to u people...

Regards
Xing
 
Old 09-28-2003, 04:38 AM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
>i had set the servername as jimesh

If that is your hostname, and your /etc/hosts file is properly configured it should work...but in that case you would type http://jimesh/ in a browser rather than localhost.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
apache http://localhost/mysite ---> http://localhost/mysite/index.php how? ilnli Linux - General 8 06-04-2005 04:23 PM
Apache only works on localhost Airwaves Linux - Networking 8 07-12-2004 03:29 AM
http://localhost apache matt3333 Linux - Software 16 05-25-2003 02:55 PM
Apache and Localhost ifm Linux - Software 2 06-13-2002 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration