LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2005, 06:35 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Apache Error I Can't Resolve


My Apache 2 web server is working fine http://carlwill.dyndns.org but when I try and restart Apache2 after I make any changes, I always see this error.

Code:
stricom:/var/www# /etc/init.d/apache2 restart
Forcing reload of apache 2.0 web server...grep: /etc/apache2/conf.d/[^.#]*: No such file or directory
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
It does not seem to be effecting anything at all since everything is working but it's annoying and I would like it fixed.

My document root seems to be correct since my URL takes you to my home page so I don't know what the problem is.

Please help.
 
Old 11-18-2005, 11:57 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Quote:
Forcing reload of apache 2.0 web server...grep: /etc/apache2/conf.d/[^.#]*: No such file or directory
Looks like a typo/bug in apache's init script. IIt would seem it is looking for additional conf files in /etc/apache2/conf.d/ but "[^.#]*" is being expanded literally. Check your init script for lines that use grep...and see if there is a typo...

Quote:
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
Edit httpd.conf and add:

"ServerName carlwill.dyndns.org"

to get rid of that.
 
Old 11-18-2005, 01:39 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
When I edit the "http.conf" file, all I see there is this...

# This is here for backwards compatability reasons and to support
# installing 3rd party modules directly via apxs2, rather than
# through the /etc/apache2/mods-{available,enabled} mechanism.
#
#LoadModule mod_placeholder /usr/lib/apache2/modules/mod_placeholder.so
ServerName carlwill.dyndns.org

So I just added what you said (w/o the quotes) to the end and made sure it was un-commented.

Here is what I did and now what I get...???

Code:
login as: root
Using keyboard-interactive authentication.
Password:
Last login: Thu Nov 17 15:07:12 2005 from gatekeeper01.peostri.army.mil
stricom:~# nano /etc/apache2/httpd.conf
stricom:~# /etc/init.d/apache2 restart
Forcing reload of apache 2.0 web server...grep: /etc/apache2/conf.d/[^.#]*: No s                        uch file or directory
.
stricom:~#

Last edited by carlosinfl; 11-18-2005 at 01:45 PM.
 
Old 11-18-2005, 07:27 PM   #4
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Right. I said you have 2 separate problems, and you have gotten rid of one of them...

For the other have a look at you apache initscript (probably /etc/init.d/httpd or somesuch)
as I think it probably has a typo in it....
 
  


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
Help!!! I can't resolve a gtk+ 2.4.7 configure error RJARRRPCGP Linux - Newbie 1 11-22-2004 02:08 AM
How to resolve log rotation error? sdebiasio Linux - Newbie 4 09-08-2004 02:48 AM
Configuring Apache to Resolve Server Name EADTF Linux - Newbie 7 07-21-2004 01:20 PM
how to resolve this error? sensovision Linux - Software 3 07-07-2004 03:42 AM
Apache 2 configuration problems - Cannot resolve domain notmatt Linux - Networking 4 06-09-2004 02:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:13 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
Open Source Consulting | Domain Registration