How to assign a Privileged Port to OHS

Problem :
Unable to assign port 80 & 443 to http & https respectively in OHS, which is running on Linux environment. Below error logged in OHS logs

[VirtualHost: main] (13)Permission denied: make_sock: could not bind to address [::]:443

Cause:
On a UNIX system the TCP/IP port numbers below 1024 are special in that only processes with root privileges are allowed to listen on those ports.

Solution:
Login as root and Goto directory ORACLE_HOME/ohs/bin

run below command as root user

chown root .apachectl
chmod 6750 .apachectl

Now update ports in httpd.conf(for Non-SSL port) and ssl.conf(for SSL port) and can start OHS on privileged port

Reference : http://docs.oracle.com/cd/E29542_01/web.1111/e10144/getstart.htm#HSADM849

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s