LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-13-2009, 10:25 AM   #1
chandramani_yadav
Member
 
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Rep: Reputation: 19
Unhappy Invalid argument: alloc_listener: failed to get a socket for (null)


Hi
I am using fedora 11. i am getting following error while starting the apache. there is not virtual host. I am using the main apache server. My systems networking is fine. Samba and other applications are working fine.


# apachectl -t
[Thu Aug 13 17:22:01 2009] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
Syntax error on line 134 of /etc/httpd/conf/httpd.conf:
Listen setup failed


Help!
 
Old 08-13-2009, 11:33 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
You have a syntax error on line 134 of /etc/httpd/conf/httpd.conf .
 
Old 08-14-2009, 12:27 AM   #3
chandramani_yadav
Member
 
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Original Poster
Rep: Reputation: 19
Sorry but i am not a novice in Apache. 132 line in apapche's httpd.conf is

Listen 80

i tried both configuration like

Listen IP:80
Listen 80

it gives same error.
 
Old 08-14-2009, 12:52 AM   #4
amedad
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by chandramani_yadav View Post
Sorry but i am not a novice in Apache. 132 line in apapche's httpd.conf is

Listen 80

i tried both configuration like

Listen IP:80
Listen 80

it gives same error.
Having the same issue on a new Fedora 11 instance on Rackspace's cloud server. Any solutions?
 
Old 08-14-2009, 09:39 AM   #5
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
It says 134 but you gave us 132?
 
Old 08-14-2009, 11:01 AM   #6
iamrbm
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
I'm having the exact same issue using slicehost if you have a solution let me know I'll be sure to post mines if I find out.
 
Old 08-14-2009, 12:31 PM   #7
tadman
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
This error occurs in the APR support library when the httpd process attempts to create a socket. The source is:
svn.apache.org/repos/asf/httpd/httpd/tags/2.1.8/server/listen.c
It appears that the APR library that is current on Fedora 11 is not compatible with the httpd release.

Here is the initial configuration I had, which was producing the error:
httpd-2.2.11-8.i586
httpd-tools-2.2.11-8.i586
httpd-devel-2.2.11-8.i586
apr-util-1.3.9-1.fc11.i586
apr-util-devel-1.3.9-1.fc11.i586
apr-devel-1.3.8-1.fc11.i586
apr-util-ldap-1.3.9-1.fc11.i586
apr-1.3.8-1.fc11.i586
It is possible to use yum to downgrade:
yum downgrade apr apr-util -y
yum install httpd -y
This leaves the following packages installed:
httpd-tools-2.2.11-8.i586
httpd-2.2.11-8.i586
apr-util-ldap-1.3.9-1.fc11.i586
apr-1.3.3-4.fc11.i586
apr-util-1.3.9-1.fc11.i586
Apache httpd will now start.

Installing the development libraries, such as apr-devel or httpd-devel, will undo this, and return it to a non-working installation. There appears to be some dependency issues here.
 
Old 08-14-2009, 12:56 PM   #8
tadman
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
If you need the development libraries, here's an approach that seems to work:
yum install apr apr-util apr-devel apr-util-devel apr-util-ldap -y
yum downgrade apr apr-util apr-devel apr-util-devel apr-util-ldap -y
yum install httpd-devel -y
 
Old 08-15-2009, 12:27 AM   #9
chandramani_yadav
Member
 
Registered: Jan 2007
Location: Vienna
Distribution: Redhat
Posts: 47

Original Poster
Rep: Reputation: 19
Thank for your reply . i have already done these things...........
 
Old 08-15-2009, 02:06 AM   #10
amedad
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by chandramani_yadav View Post
Thank for your reply . i have already done these things...........
Hmm - didn't work for me either...
 
Old 08-15-2009, 02:10 AM   #11
amedad
LQ Newbie
 
Registered: Aug 2009
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by amedad View Post
Hmm - didn't work for me either...
Found this on another Forum - seems to work...

Fedora has pushed out a new version of APR that fixes the issue. You have to enable the testing repo to update it properly.

The fix is in comment #10 at this link:

https://bugzilla.redhat.com/show_bug.cgi?id=516331

Comment #10 From Fedora Update System 2009-08-10 17:47:41 EDT -------

apr-1.3.8-2.fc11 has been pushed to the Fedora 11 testing repository. If
problems still persist, please make note of it in this bug report.
If you want to test the update, you can install it with
su -c 'yum --enablerepo=updates-testing update apr'. You can provide feedback
for this update here:
http://admin.fedoraproject.org/updat...DORA-2009-8434
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command failed: device-mapper: reload ioctl failed: Invalid argument azza Programming 2 01-10-2011 03:16 AM
command failed:Invalid argument azza Programming 2 07-26-2009 07:12 AM
message sending failed : Error[22 ] invalid argument .....but each and every argument rakeshranjanjha Linux - Software 2 01-07-2008 11:22 PM
HDIO_GET_MULTCOUNT failed: Invalid argument yashwantpinge Linux - Hardware 1 06-02-2006 09:36 AM
RADIUS connection. Socket connect failed. Invalid argument after running AguaGatekeer ukrainet Linux - Newbie 0 11-25-2004 04:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration