Complete the following steps to install WebLogic and Oracle HTTPS Server (OHS) as a service on a Linux 64-bit operating system.
- Set WL_HOME as system environment variable or modify it in <unifier_home>/weblogic/setenv.sh. WL_HOME is the root directory of the WebLogic installation. For detailed instructions, refer to the topic, Creating a WebLogic Domain for Unifier on Windows to create the Domain Home for weblogic.
For example: C:\Oracle\Middleware\wlserver_11\server
- Set the environment variables for Unifier. For detailed instructions, refer to Changing Unifier Configurator Settings on Windows.
- For WebLogic installed in production mode, create boot.properties at $DOMAIN_HOME/servers/<server_name>/security.
- Ensure all variables are set for a ROOT_USER.
- Login to Linux as a ROOT_USER.
- In the <unifier_home>/weblogic/unifier, modify values for the following parameters:
- OHS_INSTANCE_HOME: The home directory of OHS.
- UNIFIER_HOME: The home directory of Primavera Unifier.
- OHS_USER: User who can start OHS. Alternatively, locate the user in the httpd.conf file.
- WL_USER: User who can start WebLogic.
Note: Change the command to start weblogic in accordance to the user privilege on the system.
- Ensure that when the server is restarted the Xvfb process is also started with the same DISPLAY value as follows for the ROOT_USER:
- Install Xvfb
yum install Xvfb
- start Xvfb
locate Xvfb (where Xvfb is installed)
/usr/bin/Xvfb :99 -screen 0 1x1x8 &
- Edit the unifier file to add:
export DISPLAY=:99
- Install Xvfb
- Copy the unifier script into the /etc/rc.d/init.d folder
- To make the file executable, run the command: chmod 755 unifier
- To add the service at system reboot, run the command: chkconfig --add unifier
- To start the unifier service from the console, run the command: service unifier start
Stopping the Service
To stop the unifier service from the console, run the command: service unifier stop
Uninstalling the Service
To remove the service, run the command: chkconfig --del unifier