Author Topic: Can't get Apache (httpd) to run - SOLVED  (Read 3487 times)

jrmch

  • Guest
Can't get Apache (httpd) to run - SOLVED
« on: January 21, 2010, 09:47:18 AM »
Running PCLOS 2009 on a Siemens Lifebook laptop.
Everything running A O.K.

Hi Forum,

As I wanted to set up a Web server, I ran Task-Lamp - everything installed O.K.
When I try to start the apache server - httpd - (whether terminal or Control Panel / System / Services) I get the following output.............

********************o/p begins**************************
Starting httpd: [Thu Jan 21 17:12:45 2010] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
Syntax error on line 209 of /etc/httpd/conf/httpd.conf:
Listen setup failed
********************o/p ends****************************

Line 209 of httpd.conf is simply - <listen 80>.
The result is the same whether 'user' or 'root'.
There's no difference if the firewall is 'on' or 'off'.

I've tried various changes as follows........
listen 127.0.0.1:80
listen localhost:80
listen laptop IP address:80
ALL produce exactly the same result as above.

Would appreciate any help.

Many thanks
jrm.
« Last Edit: January 21, 2010, 11:01:02 AM by jrmch »

Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Can't get Apache (httpd) to run
« Reply #1 on: January 21, 2010, 10:02:55 AM »
Listen 0.0.0.0:80 ?
Why?

Offline nixer

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 587
Re: Can't get Apache (httpd) to run
« Reply #2 on: January 21, 2010, 10:12:40 AM »
-Or- 

listen *:80

This is what I use.
Desktop:  AMD 3.6ghz X4, Gigabyte MB, 8GB ram, Multiple PCLOS's, 2.6.38.8-pclos3.pae.bfs
Server: Intel 3.4ghz X2, 4GB RAM, SATA, gnome2, *.pae.bfs, Headless, Servers: LAMP, FTP, Samba, Print, PXE, BT
HTPC: Phenom II X4 2.8ghz, 4GB Ram, 1TB SATA, PCLinuxOS-KDE, NVIDIA N220GT HDMI, *.pae.bfs

Offline MaddogF16

  • Hero Member
  • *****
  • Posts: 2711
Re: Can't get Apache (httpd) to run
« Reply #3 on: January 21, 2010, 10:16:02 AM »
-Or- 

listen *:80

This is what I use.

Yeah I'd think the wildcard should cover it.
Why?

jrmch

  • Guest
Re: Can't get Apache (httpd) to run - SOLVED
« Reply #4 on: January 21, 2010, 10:59:48 AM »
Thanks for the quick reply MaddogF16 and Nixer.

I'd actually tried <Listen *:80> before with the same result.
Then, about 1 hr. ago, I ran a software update in Synaptic.
As soon as I got your mail I thought "I'll give it a try again". I changed the line to <Listen *:80> and Apache is running.

Looks like I was a bit out of date on updates but thanks very much for the contact - it jogged the gray matter in the right place at the right time !
« Last Edit: January 21, 2010, 11:01:52 AM by jrmch »