Thursday, November 13, 2014

Oracle HTTP Server 12.1.3 Installation & Configuration

OHS 12.1.3 have some minor changes in the installation process. It now has the flexibility to create any number of instances in one shot while configuring it.

Although this installation is straight forward, the installer will halt during configuration.

Download fmw_12.1.3.0.0_ohs_linux64.bin from Oracle website

OHS installation:
=============

[oracle@demo ~]$ cd /oracle/softwares/OHS_12.1.3
[oracle@demo OHS_12.1.3]$ chmod +x fmw_12.1.3.0.0_ohs_linux64.bin
[oracle@demo OHS_12.1.3]$ ./fmw_12.1.3.0.0_ohs_linux64.bin
0%....................................................................................................100%
Launcher log file is /oracle/tmp/OraInstall2014-11-13_07-28-32PM/launcher2014-11-13_07-28-32PM.log.
Starting Oracle Universal Installer

Checking if CPU speed is above 300 MHz.   Actual 2691.389 MHz    Passed
Checking monitor: must be configured to display at least 256 colors.   Actual 16777216    Passed
Checking swap space: must be greater than 512 MB.   Actual 10698748 MB    Passed
Checking if this platform requires a 64-bit JVM.   Actual 64    Passed (64-bit not required)
Checking temp space: must be greater than 300 MB.   Actual 15850 MB    Passed


Preparing to launch the Oracle Universal Installer from /oracle/tmp/OraInstall2014-11-13_07-28-32PM

Log: /oracle/tmp/OraInstall2014-11-13_07-28-32PM/install2014-11-13_07-28-32PM.log










OHS Configuration:
===============

Navigate to /oracle/middleware_ohs_1213/oracle_common/common/bin
./config.sh









Installation will hang at 33% for sometime. approximately 2 to 4 minutes.

If you check the logs under /oracle/middleware_ohs_1213/logs you will notice the below


2014-11-13 19:39:59,373 INFO  [1] com.oracle.cie.wizard.internal.wcf.WCFWrapper - Overriding task definition summary_gui
2014-11-13 19:40:02,810 INFO  [12] com.oracle.cie.domain.DomainRegistryWrapper - need to initialize domainRegistrydocument object
2014-11-13 19:40:47,888 INFO  [12] com.oracle.cie.domain.WLSTemplateBuilder - No config groups xml found in template
2014-11-13 19:40:51,759 INFO  [12] com.oracle.cie.domain.AbstractTemplate - Adding component reference
2014-11-13 19:40:51,953 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'wlserver' version '0.0.0.0'
2014-11-13 19:40:52,081 INFO  [12] com.oracle.cie.domain.WLSTemplateBuilder - No config groups xml found in template
2014-11-13 19:40:52,154 INFO  [12] com.oracle.cie.domain.AbstractTemplate - Adding component reference
2014-11-13 19:40:52,163 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'ohs' version '0.0.0.0'

2014-11-13 19:40:52,211 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'ohs' version '0.0.0.0'

DON'T PANIC !!!!!

The installation will go forward





Logs after successful installation:
=========================

2014-11-13 19:39:59,373 INFO  [1] com.oracle.cie.wizard.internal.wcf.WCFWrapper - Overriding task definition summary_gui
2014-11-13 19:40:02,810 INFO  [12] com.oracle.cie.domain.DomainRegistryWrapper - need to initialize domainRegistrydocument object
2014-11-13 19:40:47,888 INFO  [12] com.oracle.cie.domain.WLSTemplateBuilder - No config groups xml found in template
2014-11-13 19:40:51,759 INFO  [12] com.oracle.cie.domain.AbstractTemplate - Adding component reference
2014-11-13 19:40:51,953 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'wlserver' version '0.0.0.0'
2014-11-13 19:40:52,081 INFO  [12] com.oracle.cie.domain.WLSTemplateBuilder - No config groups xml found in template
2014-11-13 19:40:52,154 INFO  [12] com.oracle.cie.domain.AbstractTemplate - Adding component reference
2014-11-13 19:40:52,163 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'ohs' version '0.0.0.0'
2014-11-13 19:40:52,211 WARNING [12] com.oracle.cie.domain.AbstractTemplate - Could not find component name 'ohs' version '0.0.0.0'
2014-11-13 19:47:23,047 INFO  [38] com.oracle.cie.domain.security.OracleWalletHelper - Creating default oracle wallet at /oracle/middleware_ohs_1213/user_projects/domains/base_domain/security
2014-11-13 19:47:23,661 WARNING [38] com.oracle.cie.domain.startup.StartupGroupHelper - No server groups for server: AdminServer
2014-11-13 19:47:23,661 WARNING [38] com.oracle.cie.domain.startup.ServerStartupConfigEnv - Unable to specify startup groups
2014-11-13 19:47:23,668 WARNING [38] com.oracle.cie.domain.startup.StartupPlanHelper - Not generating startupEnv startscript.
2014-11-13 19:47:23,923 INFO  [38] com.oracle.cie.domain.DomainGeneratorStandAlone - Domain Generation Successful!


OHS Start/Stop:
=============

[oracle@demo bin]$ cd /oracle/middleware_ohs_1213/user_projects/domains/base_domain/bin/
[oracle@demo bin]$ nohup ./startNodeManager.sh &

If you run nohup for starting the OHS instance, it will FAIL !!! because it will ask for NodeManager password.

[oracle@demo bin]$ nohup ./startComponent.sh ohs_instance1 &
[2] 11211
[oracle@demo bin]$ nohup: ignoring input and appending output to `nohup.out'

[oracle@demo bin]$ tail -f nohup.out
<Nov 13, 2014 8:11:01 PM EST> <INFO> <Secure socket listener started on port 5556, host localhost/127.0.0.1>
Starting system Component ohs_instance1 ...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Reading domain from /oracle/middleware_ohs_1213/user_projects/domains/base_domain


Please enter Node Manager password:Error: Failed to get value from Standard Input: Bad file descriptor
Error: java.lang.NullPointerException


Exiting WebLogic Scripting Tool.

Done


Correct way to start OHS:
====================

[oracle@demo bin]$ ./startComponent.sh ohs_instance1
Starting system Component ohs_instance1 ...

Initializing WebLogic Scripting Tool (WLST) ...

Welcome to WebLogic Server Administration Scripting Shell

Type help() for help on available commands

Reading domain from /oracle/middleware_ohs_1213/user_projects/domains/base_domain


Please enter Node Manager password:
Connecting to Node Manager ...
Successfully Connected to Node Manager.
Starting server ohs_instance1 ...
Successfully started server ohs_instance1 ...
Successfully disconnected from Node Manager.


Exiting WebLogic Scripting Tool.

Done
[oracle@demo bin]$


 Logs for OHS located at
/oracle/middleware_ohs_1213/user_projects/domains/base_domain/servers/ohs_instance1/logs

 Launch the page


Cheers :)

No comments:

Post a Comment

Other Posts