Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't Get Apache Started
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
lhpineapple
n00b
n00b


Joined: 17 Jun 2004
Posts: 10

PostPosted: Mon Jun 21, 2004 3:56 pm    Post subject: Can't Get Apache Started Reply with quote

I'm a newbie on linux so please bear with me.

I followed the gentoo desktop configuration guide for KDE and also followed the guide to install apache2, but everytime I try to start it via:

Code:
/etc/init.d/apache2 start


it has some kind of error then doesn't start:

Code:
* Starting apache2...         [ !! ]


I'm familiar with the configuration for apache 1.xx on a windows machine, but I'm having trouble finding the same configuration settings on the version it installed on my gentoo machine. Specifically, I was looking for a place to specify my server ip address like I did on my windows machine. I tried to use the BindAddress directive, but it gives me this error:

Code:
Invalid command 'BindAddress'
Syntax error on line 95 of /etc/apache2/conf/apache2.conf:
Invalid command 'BindAddress', perhaps mis-spelled or defined by a module not included in the server configuration


Does anyone have any suggestions on what I can do or where I can find some kind of error log for apache? Thanks in advance.
Back to top
View user's profile Send private message
xoomix
Guru
Guru


Joined: 02 Jan 2003
Posts: 489

PostPosted: Mon Jun 21, 2004 6:34 pm    Post subject: Conf files? Reply with quote

Can you post your conf files? Do you have a hostname and domain name set in the conf file? Can you run 'host `hostname` and resolve your own hostname correctly?
Back to top
View user's profile Send private message
embobo
Guru
Guru


Joined: 19 May 2003
Posts: 311

PostPosted: Mon Jun 21, 2004 6:38 pm    Post subject: Reply with quote

Yeah, BindAddress is only valid for apache 1.x. For 2.x use Listen instead. Also, Port is no longer supported either. Take all BindAddress and Port directives and turn them into Listen directives. E.g.,

Code:

BindAddress 10.0.0.1
Port 5435


becomes

Code:
Listen 10.0.0.1:5435


If you have no Port directives then ignore that part. :wink:
Back to top
View user's profile Send private message
lhpineapple
n00b
n00b


Joined: 17 Jun 2004
Posts: 10

PostPosted: Mon Jun 21, 2004 9:19 pm    Post subject: Re: Conf files? Reply with quote

kiosk wrote:
Can you post your conf files? Do you have a hostname and domain name set in the conf file? Can you run 'host `hostname` and resolve your own hostname correctly?


Well my hostname is set correctly. I'm not sure what you mean by run host 'hostname'. "Host" isn't a recognized command and I'm not sure what you want me to do if my webserver can't even startup. Can you please clarify? Thanks.

As for configuration, I changed nothing. I did exactly what is written in the desktop guide. On the installation of apache on my windows machine there was only one config file, httpd.conf. Does this file exist in version 2.x or is it just apache2.conf and commonapache2.conf?

As for the binding the IP, that didn't help. Is there some kind of error log I can check to see what is causing it to fail on startup?
Back to top
View user's profile Send private message
gnuageux
Veteran
Veteran


Joined: 17 Apr 2004
Posts: 1201

PostPosted: Wed Jun 30, 2004 12:50 pm    Post subject: Reply with quote

You dont have /bin/hostname? Have you tried commenting out the problematic directives in httpd.conf?
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Wed Jun 30, 2004 6:48 pm    Post subject: Re: Conf files? Reply with quote

lhpineapple wrote:
On the installation of apache on my windows machine there was only one config file, httpd.conf. Does this file exist in version 2.x or is it just apache2.conf and commonapache2.conf?

As for the binding the IP, that didn't help. Is there some kind of error log I can check to see what is causing it to fail on startup?


The apache2.conf and commonapache2.conf are Gentoo specific and replace httpd.conf. As for logs the default place is /var/logs/apache2/error_log, have a look at the end of that file.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo 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