Start Free Trial
Come for the solution, stay for everything else.
Start Free Trial
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.
8/22/2022 - Mon
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
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
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
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
ASKER CERTIFIED SOLUTION
Log in or sign up to see answer
Become an EE member today
7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
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
Plans and Pricing
Certified Expert Program
© 1996-2022 Experts Exchange, LLC. All rights reserved. Covered by US Patent