Friday, November 1, 2019

Oracle Webtier 12c ( HTTP Server ) installation and Configure to run Privilege port 80

Oracle Webtier 12c ( HTTP Server ) installation and Configure to run Privilege port 80

Download software form support and unzip the software as below:

[oracle@test u02]$ unzip Oracle_Http_Server_12c_Linux_X86_64bit.zip
Archive:  Oracle_Http_Server_12c_Linux_X86_64bit.zip
  inflating: fmw_12.2.1.2.0_ohs_linux64.bin

  inflating: fmw_12212_readme.htm

Prior running below command set your display setting

[oracle@test u02]$./fmw_12.2.1.2.0_ohs_linux64.bin

















 You can see above web url opening with default port 7777 we wanted to change it to port 80 .

Few ports are explicitly reserved for system.
If you want to use those port then few other settings needs to be modified.

Shutdown OHS

[oracle@test bin]$ ./stopComponent.sh ohs1

[oracle@test bin]$ cd /u02/ohs_home/user_projects/domains/base_domain/config/fmwconfig/components/OHS/ohs1

[oracle@test ohs1]$ cp httpd.conf httpd.conf_org
[oracle@test ohs1]$ vi httpd.conf

Modify two values as mentioned below:

From :

Listen 192.168.171.20:7777
ServerName http://192.168.171.20:7777

To :

Listen 192.168.171.20:80
ServerName http://192.168.171.20:80




While starting OHS after modified port we are getting below error:

[oracle@test bin]$ ./startComponent.sh ohs1
Starting system Component ohs1 ...

weblogic.nodemanager.NMException: Received error message from Node Manager Server: [Server start command for OHS server 'ohs1' failed due to: [Failed to start the server ohs1
Check log file /u02/ohs_home/user_projects/domains/base_domain_new/system_components/OHS/ohs_nm.log
Check log file /u02/ohs_home/user_projects/domains/base_domain_new/servers/ohs1/logs/ohs1.log]. Please check Node Manager log and/or server 'ohs1' log for detailed information.]. Please check Node Manager log for details.
Error: Error occurred while performing nmStart : Error Starting server ohs1 : Received error message from Node Manager Server: [Server start command for OHS server 'ohs1' failed due to: [Failed to start the server ohs1
Check log file /u02/ohs_home/user_projects/domains/base_domain_new/system_components/OHS/ohs_nm.log
Check log file /u02/ohs_home/user_projects/domains/base_domain_new/servers/ohs1/logs/ohs1.log]. Please check Node Manager log and/or server 'ohs1' log for det
ailed information.]. Please check Node Manager log for details.
Use dumpStack() to view the full stacktrace :


After followed one of Oracle Doc id ohs came up fine:


[oracle@test bin]$ ./startComponent.sh ohs1
....
......
Successfully started server ohs1 ...
Successfully disconnected from Node Manager.


Exiting WebLogic Scripting Tool.

Done

Now URL coming with 80 as mentioned below:






Regards,

1 comment:

  1. After followed one of Oracle Doc id ohs came up fine:
    What is the document ID, can you please share ?

    ReplyDelete