Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploying ASP.NET Website on Linux Server

Is it possible to develop a website in ASP.NET with C# as the coding Language and MySQL as the database and then deploy the same on Linux server?

I am talking about a full frontal website like forums or discussion board.

Thanks.

like image 525
Pankaj Upadhyay Avatar asked Jul 20 '11 05:07

Pankaj Upadhyay


People also ask

Can I host an ASP.NET website on Linux?

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.

Can .NET application run on Linux?

NET works well on their Linux distributions. Support is provided by those distributions. You can still open issues at dotnet/core if you run into problems.

How do I deploy a web app to a server?

Copy the ASP.NET Core app to the server using a tool that integrates into the organization's workflow (for example, SCP, SFTP). It's common to locate web apps under the vardirectory (for example, var/www/helloapp).

Can I run ASP NET Core on Linux?

Running & deploying ASP.NET Core applications on Linux machines (Ubuntu Linux on Amazon EC2 VM using Apache server reverse proxy). I am writing this article as a result of my learning for deploying ASP.NET Core web applications on Linux boxes. There is a lot of information available on writing these apps, scattered all around the web.

How do I run a dynamic web app on Linux?

In a browser, navigate to http://<serveraddress>:<port>to verify the app works on Linux locally. Configure a reverse proxy server A reverse proxy is a common setup for serving dynamic web apps. A reverse proxy terminates the HTTP request and forwards it to the ASP.NET Core app. Use a reverse proxy server

Will a Java web application run in a Linux based server?

Java web applications (.jsp and servlets) can run on many server platforms. Question: Will a .NET web application be able to run in a Linux based server? Considering the scenario of not being able to use a Windows server for hosting a web app.


2 Answers

It's possible using Mono. Please have a look on the Homepage for further details.

like image 198
gsharp Avatar answered Oct 11 '22 10:10

gsharp


You could always try Mono's implementation of ASP.NET and C#. Personally I've had no issues with it but I haven't tried doing something that complex but from my experience it's pretty close to the standard .NET C#.

like image 21
Jesus Ramos Avatar answered Oct 11 '22 10:10

Jesus Ramos