How do I change iManager 2.5 ports on OES Linux?

  • 7006101
  • 25-May-2010
  • 27-Apr-2012

Environment

Novell Open Enterprise Server 1 (OES 1) Linux Support Pack 1
Novell iManager 2.5

Situation

How do I change iManager 2.5 ports on OES Linux?

Resolution

The configuration files for Apache 2 on Linux are stored in /etc/apache2 and the listening ports are specifically configured in the listen.conf file.

By default only two lines in the file have "Listen" on them.  The first instance reads, "Listen 80" and is in the default scope of the file.  The "Listen 443" line is in an <IfModule mod_ssl.c> block meaning that port 443 only listens if SSL is enabled, which it should be.

To change the ports, change (as the root user) the numeric part of those lines and restart Apache, which can be done with the following command 

/etc/init.d/apache2 restart   (rcapache2 restart may work as well).

Tomcat does not need to be restarted.

You should see Apache go down and come back up with a message of 'done' in green after the start before the prompt is returned.

Additional Information

iManager 2.5 uses ports 80 and 443 due to Apache's default configuration. Other services may require these ports.  With these ports a user is not required to specify a port when accessing the site via a browser over http or https.  However, after changing the port number you will need to specify the new port in the browser along with the IP address or DNS name.
Needing to change services from alternate ports back to 80 or 443 when Apache has been the second service installed to these ports and was changed automatically to other ports.
Sample listen.conf file:

# Listen: Allows you to bind Apache to specific IP addresses and/or
# ports. See also the <VirtualHost> directive.
#
# http://httpd.apache.org/docs-2.0/mod/mpm_common.html#listen
#
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses (0.0.0.0)
#
# When we also provide SSL we have to listen to the
# standard HTTP port (see above) and to the HTTPS port
#
# Note: Configurations that use IPv6 but not IPv4-mapped addresses need two
#       Listen directives: "Listen [::]:443" and "Listen 0.0.0.0:443"
#
#Listen 12.34.56.78:80
#Listen 80
#Listen 443

Listen 80


<IfDefine SSL>
    <IfDefine !NOSSL>
        <IfModule mod_ssl.c>

            Listen 443

        </IfModule>
    </IfDefine>
</IfDefine>


# Use name-based virtual hosting
#
# - on a specified address / port:
#
#NameVirtualHost 12.34.56.78:80
#
# - name-based virtual hosting:
#
#NameVirtualHost *:80
#
# - on all addresses and ports. This is your best bet when you are on
#   dynamically assigned IP addresses:
#
#NameVirtualHost *
 
Formerly known as TID# 10099277
Formerly known as TID# NOVL103838