View previous topic :: View next topic |
Author |
Message |
lhpineapple n00b
Joined: 17 Jun 2004 Posts: 10
|
Posted: Mon Jun 21, 2004 3:56 pm Post subject: Can't Get Apache Started |
|
|
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 |
|
|
xoomix Guru
Joined: 02 Jan 2003 Posts: 489
|
Posted: Mon Jun 21, 2004 6:34 pm Post subject: Conf files? |
|
|
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 |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Mon Jun 21, 2004 6:38 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
lhpineapple n00b
Joined: 17 Jun 2004 Posts: 10
|
Posted: Mon Jun 21, 2004 9:19 pm Post subject: Re: Conf files? |
|
|
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 |
|
|
gnuageux Veteran
Joined: 17 Apr 2004 Posts: 1201
|
Posted: Wed Jun 30, 2004 12:50 pm Post subject: |
|
|
You dont have /bin/hostname? Have you tried commenting out the problematic directives in httpd.conf? |
|
Back to top |
|
|
tomk Bodhisattva
Joined: 23 Sep 2003 Posts: 7221 Location: Sat in front of my computer
|
Posted: Wed Jun 30, 2004 6:48 pm Post subject: Re: Conf files? |
|
|
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 |
|
|
|