Tuesday, July 15, 2008

Configure Oracle HTTP Server To Run For Port 80

Configure Oracle HTTP Server To Run For Port 80


1.Stop Oracle HTTP Server using Application Server Control, or with the following opmn command, as the oracle user (not root):

# opmnctl stopall


2.Issue the following command as root: Log in as root.



3. Run the following commands in the middle-tier Oracle home:

# cd ORACLE_HOME/Apache/Apache/bin
# chown root .apachectl
# chmod 6750 .apachectl

(Be sure to now leave the root login)


3. Update the Application Server Control Console with the new port number:

Edit the following file : as the oracle user (not root)

ORACLE_HOME/Apache/Apache/conf/httpd.conf
Take a backup of httpd.config
cp httpd.conf httpd.conf_old_chg80
vi httpd.config
replace 7777 with 80
Save and close the file.


4. Restart the HTTP Server, as the oracle user (not root)

# opmnctl startall

5. Ensure that Oracle HTTP Server starts and uses the desired port 80.