Solved

Run PHP pages on IIS with ASP.Net pages

Posted on 2004-09-13
4
1,013 Views
Last Modified: 2012-06-27
Hi, we are developing a site in ASP.Net with a SQL Server backend for a customer.  They have also found a product that is built with PHP with a mySql backend that they would like to incorporate into the site we are building with ASP.Net.  Is it possible to run ASP.Net pages and PHP pages together on the same IIS server for the same website?

Thanks.
0
Comment
Question by:rkurtz
  • 2
4 Comments
 
LVL 33

Expert Comment

by:humeniuk
ID: 12047960
I wouldn't try it myself.  I would suggest that you try to look for a comparable ASP product first.  I wouldn't try it myself, but if you can't find an alternative, you can install PHP and run both on the same IIS server, but don't try to run both php and asp scripts on the same page.  In fact, you would really want to try to keep things as separate as possible or you could end up with a mess.
0
 

Author Comment

by:rkurtz
ID: 12048007
I read that you can install both PHP and ASP.Net on the same server, but it sounded like they had to be on different ports.  That leads to the question can a single website use both of them?  It would never be on the same page, but maybe a link on an ASP.net page would link to the PHP page and the other way around.
0
 
LVL 33

Accepted Solution

by:
humeniuk earned 250 total points
ID: 12048043
I don't think it's related to ports as the server/website config determines that, but maybe you read something I'm unaware of.  Do you remember where you saw that?  Linking from one page to another wouldn't be a problem, though there are some things you'd have to look out for.  For example, theoretically cookies would work, but I don't know about sessions.  Proceed carefully.
0
 
LVL 14

Expert Comment

by:top_rung
ID: 12065183
I have both running on the same  server (windows server 2003 web edition) and I did nothing but install them (I'm not that advanced ;).  I did however have to manually map all extensions for the ASP.NET to work properly.  

HOWEVER, currently the two are not set up to work directly with each other.  The PHP is used to run our Bulletin board, and the ASP.NET application is used independently (from within a Virtual Directory)

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Debug Tools to analyse IIS process: This article focus on taking memory dumps from IIS to determine which code is taking more time and to analyse which calls hangs/causes more CPU usage. To take dumps,download the following. Install1: To st…
Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now