Configure Oracle HTTP Server (OHS) 12c (12.2.1.2) on port 80 / 443

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

Share This Post with Your Friends over Social Media!

About the Author Muhammad Rawish Siddiqui

Master in Computer Science and Post-Graduation in MIS. EDRP (EC-Council Disaster Recovery Professional), Security+, OCP 7.3, 10, 11g, 12c, 11i, R12, OCE 11i System Administration, Linux and RAC 10g, 11g, and OCS Performance Tuning. More than 18 years’ Information Technology consecutive hands-on experience, possess diversified business and technical background on a wide variety platforms, hardware and operating systems, in the Capacity of Sr. Team Lead Consultant, Sr. Database Administrator, Sr. Applications DBA, Sr. Resident Consultant and Manager Systems. Extensive experience in managing ERP environments and large Databases including Space Management, Backup and Recover, Performance Monitoring and Routine Tasks Automation. Started Oracle related Career from Oracle 6. Worked on 7, 8, 9i, 10g, 11g, 12c & e-Business 11.0.3, 11.5.9, 11.5.10.2, R12 and R12.2. Distinct Technical Jobs such as installation, migration, implementation, upgrade, cloning, and maintenance were performed dozen number of times. Security/Performance related Health Checks, RAC & Data Guard Implementation/Troubleshooting Switchover/Failover were also made during the tenure on the basis of As-When-Needed.

Leave a Comment:

[i]
[i]