|
|
|
I just installed ORACLE 9i on my Windows 2000 server (With IIS) and I noticed that Apache web server couldn't start so I was not able to run iSQL Plus. The reason was both IIS and Apache were trying to listen on port 80 and since IIS starts first it locks the port 80 so Apache couldn't listen on default http port 80. When you install oracle by default Apache will be configured to listen on port 80 and IIS also listen on port 80 so you can not run both IIS and Apache on the same machine using default configuration.
You have two solution to this problem depending the number of IP your machine are hosting.
Only one IP
So, you need to change the port of one of the servers. One can listen on Port 80, the other on Port 8080 (or whatever).
To change Apache to a new port :
open httpd.conf and look for two lines, one is "Listen 80" (or listen YourIpAdress:80) and the other is "Port 80". Change them to a different number, perhaps like this:
Port 8080 Listen 8080
Then save the file and restart the server. Now you can have Apache running and IIS running. One will run on the default 80 port, so http://www.mysite.com/ should work ("mysite" should be the name of your site, of course). The other will run on a different port, and will need to be specified, like this:
http://www.mysite.com:8080/
To change IIS to a new port :
- IIS managment console : open the property page for your site (or the default if you wish to change all the site you are hosting) and switch "TCP Port" to an other value. - Web console : I just clicked through the Web-based config screens until I found the spot for changing the port. Try it. Restart all the IIS services
More than one IP
Follow these steps 1 - disable the IIS multi address listning (this is the trick :-) open a console ([start] [execute] cmd ) At a command prompt, switch to the "C:\InetPub\AdminScripts" folder. Type the following command: |
exit the console Restart all the IIS process IIS is now listening only on the IP you wish !!!!!!!
2 - specify the IP you wish for your IIS sites Open IIS managment console open the property page for each of your sites and set the "IP Adress" value.
3 - specify the IP you wish for your Apache open httpd.conf (generally located at \ora90\Apache\Apache\conf\). For each of your sites, - change the ligne listen YourIpAdress:80. - Change the virtualhost sections (if you have more than one site on your apache - refere to apache docs) 4 - Restart apache and IIS
You ar now hosting multisite on apache and IIS :-))) |
|
|
|
Submitted By :
Nayan Patel
(Member Since : 5/26/2004 12:23:06 PM)
|
 |

|
Job Description :
He is the moderator of this site and currently working as an independent consultant. He works with VB.net/ASP.net, SQL Server and other MS technologies. He is MCSD.net, MCDBA and MCSE. In his free time he likes to watch funny movies and doing oil painting. |
View all (893) submissions by this author
(Birth Date : 7/14/1981 ) |
|
|