Link to home
Start Free TrialLog in
Avatar of DarkHill
DarkHill

asked on

Run IIS and Apache on same server

We currently have a dedicated server (Win 2003) running IIS and MS SQL. I would like to know can I run Apache with PHP and MySQL on that same server? I don't want to run PHP through IIS.
Avatar of fosiul01
fosiul01
Flag of United Kingdom of Great Britain and Northern Ireland image

There is no problem of runing php via IIs, its a very normal that php will run under IIS

anyway, if you want to run 2 webserver (IIs and apache) then you will have to define different port number for One webserver

you cant run both IIs and apache on port 80

so if your IIS run on port 80 , then you will have set apache to run on port 8080 ( or other)

and you will have to call any website running on apache like this

www.mydomain.com:8080
Avatar of DarkHill
DarkHill

ASKER

I would run PHP on IIS but I need to make use of Apache specific features like .htaccess for URL rewriting.

Also, can you not just run each IIS and Apache on a different IP?
YOu can have more then 2 ip , its fine.
but when some one will type www.mydomain.com

all trafiq will come to your server via port 80.

so by default IIS and apache will try to run on port 80, and 2 services cant run on Same port, so you will have to change port number for one webserver.

so if www.mydomain.com run under IIS -> 80  it wil come straight forward
now if www.acbc.com run Under apache -> 8080  -. you will have to say which port to go.

have read this one , about IIS support url rewrite , it would not be perfect like httacces but you can have a look

http://ask-leo.com/does_iis_support_url_rewriting.html
ASKER CERTIFIED SOLUTION
Avatar of Pramod Nair
Pramod Nair
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial