#########################################################################################################################
# README TO FOLLOW THE INSTRUCTION TO PERFORM SILENT INSTALLATION AND CONFIGURATION OF ORACLE HTTP SERVER 12.2.1.4.0
#########################################################################################################################

Oracle HTTP Server Download Link: 
https://www.oracle.com/in/middleware/technologies/webtier-downloads.html

---------------------------------------------------------------------------------------------------------
Oracle HTTP Server 12.2.1.4.0

Install in the below sequence:

1. Java Developers Kit 8

2. Oracle HTTP Server 12.2.1.4 Linux 64 bit.

3. Configure Oracle HTTP Server 12.2.1.4.0 
---------------------------------------------------------------------------------------------------------

Download the Prerequisite Softwares:
------------------------------------
1. Download Java Development Kit (JDK) 8:
https://www.oracle.com/java/technologies/downloads/#java8
Under the Linux OS, Select the Compressed Archive based on your Operating System).
e.g. x64 Compressed Archive --> jdk-8u411-linux-x64.tar.gz

2. Download the Oracle HTTP Server 12c (12.2.1.4):
Go to the section "Oracle HTTP Server 12.2.1.4" and Download Linux 64-bit File.
https://www.oracle.com/in/middleware/technologies/webtier-downloads.html

3. Installing Libraries Required for FMW
https://docs.oracle.com/en/middleware/fusion-middleware/12.2.1.4/sysrs/system-requirements-and-specifications.html#GUID-37C51062-3732-4A4B-8E0E-003D9DFC8C26
 
4. If the OS version is 8 (OEL8 | RHEL8) some Libraries are not availabe.
Follow the Support Doc ID 2652061.1 and apply the patches 31190532 and 31090393.
https://updates.oracle.com/Orion/Services/download/p31190532_122140_Generic.zip?aru=23678728&patch_file=p31190532_122140_Generic.zip
https://updates.oracle.com/Orion/Services/download/p31090393_122140_Linux-x86-64.zip?aru=23593076&patch_file=p31090393_122140_Linux-x86-64.zip

########################################################################

# Login to Oracle Linux 7.x/8.x Compute as opc user.

Create a Folder e.g., /tmp/softwares as opc user.
Copy all the downloaded softwares to /tmp/softwares as opc user.
Copy the script 01_Create_OHS_Install_User_Group.sh to /tmp/softwares as opc user.
Copy the script 02_OHS_Install_Silent.sh to /tmp/softwares as opc user.
Copy the script 03_Create_OHS_Domain.sh to /tmp/softwares as opc user.
Copy the script create_ohs_domain.py to /tmp/softwares as opc user.
Change ownership of /tmp/softwares folder from opc user to oracle or OHS Install User and Group.
Give Execute permissions to the script 01_Create_OHS_Install_User_Group.sh.

########################################################################

# Execute the Script "01_Create_OHS_Install_User_Group.sh" as root user.
#-----------------------------------------------------------------------
This script creates a group "oinstall" and a user "oracle".
Grants sudo permissions without password to the oracle user.
Changes the ownership of the "/tmp/softwares" folder from "opc" user to "oracle" user.
Grants execute permissions to the rest of the scripts.


************************SILENT INSTALLATION************************

# Execute the Script "02_OHS_Install_Silent.sh" as oracle user.
#------------------------------------------------------------------
This script checks if all the required softwares and patches are downloaded and are available at the required location "/tmp/softwares".
Installs Java Development Kit (JDK) 8 update 411 and set the JAVA_HOME.
Installs Oracle HTTP Server (OHS) 12.2.1.4.0.

*******************************************************************

To Install the Softwares in silent mode, we have a response file.

1. ohs_12214_rsp_file.rsp
   Set the ORACLE_HOME Path. e.g. /u01/app/ohs/Oracle/Middleware/Oracle_Home


************************SILENT CONFIGURATION***********************

# Execute the Script "03_Create_OHS_Domain.sh" as oracle user.
#------------------------------------------------------------------
This script set all required Environment Variables.
This script also calls the "create_ohs_domain.py" script to create the domain.
Starts the Oracle HTTP Server and test if it is successfully running.

#-----------------------------------------------------------------------------
# Starting Oracle HTTP Server Instances on a Privileged Ports 80 and 443
#-----------------------------------------------------------------------------

Check the OHS Documentation:
https://docs.oracle.com/middleware/1221/webtier/administer-ohs/getstart.htm#BEHDHFGE
4.3.3.4 Starting Oracle HTTP Server Instances on a Privileged Port (UNIX Only)

e.g. ORACLE_HOME=/scratch/ohsuser/Oracle/Middleware/Oracle_Home
cd $ORACLE_HOME/ohs/bin
chown root $ORACLE_HOME/ohs/bin/launch
chmod 4750 $ORACLE_HOME/ohs/bin/launch
ls -l 
example:
-rwsr-x--- 1 root    ohsgroup   36712 Sep 12  2019 launch

Also set the values to the user and group in httpd.conf file.
User ohsuser
Group ohsgroup

restart as ohsuser 
##########################################################################################################################################