Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do i run my asp.net file or page on windows APACHE server?
it possible to run ASP.NET file over it?

i am working on a project which contains both .php and .aspx pages
i want to run both the .php and .aspx pages on APACHE server.

please help!!

What I have tried:

<VirtualHost *:80>
ServerAlias localhost
DocumentRoot "c:\web\mysite"
MonoServerPath mysite "c:\mono\usr\bin\mod-mono-server2.exe"
MonoApplications mysite "/:c:\web\mysite"

<Directory "c:\web\mysite">
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
MonoSetServerAlias mysite
SetHandler mono
DirectoryIndex default.aspx index.html
Posted
Updated 24-Nov-18 9:18am

ASP.NET itself won't be able to run on Apache web server because it is strictly tied to the components and services provided by IIS on Windows. This means, a dead end here. Anyhow, you can still consider using Mono Project and compile your ASP.NET web app against Mono, that can be worked against Linux or other platforms, and other web servers too. This is what I found for you, mod_mono | Mono[^]. You can check the documentation and then make required changes to deploy the web app on Apache servers.

ASP.NET Core supports Apache and other servers quite well. So you can consider that framework if you want to use Apache. See this for example, Host ASP.NET Core on Linux with Apache | Microsoft Docs[^]
 
Share this answer
 
Hope it will help you.
Link[^]
 
Share this answer
 
There is a good article on CodeProject about it, but it's not very recent: Introduction to Mono - ASP.NET with XSP and Apache[^]
You might also be interested in: ways-to-make-a-cross-platform-application~monodevelop[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900