running multiple ASP and PHP sites on one Windows 2008 web server


IIS7 apprentice but Apache total newb here.

The title says it all. I have, say 10 ASP sites using Access databases and 10 PHP sites using MySQL databases and I'd like to serve them on one box.

I have two IP addresses for this web server. I have Apache 2.2 installed and I edited httpd file to
Listen XX.XXX.XXX.XXX:80 - where XXX is my second IP address

This allowed me to finally start the Apache service, which had been conflicting with IIS by default I believe, because of Port 80.

Anyway, now with two IP addresses properly set up and httpd file edited so Apache Listens for the second file, am I going to be able to run asp apps and php apps on this box? Should I have all ASP websites in one directory and all PHP websites in another directory? Or does Apache have an equivalent to IIS when setting up a new site and you point to a particular directory to serve each site?

Any advise here?

What am I reading about two LAN adapters being needed for this? Is that correct?

I notice that running netstat -an is not showing me my second IP address. and is still present. This is after restarting the server.

Am I making sense here?

Thanks for your time

Bill HendersonWeb MarketingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill HendersonWeb MarketingAuthor Commented:
I should also mention, this is on a 1and1 dedicated Windows 2008 server.

I have the IP address through their service, and both are associated with my dedicated server package. I also have two test domains with which to test PHP success and ASP success separately.


Firstly I would not do what you are trying to do.

You need to run a number of asp and php sites on windows 2008?

If so then don't install Apache (or install it if you have already install it) just run IIS and install the asp and php modules. Your proposed solution is messy and even if you not using asp site and just need php I would still recommend IIS and php. Although Apache does work under windows if is a real pain and there is no good reason to install it -  - unless you specially need Apache features

click the link and install php on

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bill HendersonWeb MarketingAuthor Commented:
OK interesting - maybe you can tell me - many of the php sites are Joomla! sites. With things like mod_rewrite, or image upload and manipulation, am I just going to run into problem after problem without apache?

Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

Bill HendersonWeb MarketingAuthor Commented:
LOL - Joomla was listed at your link when I finally looked there. Thanks for the help!

ok then you get some potential issues. if you use the module specific stuff in Apache like mod-rewrite.

I am not sure what your image upload/manipulation is but if that require a Apache module then you will have issues if it is just php code then you are fine.

You can the IIS equivalent to mod-rewrite called URLrewrite that installs with php installer link I gave you and can have Joomla under IIS though.

Here is the installer.

Maybe try this first?!

I would serious look it 2 separate machines if you *need* Apache and IIS.

I would consider you will run into problem after problem with both on the same machine. And you cannot have both running on port 80 either so one lot of sites will have to enter the port.

Oh you answered already. I hope it works out for you. IF not post back and I'll try and help.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.