6

Is it possible to install IIS on Linux?

6

IIS is Microsoft-proprietary web server software that can only run in the Windows operating systems for full support of it and all of its features. It is not capable of being run in a non-Windows environment without sacrificing some functionality, and you will need Windows Server or Windows 7 with IIS installed on it in order to use IIS and all of its features.

4

It is not recommended to run IIS in a non-native environment (net exactly sure why you would want to) but it is possible to run .NET applications on Linux.

You should check out Mono: http://www.mono-project.com/Main_Page

So the answer is; Yes it is possible but 100% not recommended. If you would like to run a web server using Linux you should use a native package like apache.

  • Their message from earlier, before my edits, indicated they want it to run specific MVC software on a web server. Linux can't run MVC + IIS very efficiently, but the issue here is not that they want to run MVC natively but that they want to run IIS + these MVC apps at the same time, and I'm pretty certain Mono might have issues with that. – Thomas Ward Nov 4 '13 at 5:26
  • 1
    Damn that edit took most the question out then. Also, I just noticed that this is a very old question that you resurrected. – Atari911 Nov 4 '13 at 19:04
  • 1
    actually the edit took out the subject. The subject and the actual content were vastly different, so with the approval of a couple of others, I revised the title to reflect the question in the content. I can easily revert that and then add to their question, but this is an old question that ended up in the suggested edits queue. (ANd I got a revival badge from it too :P) – Thomas Ward Nov 4 '13 at 23:12
  • This is what Microsoft uses for their Azure Linux Webapps. /usr/lib/mono/4.5/mod-mono-server4.exe is the command that's actually running on my webapp right now – s g Jun 1 '17 at 22:53
4

After introducing .Net Core, now Microsoft officially provide support to run .Net Core applications on Linux and you no longer need IIS server to serve .Net applications. You can use Kestrel web server to server .Net Core web applications. A complete guide to serve .Net Core web application with Nginx as reverse proxy is given here. If you want to use Apache instead of Nginx have a look here.

  • I understand it's not recommended for production use. And I understand I don't need IIS to run .net apps on Linux. However, for testing purposes I could do withe abiility to run IIS on my Ubuntu. – Ya. Aug 31 '18 at 20:13

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.