LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble starting apache (https://www.linuxquestions.org/questions/linux-software-2/trouble-starting-apache-128080/)

Belize 12-22-2003 10:34 AM

Trouble starting apache
 
Hello

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

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

This is uncommented Virtuah Hosts section in httpd.conf
Code:

#NameVirtualHost *

<VirtualHost *>
ServerAdmin admin@cubanet.cc
ServerName www.cubanet.cc
DocumentRoot /var/www/cubanet.cc
</VirtualHost>

And this is my /etc/hosts
Code:

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

I dont get whats wrong, please help.
Thanks
Peace

trickykid 12-22-2003 10: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:

127.0.0.1 localhost

Belize 12-22-2003 12:40 PM

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

trickykid 12-22-2003 01:13 PM

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

# 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., http://123.45.67.89/)
# anyway, and this will make redirections work in a sensible way.
#
# 127.0.0.1 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 127.0.0.1 as the server name.
#
ServerName your-domain.com


Belize 12-22-2003 02:46 PM

Code:

[root@Cuba conf]# cat httpd.conf | grep ServerName
# ServerName gives the name and port that the server uses to identify itself.
#ServerName new.host.name:80
# ServerName directive.
ServerName www.cubanet.cc
#    ServerName dummy-host.example.com
[root@Cuba conf]#


trickykid 12-22-2003 02:53 PM

Try making it just:

ServerName cubanet.cc

Since you already have a virtual host as www.cubanet.cc

Belize 12-22-2003 06:01 PM

again, same error :(

Belize 12-23-2003 01:07 AM

BUMP

Belize 12-23-2003 09:30 AM

wtf :( whats wrong with that apache


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