Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deploy ASP.NET website (version prior to ASP.NET 5) to Linux server?

Tags:

linux

asp.net

I am currently in process of identifying a mechanism to deploy ASP.NET websites to Linux server. I know this requires Apache to be installed on Linux, and can be achieved using Mono.

I found a lot many articles but they all are referring to ASP.NET version 5 (i believe, vNext). But couldn't find anything for a version prior to that.

Is it due to "System.Web" assembly that we can't deploy ASP.NET website on anything except IIS? I know, OWIN has replaced that in vNext.

Any help on deployment of previous versions of ASP.NET to Linux will be very appreciated.

like image 717
Nirman Avatar asked Dec 02 '25 17:12

Nirman


1 Answers

The new version of ASP.NET, version 5, and more specifically the .NET Core, runs cross-platform. That's why there is a lot of information about running ASP.NET 5 (or vNext) on Linux with Kestrel, the new cross platform webserver for ASP.NET 5.

However, you can run older ASP.NET projects on Apache using, indeed, Mono. The official documentation can be found here: http://www.mono-project.com/docs/web/aspnet/#aspnet-hosting-with-apache and here: http://www.mono-project.com/docs/web/mod_mono/

like image 100
koelkastfilosoof Avatar answered Dec 04 '25 09:12

koelkastfilosoof



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!