Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run ASP.NET 4.0 website on Apache server?

Tags:

asp.net

apache

I understood that I need to use «mod_aspdotnet», but I can't find this module for ASP.NET 4.0: only for 2.0.

Please, help me.

like image 616
DmitryB Avatar asked Mar 09 '11 14:03

DmitryB


People also ask

Can I run ASP.NET on Apache server?

ASP.NET hosting with ApacheThe mod_mono Apache module is used to run ASP.NET applications within the Apache web server. The mod_mono module runs within an Apache process and passes all the requests to ASP.NET applications to an external Mono process that actually hosts your ASP.NET applications.

Can C# run on Apache?

Apache actually supports running C# libraries using mod mono. Also, you could use CURL to send a web request to C# running on IIS. Another way would be to open a server socket directly in C#, and have apache (via php, python, or some other scripting language) connect to you C# application to handle the request.

Can we host ASP.NET website on Linux server?

ASP.NET can run on both Windows servers and Linux servers. So, don&'t feel confined to a Windows host, although Windows hosting services will be optimized for ASP.NET websites and applications. Your host will need an SQL server database, such as MySQL, to be able to host applications built using ASP.NET.


2 Answers

Try to look at the Mono Project.

They have a module for the Apache server called «mod_mono».

Hope this helps.

like image 89
alexl Avatar answered Sep 20 '22 03:09

alexl


Try the Mod.Mono instead of mod_aspdotnet:

This handles ASP.NET 4.0 (with the exception of Entity Framework).

See the compatibility for more information on what Mono is compatible with.

like image 29
vcsjones Avatar answered Sep 20 '22 03:09

vcsjones