You are not logged in.

#1 2007-06-06 11:16:05

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Can't seem to get apache to start up... [SOLVED]

I try to invoke Apache using 'httpd' as my command and I get the following:

xelados@sporkbox:/etc/httpd/conf$ httpd
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80
no listening sockets available, shutting down
Unable to open logs

I've tried running as root and nothing happens. I've modified /etc/httpd/conf/httpd.conf to set ServerName to 10.0.0.9, which is my internal IP. This server will be acting to provide an intranet wiki. I've never seen this error before, so I'm unsure as to how to handle it.

SOLVED: A friend I know helped me out. I added "127.0.0.1        localhost.localdomain    sporkbox" to my /etc/hosts and added "Listen 127.0.0.1:80" to /etc/httpd/httpd.conf along with my internal IP and it worked! Now Apache works when I input "localhost", my internal IP, and my hostname.

Last edited by xelados (2007-06-08 07:51:11)

Offline

#2 2007-06-06 11:22:53

jerem
Member
From: France
Registered: 2005-01-15
Posts: 310

Re: Can't seem to get apache to start up... [SOLVED]

You must have root privileges to bind a socket to a port < 1024 (well-known ports).

Offline

#3 2007-06-06 14:12:17

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Can't seem to get apache to start up... [SOLVED]

jerem: The daemon still fails. Is there virtual host stuff I need to setup? More httpd.conf settings? I'll pastebin things if need be. I just want the server to work.

Offline

#4 2007-06-06 16:28:20

TheDoctor
Member
From: Ontario, Canada
Registered: 2005-06-28
Posts: 63
Website

Re: Can't seem to get apache to start up... [SOLVED]

If it can't bind to the port, the port may be in use.  Post the output of 'netstat -natup'
The only time I've had errors starting apache is when my server couldn't figure out its own name, and you seem to have that covered.

Offline

#5 2007-06-07 00:04:03

hungsonbk
Member
Registered: 2007-05-26
Posts: 105
Website

Re: Can't seem to get apache to start up... [SOLVED]

big_smile:D
Make sure that /var/log partition is not full. If it is full, delete some log files and restart apache again.

Offline

#6 2007-06-07 03:50:45

xelados
Member
Registered: 2007-06-02
Posts: 314
Website

Re: Can't seem to get apache to start up... [SOLVED]

This is what the error log has in store for me:

[Wed Jun 06 22:47:57 2007] [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
[Wed Jun 06 22:47:57 2007] [notice] suEXEC mechanism enabled (wrapper: /usr/bin/suexec)
[Wed Jun 06 22:47:58 2007] [alert] (EAI 2)Name or service not known: mod_unique_id: unable to find IPv4 address of "sporkbox"
Configuration Failed

And here's my current netstat -natup:

xelados@sporkbox:~$ sudo netstat -natup
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 127.0.0.1:6600          0.0.0.0:*               LISTEN      5521/mpd            
tcp        0      0 10.0.0.9:58000          209.85.41.144:21        ESTABLISHED 6479/pacman         
tcp        0      0 10.0.0.9:45081          209.85.41.144:41829     ESTABLISHED 6479/pacman         
tcp        0      0 10.0.0.9:43868          72.14.253.95:80         ESTABLISHED 6456/firefox-bin    
udp        0      0 10.0.0.9:32777          68.193.149.145:123      ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32778          216.135.38.249:123      ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32779          65.111.164.224:123      ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32780          66.111.46.200:123       ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32782          216.93.242.10:123       ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32821          66.90.78.182:123        ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32823          128.10.252.9:123        ESTABLISHED 5442/ntpd           
udp        0      0 10.0.0.9:32839          24.199.24.170:123       ESTABLISHED 5442/ntpd

Offline

Board footer

Powered by FluxBB