On a UNIX system, TCP ports in a reserved range (typically less than 1024) can only be bound by processes with root privilege. Oracle HTTP Server always runs as a non-root user; that is, the user who installed Oracle Fusion Middleware. On UNIX, special configuration is required to allow Oracle HTTP Server to bind to privileged ports. To enable Oracle HTTP Server to listen on a port in the reserved range (for example, the default port 80 or port 443) use the following one-time setup on each Oracle HTTP Server machine:
- Stop HTTP Server
[oracle@biweb01]$ $DOMAIN_HOME/bin/stopComponent.sh ohs1
- Change ownership of the file to root:
# chown root $ORACLE_HOME/ohs/bin/launch
- Change the permissions on the file as follows:
# chmod 4750 $ORACLE_HOME/ohs/bin/launch
- Modify the port settings for Oracle HTTP Server.
$ vi $DOMAIN_HOME/config/fmwconfig/components/OHS/instances/ohs1/httpd.conf
Findout Listen 7777 and Replace with Listen 80
- Start HTTP Server
[oracle@biweb01]$ $DOMAIN_HOME/bin/startComponent.sh ohs1
Comments are closed.