-   Linux - Software (
-   -   Trouble starting apache (

Belize 12-22-2003 11:34 AM

Trouble starting apache

I edited /etc/httpd/conf/httpd.conf, and after I tried to start it but errors occur :

[root@Cuba etc]# /etc/init.d/httpd configtest
httpd: Could not determine the server's fully qualified domain name, using for ServerName
Syntax OK
[root@Cuba etc]#

This is uncommented Virtuah Hosts section in httpd.conf

#NameVirtualHost *

<VirtualHost *>
DocumentRoot /var/www/

And this is my /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.

I dont get whats wrong, please help.

trickykid 12-22-2003 11:48 AM

What do you have for the server's name in the 'Main Configuration' portion of your config file instead of what you have in the Virtual Hosts portion?

Might be wise to add this to your /etc/hosts file as well, but probably not related: localhost

Belize 12-22-2003 01:40 PM

where exactly should I fin that servers name this Main Configuration part is huge
I added localhost to /etc/hosts

trickykid 12-22-2003 02:13 PM

You will see your global configuration first.. then when your scrolling down, you will see something along the lines like this:

# ServerName allows you to set a host name which is sent back to clients for
# your server if it's different than the one the program would get (i.e., use
# "www" instead of the host's real name).
# Note: You cannot just invent host names and hope they work. The name you
# define here must be a valid DNS name for your host. If you don't understand
# this, ask your network administrator.
# If your host doesn't have a registered DNS name, enter its IP address here.
# You will have to access it by its address (e.g.,
# anyway, and this will make redirections work in a sensible way.
# is the TCP/IP local loop-back address, often named localhost. Your
# machine always knows itself by this address. If you use Apache strictly for
# local testing and development, you may use as the server name.

Belize 12-22-2003 03:46 PM


[root@Cuba conf]# cat httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
# ServerName directive.
#    ServerName
[root@Cuba conf]#

trickykid 12-22-2003 03:53 PM

Try making it just:


Since you already have a virtual host as

Belize 12-22-2003 07:01 PM

again, same error :(

Belize 12-23-2003 02:07 AM


Belize 12-23-2003 10:30 AM

wtf :( whats wrong with that apache

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