You are not logged in.
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
You must have root privileges to bind a socket to a port < 1024 (well-known ports).
Offline
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
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
:D
Make sure that /var/log partition is not full. If it is full, delete some log files and restart apache again.
Offline
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