I have a website which is in PHP. Now, I am trying to publish a separate admin panel (which is in ASP.NET) on the same server but in different virtual directory.
Can this work?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If your web server is Windows running IIS, then yes, you can have ASP.NET and PHP co-existing on the same server.
You will have problems if you intend to share anything between them — eg cookies, and session data; you’ll have to effectively keep them separate and provide separate logins, etc for them.
On the other hand, if your server isn’t Windows, or isn’t running IIS – say if you’re running a Linux server with Apache – then you won’t be able to install ASP.NET, since it is tied to that platform.
[EDIT] This is a discussion on the official Microsoft IIS forum, where the same question is asked, and the positive answer is given: http://forums.iis.net/t/1154462.aspx
Also, this might help: http://www.joshholmes.com/blog/2010/11/11/asp-net-and-php-on-iis-together/