LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-22-2003, 10:34 AM   #1
Belize
Member
 
Registered: Jul 2003
Posts: 113

Rep: Reputation: 15
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
 
Old 12-22-2003, 10:48 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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
 
Old 12-22-2003, 12:40 PM   #3
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
where exactly should I fin that servers name this Main Configuration part is huge
I added 127.0.0.1 localhost to /etc/hosts
 
Old 12-22-2003, 01:13 PM   #4
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
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
 
Old 12-22-2003, 02:46 PM   #5
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
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]#
 
Old 12-22-2003, 02:53 PM   #6
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Try making it just:

ServerName cubanet.cc

Since you already have a virtual host as www.cubanet.cc
 
Old 12-22-2003, 06:01 PM   #7
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
again, same error
 
Old 12-23-2003, 01:07 AM   #8
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
BUMP
 
Old 12-23-2003, 09:30 AM   #9
Belize
Member
 
Registered: Jul 2003
Posts: 113

Original Poster
Rep: Reputation: 15
wtf whats wrong with that apache
 
  


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
Trouble starting mysqld koodoo Linux - Newbie 4 08-16-2005 10:09 AM
Trouble starting vncserver maximyus Linux - Networking 3 04-02-2005 12:49 PM
trouble starting X and KDE mcsquare Linux - Newbie 1 10-28-2003 02:25 AM
Trouble starting kde tez Linux - Software 1 06-27-2003 04:21 AM
trouble starting pppd nothlit Linux - General 9 01-02-2002 05:20 PM


All times are GMT -5. The time now is 02:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration