Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache 2.0.46 (no httpd.conf)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
zakl
n00b
n00b


Joined: 09 May 2003
Posts: 73

PostPosted: Mon Jun 30, 2003 4:52 pm    Post subject: Apache 2.0.46 (no httpd.conf) Reply with quote

I've been scanning throught the documentation @ www.apache.org for Apache httpd 2.0 webservers. Usually, in all the past versions I've used, httpd.conf was either placed by the rpm file, or created during compile time.

After it emerged, apache 2.0.46 config was located in /etc/apache2/conf, but there is no httpd.conf file. The only two config files I get are:

apache2.conf commonapache2.conf

as well as a vhosts directory with some vhost config files.

Also, when I start the daemon, it gives me the following error:

root@logical init.d # ./apache2 restart
* Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName

Is there something wrong? Where's httpd.conf? And where do I set the "server's fully qualified domain name"?

Thanks,

Zak
Back to top
View user's profile Send private message
himpierre
l33t
l33t


Joined: 31 Aug 2002
Posts: 867
Location: Berlin

PostPosted: Mon Jun 30, 2003 5:47 pm    Post subject: Reply with quote

Hello

apache2.conf = httpd.conf

Quote:

apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName


Try to prevent loading mod_unique stuff in apache2.conf.

regards
Thomas
Back to top
View user's profile Send private message
niki
n00b
n00b


Joined: 25 May 2003
Posts: 19
Location: Switzerland

PostPosted: Mon Jun 30, 2003 5:59 pm    Post subject: Reply with quote

hi

/etc/apache2/conf/apache2.conf is the main config file of apache2.
In it the other config files (commonapche2.conf, vhosts, ...) are included.


Form apache2.conf:
Quote:

###
### Global Configuration
###
# Splitting up apache2.conf into two files makes it easier to support
# multiple configurations on the same serer. In commonapache2.conf
# you keep directives that apply to all implementations and in this
# file you keep server-specific directives. While we don't yet have
# multiple configurations out-of-the-box, this allows us to do that
# in the future easily. (PERLPROXIED *ahem*)
#
# For Apache2 we load all conf files in conf/modules.d
Include conf/modules.d/*.conf
Include conf/commonapache2.conf



The ServerName is in apache2.conf.
Back to top
View user's profile Send private message
zakl
n00b
n00b


Joined: 09 May 2003
Posts: 73

PostPosted: Mon Jun 30, 2003 10:39 pm    Post subject: Reply with quote

Thanks, I commented the line
Code:
LoadModule unique_id_module              modules/mod_unique_id.so

as told, and it started with no problem.

Thanks for the help,

Zak
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Fri Jul 25, 2003 2:34 pm    Post subject: Reply with quote

i also commented out the unique modules line to avoid the same problem you were having, but it didnt solve the problem on my machine, does it require a reboot? :?
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Fri Jul 25, 2003 2:39 pm    Post subject: Reply with quote

carbon wrote:
i also commented out the unique modules line to avoid the same problem you were having, but it didnt solve the problem on my machine, does it require a reboot? :?


If you make changes to apache you'll have to restart it:
Code:
/etc/init.d/apache2 restart
for apache2.

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Fri Jul 25, 2003 3:22 pm    Post subject: Reply with quote

i did that, didnt help
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Fri Jul 25, 2003 4:03 pm    Post subject: Reply with quote

carbon wrote:
i did that, didnt help


Have you set ServerName?

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Fri Jul 25, 2003 5:57 pm    Post subject: Reply with quote

in apache2.conf?
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Fri Jul 25, 2003 6:04 pm    Post subject: Reply with quote

carbon wrote:
in apache2.conf?


Yes or in the commonapache2.conf, I believe either would work. I don't quite know whay it can't pull your servername itself though. No entry in /etc/hosts or /etc/hostname for you current IP address?

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Sun Jul 27, 2003 3:06 am    Post subject: Reply with quote

i dont have a static ip, i use DNS to map my dynamic ip,
so what do i do with /etc/hosts to make apache know what my ip is
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
puggy
Bodhisattva
Bodhisattva


Joined: 28 Feb 2003
Posts: 1992
Location: Oxford, UK

PostPosted: Sun Jul 27, 2003 3:10 am    Post subject: Reply with quote

carbon wrote:
i dont have a static ip, i use DNS to map my dynamic ip,
so what do i do with /etc/hosts to make apache know what my ip is


Apache doesn't need to know. It just needs to know the name of your server. e.g. mydomain.dydns.com

Puggy
_________________
Where there's open source , there's a way.
Back to top
View user's profile Send private message
madmango
Guru
Guru


Joined: 15 Jul 2003
Posts: 507
Location: PA, USA

PostPosted: Sun Jul 27, 2003 2:50 pm    Post subject: Reply with quote

i have set my FQDN properly in /etc/hostname and still get the same problem
_________________
word.
Back to top
View user's profile Send private message
devon
l33t
l33t


Joined: 23 Jun 2003
Posts: 943

PostPosted: Sun Jul 27, 2003 6:51 pm    Post subject: Reply with quote

Check out the ServerName option in the conf file.
Back to top
View user's profile Send private message
carbon
Guru
Guru


Joined: 27 Jun 2003
Posts: 455
Location: New York

PostPosted: Mon Jul 28, 2003 1:04 am    Post subject: Reply with quote

alright!! it worked :lol:
_________________
I do what I want, and that's what I do.
GNU World Domination

Carbon
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum