LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-14-2006, 09:47 PM   #1
jazee
LQ Newbie
 
Registered: Aug 2004
Location: westminster, CO
Distribution: Ubuntu 5.10 Breezy Bager
Posts: 24

Rep: Reputation: 15
Trying to set-up a web server on ubuntu 5.10


Hi. I am trying to set-up an apache 2 server on a fresh copy of Ubuntu 5.10. The installation went fine but when I try to connect to the server from a browser localy I get an error. "The connection was refused when trying to connect to localhost"

Apache starts up just fine and everything I just can't figure out why I can't connect to the server. I have tried http://localhost http://127.0.0.1 http://hostname and nothing works.

Any ideas would be helpfull. Thanks
 
Old 03-14-2006, 10:24 PM   #2
jazee
LQ Newbie
 
Registered: Aug 2004
Location: westminster, CO
Distribution: Ubuntu 5.10 Breezy Bager
Posts: 24

Original Poster
Rep: Reputation: 15
I have continued to search around the net and see if I can figure it out. Still no luck but I have found that scripts in the code point to the apache2 exc in /usr/sbin/apache2 well for some reason I don't have this file. Any ideas as to why not. I did install this from Synaptic as well is that helps.
 
Old 03-14-2006, 10:28 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
Try referring to it by IP address, not localhost and not 127.0.0.1. Use the local IP address.

If that doesn't work then you'll have to look at your httpd.conf files to find and set the flag that specifies address ranges that are allowed to connect with your webserver.
 
Old 03-14-2006, 11:02 PM   #4
jazee
LQ Newbie
 
Registered: Aug 2004
Location: westminster, CO
Distribution: Ubuntu 5.10 Breezy Bager
Posts: 24

Original Poster
Rep: Reputation: 15
I have looked for the httpd to be running using "pgrep httpd" and "ps -ef | grep httpd" and it does so up as if it is running. I have tryed to manually start apache threw "/etc/init.d/apache2 start" but I don't get a confermations. Not sure if I am to get one. I have also tryed to start it threw "apachectl start" and I get command doesn't exist errors.
 
Old 03-14-2006, 11:19 PM   #5
jazee
LQ Newbie
 
Registered: Aug 2004
Location: westminster, CO
Distribution: Ubuntu 5.10 Breezy Bager
Posts: 24

Original Poster
Rep: Reputation: 15
Ok I have reinstalled apache2 and that seems to have fixed the /usr/sbin/apache2 missing problem. It seems to be up and running now hopefully. Thanks for taking the time to help.
 
  


Reply



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
How do I set up a web server? txprogrammer Linux - Newbie 6 08-26-2005 06:47 AM
How do i set up a web server flamah Linux - Newbie 19 05-25-2004 08:27 PM
how to set up a web server sameermanagoli Linux - General 1 06-26-2003 08:35 PM
How to set up a web server with pc Z28kid Linux - Newbie 13 01-16-2003 09:13 AM
Set up Web Server? lax2sman Linux - Newbie 3 02-11-2002 10:09 PM

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

All times are GMT -5. The time now is 12:14 AM.

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
Open Source Consulting | Domain Registration