Configure Oracle HTTP Server (OHS) 12c ( 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/ 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/ ohs1

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 in 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 Tuning, Routine Tasks Automation and Database/Applications Health Checks. Started Oracle related Career from Oracle 6. Worked on 7, 8, 9i, 10g, 11g, 12c & e-Business 11.0.3, 11.5.9,, R12 and R12.2. Distinct Technical Jobs such as installation, migration, implementation, upgrade, cloning, and maintenance were performed hundreds number of times. Database and Applications (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. Contact Me for Database/Applications Installation, Upgrade, Migration, Disaster Recovery, Troubleshooting and Health Checks.

Leave a Comment:

Aaron says September 5, 2018

this works to get OHS 12c listening on a privileged port, but once the process is running and owned by root, how do you stop it as oracle? ohs1 run as oracle cannot kill it.

    Sravan says October 23, 2018

    You can stop it using nmconnect from

    cd /u01/ora/mwohs/oracle_common/common/bin
    nmKill(serverName=’ohs1′, serverType=’OHS’)
    nmStart(serverName=’ohs1′, serverType=’OHS’)

Add Your Reply

Not found