This post covers steps to start OHS (Oracle HTTP Server) 11g on port 80 on Unix (To start any process on port < 1024 that process should run as ROOT). If you are looking for steps to start WebLogic Server on port 80 (Non SSL) or 443 (SSL) then click here
.
Steps in this post assumes that you have standalone HTTP Server (No WebCache or WebLogic Server configured with this HTTP Server – If you have WebCache or WebLogic Server then change Origin Server setting in WebCache or some additional settings your applications)
On UNIX systems, if you change the Oracle HTTP Server Listen port number to a value less than 1024, you must enable Oracle HTTP Server to run as root, as follows:
1. Allow root to start HTTP Server
1.1Login as root
1.2 Run following command as root
cd ORACLE_HOME/ohs/bin (Oracle Home in Fusion Middleware 11g is under Middleware Home MW_HOME to know more about ORACLE_HOME, MW_HOME or INSTANCE_HOME in 11g Click here)
chown root .apachectl (Note* dot infront of apachectl which in Unix means this is hidden file)
chmod 6750 .apachectl
.
.
2. Change httpd.conf(using user owning OHS – awebtier in my case)
2.1Login as owning OHS 11g
2.2 cd $INSTANCE_HOME/config/OHS/ohs1 (INSTANCE_HOME for OHS by default is $MW_HOME/Oracle_WT1/instances/instance1)
2.3cp httpd.conf httpd.conf_pre_port_80
2.4 Change value against Listen to 80 (by default LISTEN value for OHS is 7777 or 7778 for OHS with webcache)
.
.
3.Start OHS using OPMN (using user owning OHS – awebtier in my case)
3.1cd $INSTANCE_HOME/bin (or $MW_HOME/Oracle_WT1/instances/instance1/bin)
3.2./opmnctl startall (stopall and startall if opmn is already running)
4. Test OHS via URL
4.1 Check if port 80 is listening on that machine “netstat -an | grep 80”
4.2 Type URL http://servername:80 (If you don’t specify port with http by default it takes port 80)
.
.
References