Results 1 to 9 of 9

Thread: Apache on Fedora 11 - Failed to Get Socket

  1. #1
    Join Date
    Aug 2009
    Posts
    1

    Default Apache on Fedora 11 - Failed to Get Socket

    Hi,

    I'm not quite a complete novice. Though apparently I'm missing something.

    I've set up rudimentary DNS for the server. I've set a hostname up at /etc/hosts and /etc/sysconfig/network.

    I've tried setting the Listen directive in httpd.conf to the IP adddres:80 and also just leaving it at 80. I've also set the servename directive correctly.

    Yet, no matter what I try, I get the following error when I try to start apache:

    Starting httpd: [Fri Aug 07 18:17:59 2009] [crit] (22)Invalid argument: alloc_listener: failed to get a socket for (null)
    Syntax error on line 135 of /etc/httpd/conf/httpd.conf:
    Listen setup failed


    The "(null)" above is replaced by the IP address when I try putting the IP in the listen directive.

    Here's the most unnerving thing: Everythings works great when I reprovision my VPS for CentOS 5.3. So, I have to ask (though I hate to do so and point any fingers!): Might there be a problem with the Fedora 11 installation?

  2. #2
    Join Date
    Aug 2009
    Posts
    2

    Default Bad apr packages

    This appears to have been caused by a bad upgrade to the apr, apr-util, and apr-util-ldap packages. I solved the problem (for now) by backreving to the original packages.

    First, fetch the apr, apr-util, and apr-util-ldap packages from the original FC11 distribution. Install them using the --oldpackage option to rpm. Finally, run ldconfig and start the web server.

    Code:
    # rpm -Uvh --oldpackage \
    apr-1.3.3-4.fc11.i586.rpm \
    apr-util-1.3.4-3.fc11.i586.rpm \
    apr-util-ldap-1.3.4-3.fc11.i586.rpm
    
    # ldconfig
    
    # service httpd start

  3. #3
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    I will forward this issue up to our template developers for investigation - thank you for the report.

  4. #4
    Join Date
    Aug 2009
    Posts
    2

    Default

    This thread is the first link that comes up if a user (such as myself) pastes the error message verbatim into Google. This workaround should work for anyone who's having trouble getting their Apache web server started after doing an FC11 update.

  5. #5
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    Our template developers report that this issue (Apache installation on Fedora 11) has been tested on both the OpenVZ and Xen platforms with our most recent Fedora 11 template (released last week) - apparently they were not able to reproduce the issue.

    Do you have a ticket open with our support department, Hurin?

  6. #6
    Join Date
    Aug 2009
    Posts
    1

    Default

    Same problem. Brand new install of Fedora 11 on the RackSpace cloud (so backtracking to a previous package is not an option).
    "yum install httpd" then "service httpd start" returns:
    Starting httpd: [Tue Aug 11 01:38:49 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:

    Networking is okay. Port is open. This sure smells like a bug in Fedora 11/httpd...

  7. #7
    Join Date
    Jul 2007
    Location
    127.0.0.1
    Posts
    392

    Default

    fabien,

    Is there a reason you prefer F11 over CentOS 5.3? CentOS is more of a server/enterprise distribution, and as you've experienced first hand, they actually perform q&a on their packages before releasing it as "stable."

    From a security/dependability standpoint when dealing with Linux, I'll always recommend Debian. However, if an RPM based distro is required, you can't go wrong with CentOS.

    Actually, I run cent natively at the job, and it's awesome for administering a huge enterprise. But away from the job, I'm a total sucker for debby. Makes the gf jealous at times... :P

  8. #8
    Join Date
    Dec 2007
    Posts
    1,141

    Default

    Quote Originally Posted by GuyPatterson View Post
    I'm a total sucker for debby. Makes the gf jealous at times...
    I'd be more worried about Ian getting jealous...

    He formed the name "Debian" as a combination of the first name of his then girlfriend Debra Lynn and his own first name. Murdock and Lynn later married, then filed for divorce on the week of 2007-08-10.

  9. #9
    Join Date
    Jul 2007
    Location
    127.0.0.1
    Posts
    392

    Default

    Quote Originally Posted by DanL@VPSLink View Post
    I'd be more worried about Ian getting jealous...
    HAHA! DanL, you never fail to put a grin on my face.

    The reference to 'debby' is just a female nick-name for Debian, kind of how men stereotypically name their vehicles. But you probably caught that and just couldn't resist crackin' a joke

    Good times!

    -Guy

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •