LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-24-2002, 04:06 AM   #1
omac
LQ Newbie
 
Registered: Jan 2002
Posts: 7

Rep: Reputation: 0
installing apache on debian, apt-get error


hello everyone,

i posted this same topic on the installation forum, but i'm posting it here too, since it could be a newbie question.

i'm new to debian linux (or linux for that matter), and i'm having problems installing apache. i type:

apt-get install apache

everything seems fine, until i get this message:
==========================================
apache: cannot determine host name.
Use the ServerName directives to set it manually.
/usr/sbin/apachectl start: httpd could not be started.

Configuration failed! Run "apacheconfig" to try this again later.
===========================================

what do you think i should do? is it just a matter of changing the text in some configuration files? which ones? help

thanks a lot.

ramel.
 
Old 01-25-2002, 10:38 AM   #2
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
if yopu get this message that the hostname cannot be found, this usually means, that there are more then one hostnames set for the same IP.

edit the file /etc/hosts (i think) and the file /etc/hostname

hsotname should contain the FQDN of the local machine.

/etc/hosts should contain:

127.0.0.1 localhost
you.r.ip.add short hostname FQDN (same as in /etc/hostname)

this should solve the problem

cya
 
Old 01-26-2002, 12:48 AM   #3
omac
LQ Newbie
 
Registered: Jan 2002
Posts: 7

Original Poster
Rep: Reputation: 0
thanks raven, i'll try it out.

the main reason i'm trying to set up a web server is to get the cgi-bin working, since i've decided to learn pearl & cgi. i thought i might as well set up a local web server, instead of always uploading stuff to test in sites like prohosting. setting up the apache wasn't as easy as i'd originally thought it was going to be.

i finally bought the book the "linux apache webserver administration" by charles auld. i don't even know what FQDN means, yet. is it the name i gave my computer? i guess i might as well try to know what i'm doing, right?

again, thanks! i'll try it out.
 
Old 01-26-2002, 05:29 AM   #4
raven
Member
 
Registered: Dec 2001
Location: Basel, Switzerland
Distribution: ubuntu
Posts: 297

Rep: Reputation: 31
well than have fun reading, and configuring :-)

besides: FQDN is the Fully Qualified Domain Name and yes it is the name of your machine.

format is:

host.domain

cya

raven
 
Old 01-27-2002, 01:15 AM   #5
omac
LQ Newbie
 
Registered: Jan 2002
Posts: 7

Original Poster
Rep: Reputation: 0
again, thanks raven!
 
  


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
debian apt-get upgrade error strattonbrazil Debian 4 11-17-2005 06:52 AM
Debian : apt-get error NL-Stitch Linux - Newbie 3 06-07-2005 02:01 PM
odd apt-get error in debian Lleb_KCir Linux - Software 2 10-08-2004 10:40 PM
apt-get error installing xlibs 4.2.1-14, apt-get won't work at all now pib Debian 1 12-10-2003 11:39 PM
Installing Apache on Debian, apt-get error omac Linux - Software 2 01-24-2002 10:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 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