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

Hi,

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 0.0.0.0:80 is still present. This is after restarting the server.

Am I making sense here?

Thanks for your time

Bill
LVL 1
billium99Asked:
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.

billium99Author 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.

Thanks

Bill
0
RovastarCommented:
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

http://php.iis.net/
0

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

Thanks
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

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

Bill
0
RovastarCommented:
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.
http://www.microsoft.com/web/gallery/joomla17.aspx

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.




0
RovastarCommented:
Oh you answered already. I hope it works out for you. IF not post back and I'll try and help.
0
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.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.