Port Conflicts between Apache and ZCM

  • 3320004
  • 03-Apr-2008
  • 30-Apr-2012

Environment

Novell ZENworks 10 Configuration Management (ZCM)
Novell Apache on Linux 2.2.x
... running on ...
Novell Open Enterprise Server 2 (OES 2)
...or...
Novell SUSE Linux Enterprise Server 10 Support Pack 1

Situation

Zen Configuration Management (ZCM) 10 software was installed with the Apache service turned off. However, on starting apache after ZCM is started, or on a reboot, Apache fails to load issuing If ZCM is running, Apache will not load ("address already in use" error) :

(98)Address already in use: make_sock: could not bind to address [::]:80
...or...
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

Resolution

Apache must be altered to point to utilize different ports as the ZCM service has already been configured. To do this :
  1. Edit the /etc/apache2/listen.conf file
  2. Locate the Listen line for port 80 (search for "Listen 80").
  3. Change port 80 to 81.
  4. Locate the Listen line for port 443 (search for "Listen 443").
  5. Change 443 to 444.
  6. Save the file and exit.
  7. Open the /etc/apache2/vhost.d/vhost-ssl.conf file.
  8. Locate all instances of 443 and change them to 444.
  9. Save the file and exit.
  10. Restart apache.
Note that all references to the Apache service (e.g. iManager) will need to reference the changes in port. For example, iManager's link will become"https://servername:444/nps/servlet/portal" instead of"https://servername/nps/servlet/portal". If a page is used and fails to load, change the port to point to the ports that Apache was configured to run with.