Asp.Net Application Development: Will asp.net work on a Debian Server?

 Many hosting companies have Debian as their server platform. ASP.Net works, but if it don’t work you must know any other alternate language as well. To install ASP.Net Web server (ASP.Net 2.0 and ASP.Net 1.0) in Debian, you must give the proper commands that works. This will install all the required Asp.Net Application Development environment and sample applications.

debian server

ASP.Net working on a Debian Server

  1. You can try learning perl or php instead. ASP.Net is quite nice, but the real benefits come in when using Visual Studio, which apparently you can’t install locally to try out. Perl and php are plain text files so you can just use notepad and upload them to your server to run. It may not be the most efficient way to go, but it will work.
  2. If you want to try ASP.Net at home, you can download the Express Edition for free. There are also plain C# and C++ editions. ASP.Net won’t run on Linux. You need a Window-based host.
  3. A quick look at their product offerings and knowledge base suggests that you will need to use one of their Windows hosting plans to use ASP.Net. In theory it can be run under linux using parts of the Mono Project. PHP / MySQL have the advantage of being available on just about any web host, and there is a lot of open source PHP software that you could learn by reading and extending.
  4. Some people will say that you’d be better off starting with Ruby on Rails, or Python + Django, but it doesn’t look like the web host you have chosen makes that easy. You have got the Linux hosting, so you should definitely start with php. Perl is not a good first language to learn.
  5. ASP and PHP share a lot of common ground, at least in terms of syntax. Depending on what you are trying to do, conversion should not be too hard. It is possible to run ASP.Net applications under Linux using Mono XSP.
  6. You can also try to figure out the most painless way to edit files directly on the webserver. Ideally, you can make a change to the PHP file, save it, and click reload in the web browser to see it. You might want to try to find a host that has SSH access. This would allow you to use putty to SSH to your web server and edit PHP filers directly.
  7. Even if your ASP.Net website only uses .NET libraries supported by Mono you are going to have a hard time getting it to run if it is anything beyond “Hello World”. You won’t have to rewrite much code but you will spend hours/ days / weeks dealing with little issues with mod_mono/xsp/apache configuration and file permissions and error handling and all the little things that go into a large website. The problem is that a lot of people don’t use Mono for ASP.Net websites and so there aren’t as many people reporting bugs; so a lot of things that are minor bugs go un-fixed for a long time.

You can use Mono to run ASP.Net applications on Apache/Linux, however it has as limited subset of what you can do under Windows. As for ‘they’ saying Windows is more vulnerable to attack- it’s not true. IIS has had less security problems over the last couple of years than Apache. Now a days .Net run in multiple platforms like Linux, Mac OS etc.

Advertisements