I suggest you ...

Support Asp.net Core in Linux in Plesk 17

Please, add support to asp.net core in plesk 17 for linux.

342 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Andre Pavini shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →
    open discussion  ·  AdminPlesk Staff (Admin, Plesk International GmbH) responded  · 

    Hi everyone,

    This is most definitely a valid request and, in fact, we’ve been doing some research on this topic for quite some time. There is no ETA at the moment, but we would really appreciate you voting for this request so that we can accurately assess its popularity relative to other features. Thanks in advance!

    —AK

    61 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • Bruno commented  ·   ·  Flag as inappropriate

        @Julien you're right! Without the "Serve static files directly by nginx" selected it doesn't need any fiddling around. Thought you said to leave that on on the first place...

        Was thinking to start moving into production some net core apps with those custom settings but I'm now wondering what will happen when official support is added?

        Any ETA or will we be able to ride with these custom settings for a while? :P

      • Julien commented  ·   ·  Flag as inappropriate

        @bruno, happy that it is helpfull for you :)

        I don't understand why you have to touch an index.html file as the redirect should work for anything if the application handle it. (maybe something to do with nginx serving static file ?)

        I tested with the default web application (MVC .net core) from visual studio, hitting URL/Home work as excepted.

        Anyway, I'm not anymore a plesk user because of scaling needs. but I hope they integrate that great technology asap.

        regards

      • Bruno commented  ·   ·  Flag as inappropriate

        @Julien thanks for sharing that config, it is a bit fiddly as you said but it ended up working for me too!

        Just wondering how you manage to load your web's index?

        My dotnet app has it's index on URL/index so had to make an index.html file on that web's home dir, so URL/index.html redirects to URL/index

      • Vaclav Elias commented  ·   ·  Flag as inappropriate

        Thanks for sharing. It is still. But I was wondering if it is just my observing or there is something else. You have got many features and bits on Azure which other platforms don't have at all but you not necessarily need them. The biggest issue I had that I cannot increase just a memory e.g. by 1GB without doubling the cost of the whole VM and getting other unnecessary resources, same for Azure Apps. The VM hardware cost me 30-50% less since I moved away from Azure. So running ASP.NET Core in Linux would help reduce the cost even more as majority of my websites are ASP.NET Core.

      • kironet commented  ·   ·  Flag as inappropriate

        Vaclav: Azure is(at least it was when I was trying it) expensive as *** :)

      • Vaclav Elias commented  ·   ·  Flag as inappropriate

        Just curious, why you would like to migrate from Azure? Do you mean migrating from Azure Apps or Azure VM to another platform with Plesk?

      • Julien commented  ·   ·  Flag as inappropriate

        .net core on linux, dev need it, gogogo ! :)

        Actually it work aside plesk (centos7), following in order :

        In your website Apache & nginx Settings, disable Proxy mode, Apply,
        Add to "Additional nginx directives" this one (2nd link) :

        location / {
        proxy_pass http://localhost:5000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection keep-alive;
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        }

        Change those lines in "kestrel-hellomvc.service" while you follow the 2nd link :
        WorkingDirectory=/var/www/vhosts/<your_site>/httpdocs
        ExecStart=/usr/bin/dotnet /var/www/vhosts/<your_site>/httpdocs/<your_app>.dll
        User=nginx

        Upload the published output to httpdocs.

        I had a little problem getting this to work "correctly", because of nginx or apache, I dunno, but unticking "Serve static files directly by nginx ", apply, and re-ticking did the job.

        https://www.microsoft.com/net/core#linuxcentos
        https://docs.microsoft.com/en-us/aspnet/core/publishing/linuxproduction?tabs=aspnetcore2x

        regards

      • Cédric commented  ·   ·  Flag as inappropriate

        It would be a great feature to have asp.net support on linux!
        Very interesting!!!

      • Taylor Alexander Love commented  ·   ·  Flag as inappropriate

        I wish I could vote twenty times. I would be so excited for this feature to come out. I LOVE the c# syntax. To be able to do asp.net core 2 on Ubuntu 16.04lts would be amazing. I would be hugely thankful to the plesk team for that.

      • photon LIGHT commented  ·   ·  Flag as inappropriate

        Yes, you are right Bruno, thanks for the link, it's even simpler! And it updates itself...

        Right again about MSSQLS. Let's make it simple so that it could be accomplished faster.

        We are using Postgres but it was a pain a the time to get it working nicely with EF ( also being very new ). Now you have much more info and features implemented... I started before version 1 because i saw a good opportunity with no extra cost on server software db etc and the project was indeed volunteering without budget.

        Thank you and Good luck!!!

      Feedback and Knowledge Base