This guide provides detailed steps for installing Oracle HTTP Server (OHS) and configuring it to work with Oracle WebLogic Server. This setup is particularly useful for managing web applications and services using Oracle's robust infrastructure.
Note: This guide assumes the use of the opc
system username and the Oracle Home directory at /home/opc/Oracle/Middleware/Oracle_Home
. These paths may vary based on your specific installation and system setup. The procedure is tested with Oracle Linux 7.9.
- Linux-based operating system (preferably Oracle Linux, openSUSE, Fedora, RHEL, or Ubuntu/Debian)
- Sudo or root access on the machine
Execute the prepare_os.sh
script to install the required dependencies. This script identifies your Linux distribution and installs the appropriate packages.
- Check Java Installation: The
setup.sh
script checks if Java is installed on the system. - Automatic JDK Installation: If Java is not found, and the OS is openSUSE or RHEL, the script will download and install JDK 8 automatically.
- Middleware Infrastructure:
- Run
setup.sh --in
to install the Middleware Infrastructure. - The script manages downloading, unzipping, and installation.
- Run
- Oracle HTTP Server (OHS):
- Install OHS by running
setup.sh --ohs
. - The script takes care of the download, unzipping, and installation process.
- Install OHS by running
After installing both Middleware Infrastructure and OHS in collocated mode:
- Set QS_TEMPLATES Environment Variable:
export QS_TEMPLATES=/home/opc/Oracle/Middleware/Oracle_Home/wlserver/common/templates/wls/wls_jrf.jar
- Run Configuration Scripts:
- Navigate to
/home/opc/Oracle/Middleware/Oracle_Home/oracle_common/common/bin
. - Execute
qs_config.sh
followed byconfig.sh
. - During the
config.sh
execution, create an OHS system component and add it to a Unix machine as part of the domain configuration.
- Navigate to
- Start Node Manager:
- Navigate to
/home/opc/Oracle/Middleware/Oracle_Home/user_projects/domains/base_domain/bin
. - Run
./startNodeManager.sh > node.out 2>&1 &
.
- Navigate to
- Start WebLogic Server:
- Execute
./startWebLogic.sh > web.out 2>&1 &
.
- Execute
- Access the Enterprise Manager (EM) Console:
- Once WebLogic Server is up, manage your domain through the EM console.
- Start Oracle HTTP Server:
- Start OHS using either
./startComponent.sh ohsName
or from the EM console.
- Start OHS using either
Following these instructions will successfully set up Oracle HTTP Server with Oracle WebLogic Server on a Linux-based system. This environment is ideal for deploying and managing web applications using Oracle's technologies.
- Developer: Asman Mirza
- Email: rambo007.am@gmail.com
- Date: 29 January, 2024