Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

what is the requirement to be able to run PHP and ASP.net on the same server?

i mean is it possible to provide 2 hosting models one for users that have ASP,NET websites and other for users use PHP and other Apache stuff on the same server or with one HTTP Server

thank you.

share|improve this question

3 Answers 3

You can run PHP on IIS, numerous guides exist on this topic. On the other side of the fence, if your using a Linux system with Apache you can use Mono and XSP to provide near complete ASP.Net 2.0 support.

share|improve this answer
    
Thank you. actually we are planning to use Linux based web server. what i understand from you is that after preparing the server with Apache and PHP then i go with configuring MONO and XSP to enable asp.net websites to be hosted successfully as well on the same server? –  bogha Nov 13 '09 at 10:28
1  
Apache can handle ASP.NET via Mono the same way it can handle PHP. You just install the corresponding modules and configure those for your needs. This will only require one HTTP server that forwards all requests either to PHP or Mono and delivers the result. –  OliverS Nov 13 '09 at 10:41
    
Ahh, it has been a while since I tried Apache/Mono. Good to know its now available as a module and not just a fcgi service. –  Andrew Williams Nov 13 '09 at 11:00
    
does it fully support asp.net.. is it stable at production time? –  bogha Nov 13 '09 at 21:28

Yes, IIS can support running numerous simultaneous frameworks. .NET/ASP/PHP/SSI/ISAPI etc..

You just have to enable them. http://www.visualwin.com/ASP/

share|improve this answer

You can run IIS and Apache at the same time on a single Windows Server, but only one of them can listen to port 80, the other one has to listen to another port which may be a problem for your users.

share|improve this answer
1  
One can only listen to TCP80 on any given network interface. Multiple (virtual or loopback) interfaces can indeed be used to host both on port 80. –  Xepoch Nov 30 '09 at 5:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.