Apache fails to load with 10049 error

  • 3521703
  • 14-Jun-2007
  • 03-Jul-2012

Environment

Novell Apache on NetWare 2.0.59 (and earlier)
Novell NetWare 6.5

Situation

When starting Apache 2.0 on NetWare, the APACHE2.NLM console screen (Apache 2.0.59 for NetWare) does not appear. The logger screen shows that it loaded, but an "M APACHE2" reveals that the process is no longer loaded.

In checking the SYS:/APACHE2/LOGS folder for the startup.err and also the error_log.####### files, we find :

[Thu Jun 14 10:49:20 2007] [notice] LDAP: Built with Novell LDAP SDK
[Thu Jun 14 10:49:20 2007] [notice] LDAP: SSL support unavailable
(OS 10049)Can't assign requested address: make_sock: could not bind to address 10.0.0.1:443
[Thu Jun 14 10:49:20 2007] [alert] no listening sockets available, shutting down
[Thu Jun 14 10:49:20 2007] [alert] no listening sockets available, shutting down

Resolution

This error is due to an invalid request to bind to an IP address. It is corrected by removing the offending line(s) from the configuration file by doing the following :
  1. Open the configuration file (typically :
    SYS:/Apache2/conf/httpd.conf
    ).
  2. Locate the "Listen" and "SecureListen" lines containing the IP address that is not on the server. If this is a cluster resource, it may be desirable to remove the IP address and colon from the Listen and SecureListen lines (requires having only one Listen and one SecureListen line) setting Apache to listen on all available IP addresses.
  3. Save the file.
  4. Clear the logs directory (SYS:/Apache2/logs).
  5. Restart Apache using the AP2WEBUP command.
  6. Ensure that Apache loaded.