Every time I need to install an 11g WebGate I keep having to reference these commands, so I’m posting them here to make my life, and hopefully yours, a little easier with some copy/paste-able commands. The commands assume OHS and the WebGate are installed with the default names for everything (Oracle_WT1, Oracle_OAMWebGate1, instance1, ohs1). If that’s not the case, you’ll need to update the paths

Assuming you’ve also registered an 11g WebGate in the OAM Console with name %WEBGATENAME%…

./runInstaller –jreLoc $JAVA_HOME
cd $MW_HOME/Oracle_OAMWebGate1/webgate/ohs/tools/deployWebGate
./deployWebGateInstance.sh -w $MW_HOME/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh $MW_HOME/Oracle_OAMWebGate1
export LD_LIBRARY_PATH=$MW_HOME/Oracle_WT1/lib
cd $MW_HOME/Oracle_OAMWebGate1/webgate/ohs/tools/setup/InstallTools
./EditHttpConf -w $MW_HOME/Oracle_WT1/instances/instance1/config/OHS/ohs1 -oh $MW_HOME/Oracle_OAMWebGate1 -o out.log

Next copy the WebGate artifact files from $DOMAIN_HOME/output/$WEBGATENAME% to $MW_HOME/Oracle_WT1/instances/instance1/config/OHS/ohs1/webgate/config.
Restart OHS and you’re done.