PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 26, 2012, 01:48:07 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: Can't get Apache (httpd) to run - SOLVED  (Read 1651 times)
jrmch
Guest
« on: January 21, 2010, 11: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.
Logged
MaddogF16
Hero Member
*****
Offline Offline

Posts: 2710



« Reply #1 on: January 21, 2010, 12:02:55 PM »

Listen 0.0.0.0:80 ?
Logged

Why?
nixer
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 546



« Reply #2 on: January 21, 2010, 12:12:40 PM »

-Or- 

listen *:80

This is what I use.
Logged

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, Openbox, *.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
MaddogF16
Hero Member
*****
Offline Offline

Posts: 2710



« Reply #3 on: January 21, 2010, 12:16:02 PM »

-Or- 

listen *:80

This is what I use.

Yeah I'd think the wildcard should cover it.
Logged

Why?
jrmch
Guest
« Reply #4 on: January 21, 2010, 12:59:48 PM »

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 !
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM