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.
Web Servers

Avatar of undefined
Last Comment
Pramod Nair

8/22/2022 - Mon
fosiul01

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
ASKER
DarkHill

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?
fosiul01

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
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
ASKER CERTIFIED SOLUTION
Pramod Nair

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question