Monday, May 14, 2007

EMAgent.exe conflicts with Apache

I installed Oracle HTTP server in a virtual machine and using the DADS.conf file pointed it to a back-end Oracle database server. This worked fine until I restarted the server. Suddenly I wasn't able to get to my Apache using port 80, something else was using it.

Using the DOS command "netstat -n -a -b" I was able to see process emagent.exe was using port 80. After some Google searches it turns out emagent.exe is the Oracle Enterprise Manager. I then found this thread in the Oracle discussion forum on how to change the properties of the emagent.exe process to run on a different port number. I changed the Apache server port back to 80 and restarted the server and can now access the Apache process on port 80.

Went to: {drive}:\{Oracle_home}\sysman\config\emd.properties

Changed: # EMD main servlet URL # EMD_URL=http://{your dns name}:/emd/main/ Note the "colon" with no port number, so this must default to port 80.