LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   not able to start up apache correctly due to fqdn issue (https://www.linuxquestions.org/questions/linux-newbie-8/not-able-to-start-up-apache-correctly-due-to-fqdn-issue-119197/)

Robin01 11-23-2003 11:57 AM

not able to start up apache correctly due to fqdn issue
 
Hello everybody..

Problem received when I start apache(./apachectl start):
[root@voyager bin]# ./apachectl start
httpd: Could not determine the server's fully qualified domain name, using 192.168.2.4 for ServerName

-running mandrake 9.2
-trying to setup a namebased virtual host...
-apache seems to be running because the default page does appear..
------------
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.4 voyager
hostname=voyager
----------------------
/etc/httpd/conf/httpd.conf. copy/pasted part of it..
ServerType standalone
ServerRoot /wwwroot/apache2
ServerName voyager
#LockFile /etc/httpd/httpd.lock
PidFile /var/run/httpd.pid
ScoreBoardFile /etc/httpd/httpd.scoreboard
ErrorLog logs/error_log
LogLevel warn
ResourceConfig /dev/null
AccessConfig /dev/null
DocumentRoot /var/www/html
-------------------------------------------------
/etc/sysconfig/network
HOSTNAME=voyager
NETWORKING=yes
GATEWAY=192.168.2.1

any ideas

Tinkster 11-23-2003 02:07 PM

Quote:

------------
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.4 voyager
hostname=voyager
I'm fairly certain that the last line
shouldn't be there ... never seen
any entries like that one before :)
and the man page certainly doesn't
warrant it, either.


Cheers,
Tink

Robin01 11-23-2003 02:14 PM

HI thanks for the reply..

------------
/etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.4 voyager
hostname=voyager

i added the last line based on a research i did to resolve this problem but problem still remains.

but if its incorrect i will remove it.
problem still remains

Tinkster 11-23-2003 03:30 PM

Next question ... is the machine only meant
to be visible on your intranet?

What does your /etc/host.conf look like?
Code:

order hosts, bind
multi on

Cheers,
Tink

Robin01 11-23-2003 03:43 PM

the machine is being setup to be visible from the internet. so, it will be available to be accessed through the internet..

as per the file /etc/host.conf

order hosts, bind
multi on
nospoof on
spooflaert on


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