Viewing Port Numbers Using the Command Line

Managing Ports 5-3 This section provides the following topics: ■ Changing the Oracle WebLogic Server Listen Ports ■ Changing the Oracle HTTP Server Listen Ports ■ Changing Oracle Web Cache Ports ■ Changing OPMN Ports ONS Local, Request, and Remote ■ Changing Oracle Portal Ports ■ Changing the Oracle Database Net Listener Port For information about changing other ports, see: ■ Configuring Server Properties or Setting System Configuration Attributes by Using ldapmodify in the Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory for information about changing Oracle Internet Directory ports ■ Overview of Node Manager Configuration in the Oracle Fusion Middleware Node Manager Administrators Guide for Oracle WebLogic Server for information about changing the Node Manager port. ■ Configuring Oracle Virtual Directory to Listen on Privileged Ports in the Oracle Fusion Middleware Administrators Guide for Oracle Virtual Directory

5.3.1 Changing the Oracle WebLogic Server Listen Ports

You can change the non-SSL HTTP listen port and the SSL HTTPS listen port for a WebLogic Server Administration Server or a Managed Server using the Oracle WebLogic Server Administration Console or WLST, as described in the following topics: ■ Changing the Oracle WebLogic Server Listen Ports Using the Administration Console ■ Changing the Oracle WebLogic Server Listen Ports Using WLST

5.3.1.1 Changing the Oracle WebLogic Server Listen Ports Using the Administration Console

To change the non-SSL HTTP listen port and the SSL HTTPS listen port for a WebLogic Server Administration Server or a Managed Server using the Oracle WebLogic Server Administration Console: 1. Navigate to the server. The Settings for server_name page is displayed. 2. On the General tab, change the number of the Listen Port or SSL Listen Port. 3. If the server is running, restart the server. Note: You can change a port number to any number you want, if it is an unused port. You do not have to use a port in the allotted port range for the component. See Appendix C for information on allotted port ranges. See Also: Oracle Fusion Middleware Configuring Server Environments for Oracle WebLogic Server for more information about changing Oracle WebLogic Server ports 5-4 Oracle Fusion Middleware Administrators Guide 4. If other components rely on the Oracle WebLogic Server listen ports, you must reconfigure those components. For example for Oracle Portal, if the listen port for the Oracle WebLogic Server configured as WLS_PORTAL is changed, then you must make a corresponding change to the configuration in Oracle HTTP Server, which is pointing to the older port. Change the port number in the following file: ORACLE_INSTANCEOHSohs_namemoduleconfportal.conf

5.3.1.2 Changing the Oracle WebLogic Server Listen Ports Using WLST

To change the non-SSL HTTP listen port and the SSL HTTPS listen port for a WebLogic Server Administration Server or a Managed Server using the WLST command line. You must run the commands in offline mode; that is, you must not be connected to a server. For example to change the Administration Server HTTP listen port to port 8001, use the following WLST commands: readDomainMW_HOMEuser_projectsdomainsdomain_name cdserversAdminServer cmo.setListenPort8001 updateDomain

5.3.2 Changing the Oracle HTTP Server Listen Ports

To change the Oracle HTTP Server Listen ports non-SSL or SSL, there are often dependencies that must also be set. For example, if you are using Oracle Web Cache to improve the performance of your Oracle Fusion Middleware environment, you must modify the Oracle Web Cache origin server settings whenever you modify the Oracle HTTP Server Listen ports. The following topics describe how to modify the Oracle HTTP Server HTTP or HTTPS Listen port: ■ Enabling Oracle HTTP Server to Run as Root for Ports Set to Less Than 1024 UNIX Only ■ Changing the Oracle HTTP Server Non-SSL Listen Port ■ Changing the Oracle HTTP Server SSL Listen Port

5.3.2.1 Enabling Oracle HTTP Server to Run as Root for Ports Set to Less Than 1024 UNIX Only

On a UNIX system, if you are changing the Listen port to a number less than 1024, perform these steps before you change the Oracle HTTP Server Listen port. By default, Oracle HTTP Server runs as a non-root user the user that installed Oracle Fusion Middleware. On UNIX systems, if you change the Oracle HTTP Server Listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows: 1. Log in as root. 2. Run the following commands in the Oracle home: cd ORACLE_HOMEohsbin chown root .apachectl chmod 6750 .apachectl