We help IT Professionals succeed at work.

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
Comment
Watch Question

Bill HendersonWeb Marketing

Author

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
Commented:
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/
Bill HendersonWeb Marketing

Author

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
Bill HendersonWeb Marketing

Author

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

Bill

Commented:
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.




Commented:
Oh you answered already. I hope it works out for you. IF not post back and I'll try and help.