DeveloperSide.NET Forums
December 12, 2019, 04:05:00 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: FQDN conflict when starting up apache...  (Read 18242 times)
0 Members and 1 Guest are viewing this topic.
Anonymous
Guest
« on: November 23, 2003, 07:05:04 PM »

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

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
Logged
billy_bob
Guest
« Reply #1 on: June 04, 2004, 06:46:22 PM »

edit the httpd.conf file

Under section 2: main server configuration.

unhash # ServerName ....:80

and change the name after the ServerName to your FQDN name.

( hou can type hostname at the command line to see you server name)

in my case it is ServerName UHS:80
Logged
admin
Administrator
Master of All Subjects
*****
Posts: 3272


View Profile WWW Email
« Reply #2 on: June 04, 2004, 07:06:32 PM »

Its complaining because under httpd.conf, you have...
ServerName voyager

The "voyager" part cannot be resolved to a FQDN(fully qualified domain name).

You should have something like...
ServerName www.your-domain-name.top-level-domain
(example: ServerName www.yahoo.com)

Or

ServerName localhost:80

Either way, this is a minor problem, and will not cause Apache to shut down.

Also, I think it actually might be working, since you have voager set to 192.168.2.4 and that is what Apache is taking.
Logged

DeveloperSide.NET
Advanced PHP and MySQL Solutions for your Web Design and Development needs with Web.Developer Server Suite.
cnd
Member
*
Posts: 1


View Profile
« Reply #3 on: June 15, 2005, 01:53:17 PM »

This error occurs because your host name is not present in your /etc/hosts file.

type this:-

cat /etc/hosts

then type this:-

hostname

and you'll see what you did wrong.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!