HP’s Oracle Blog

Notes of a Junior on the Path to Oracle Mastery


Notes of a Junior on the Path to Oracle Mastery
On this blog I am writing about thoughts, solutions, failures and pitfalls on the path to Oracle Mastery. It’s still a long way to go. On this blog, the main focus is learning Oracle.

APEX on Port 80

Author: HP Fuchs | Category: APEX, Oracle Database

The Oracle HTTP Server used by APEX defaults to port 7777. If this port is otherwise used, OHS defaults to 7778, and so on. Now perhaps you don’t want to run your Application on a cryptic URL like http://apex-s10bas.youdomain.com:7777/pls/apex, but rather on www.apex.yourdomain.com/pls/apex. On this matter the Oracle HTTP Server or APEX Documentation will not help you if you are not familiar with the configuration of Apache Server.

But actually it’s quite easy to move APEX to port 80. You only have to alter the file httpd.conf in directory D:\oracle\orahttp101\Apache\Apache\conf:

#before
#Port 7777
#Listen 7777

#after
Port 80
Listen 7777
Listen 80

From now on Oracle HTTP Server listens on Port 80. To change the URL you have to go to httpd.conf again and alter the server name. You need to have a DNS entry for the server name:
ServerName www.apex.yourdomain.com
Probably Oracle HTTP Server now doesn’t run anymore after you restart it. This is because port 80 is already used by something else. Perhaps there is another webserver listening on port 80? IIS? Or is it the Oracle Enterprise Manager Agent? Indeed! If you install Oracle HTTP Server on a dedicated server EMAgent will be installed as well and runs on port 80. But it’s easy to change this after the installation. Look for emd.properties in directory D:\oracle\orahttp101\sysman\config and change
EMD_URL=http://APEX-S10BAS.yourdomain.com:/emd/main/
into something like this:
EMD_URL=http://APEX-S10BAS.yourdomain.com:7778/emd/main/

Reboot your server, if EM Agent (not DB console) is still listening on port 80.

May 24th, 2007.

Your comment