2 Replies Latest reply on Dec 3, 2010 4:36 AM by jmft2012

    Oracle Http server 11g, change ports with command-line tool

    jmft2012
      I have installed the WLS11g webtier's Oracle Http server 11g. I installed the OH 11g only.
      The OH is runing fine with ports: non-ssl 7779 and ssl 4444
      I want to change the ssl port to 443 such that we can have the url without showing the port as https://hostname.domain/
      I have looked up the documnet http://download.oracle.com/docs/cd/E15523_01/core.1111/e10105/ports.htm#CIHJIFHB for "managing port".
      it states "You can change the port numbers for some Oracle Fusion Middleware components, using Fusion Middleware Control, Oracle WebLogic Server Administration Console, or *the command line*."

      Because I only installed the OH, I have no the Fusion Middleware control , admin console available for making the port change. And I cannot find out how to the command line tool to make the change.

      I followed the steps in section 5.3.2.1 Enabling Oracle HTTP Server to Run as Root for Ports Set to Less Than 1024 (UNIX Only) http://download.oracle.com/docs/cd/E15523_01/core.1111/e10105/ports.htm#CIHJEEJH
      And I did edit ssl.conf for port change to 443 ---- this is not documented in the document. I think because Oracle wants you to use the console to make the change.

      OH is not working after I made the change.

      Does anyone know how to use the commend line tool for making the port changes for OH11g?

      Thanks
        • 1. Re: Oracle Http server 11g, change ports with command-line tool
          Jay SenSharma MiddlewareMagic
          Hi,


          if u want to achieve it using JMX then u can try :
          http://middlewaremagic.com/weblogic/?p=613

          Using Command Line Option WLST you can do it in ONLINE Mode...like:

          Step1). Please run the ". ./setWLSEnv.sh" script to set the CLASSPATH & PATH in the shell prompt.
          <b><font color=red>NOTE:</font></b> Run the “setWLSEnv.sh” by adding two DOTs separated by a single space …..before the actual script like following : (use ‘cd’ command to move inside the <BEA_HOME>/wlserver_10.3/server/bin) then run the following command….
          *. ./setWLSEnv.sh*
          Note: the first DOT represents that set the Environment in the current Shell, AND the second ./ represents execute the script from the current directory.




          Step2). Now in the same Shell Prompt please run the WLST Utility like following:

          <b><font color=maroon>
          java weblogic.WLST
          wls:/offline> connect()
          Please enter your username [weblogic] : weblogic
          Please enter your password [weblogic] : weblogic
          Please enter your server URL [t3://localhost:7001] : t3://localhost:7001
          Connecting to t3://localhost:7001 with userid weblogic ...

          edit()
          startEdit()
          cd ('Servers/AdminServer')
          cmo.setListenPort(9999)
          save()
          activate()
          </font></b>


          Now you NEED NOT to restart your Server to reflact these Changes....
          The Above JMX Code is also able to do it in Runtime only on the Fly.


          .
          .
          Thanks
          Jay SenSharma
          http://middlewaremagic.com/weblogic (Middleware Magic Is Here)
          • 2. Re: Oracle Http server 11g, change ports with command-line tool
            jmft2012
            If you had read mine throughly, I oNLY installed the OH11g from the WebTier installation of WLS11g.
            I do not have any WLS components installed except OH11g.