aaP_hareeshnarayan1982 aaP_mdestafadilah_simrs https://relaxedcoder.com/tutorial-easy-deploy-of-net-core-to-linux-on-linode/
aaP_mdestafadilah_simrs aaP_hareeshnarayan1982 i will add more, officially supported. https://learn.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#2004
aaP_hareeshnarayan1982 aaP_mdestafadilah_simrs I had done with aapanel. its better as i need to manage mysql also.
aaP_mdestafadilah_simrs aaP_hareeshnarayan1982 just waiting aapanel to release .NET as plugin installed all ready 🙂
aaP_hareeshnarayan1982 aaP_mdestafadilah_simrs I think no need of plugin as its working fine and best part is that NGINX response time is 1/3 of iis. i had completely migrated our windows to ubuntu. Windows was taking 2 gb ram for os itself and now everything at 700 mb.
aaP_mdestafadilah_simrs aaP_hareeshnarayan1982 i'm using apache ... just more nichi.. interface, aapanel have docker interface, nodejs project, python project, why .NET don't have too? it's more +1 advanteges i think
ccasalicchio Here is a short tutorial for Installing and enabling .NET 6 in aaPanel Login into your linux server via ssh sudo apt-get update && \ sudo apt-get install -y aspnetcore-runtime-6.0 Create the service file sudo nano /etc/systemd/system/kestrel-helloapp.service The following example is an .ini service file for the app: [Unit] Description=Example .NET Web API App running on Linux [Service] WorkingDirectory=/var/www/helloapp ExecStart=/usr/bin/dotnet /var/www/helloapp/helloapp.dll Restart=always # Restart service after 10 seconds if the dotnet service crashes: RestartSec=10 KillSignal=SIGINT SyslogIdentifier=dotnet-example User=www-data Environment=ASPNETCORE_ENVIRONMENT=Production Environment=DOTNET_PRINT_TELEMETRY_MESSAGE=false [Install] WantedBy=multi-user.target Enable the service sudo systemctl enable kestrel-helloapp.service sudo systemctl start kestrel-helloapp.service sudo systemctl status kestrel-helloapp.service Create the .NET 6 site in aaPanel Enable reverse proxy and use the following configuration: #PROXY-START/ location ^~ / { proxy_pass http://0.0.0.0: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; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; #Persistent connection related configuration add_header X-Cache $upstream_cache_status; #Set Nginx Cache set $static_fileZWlnw8LV 0; if ( $uri ~* "\.(gif|png|jpg|css|js|woff|woff2)$" ) { set $static_fileZWlnw8LV 1; expires 12h; } if ( $static_fileZWlnw8LV = 0 ) { add_header Cache-Control no-cache; } } #PROXY-END/ Test browsing your site! References: Installing aaPanel Installing .net 7 in Linux Deploy .net into linux Linux scripted manual Installing in Ubuntu Installing MSSQL on Ubuntu 20.04 IMPORTANT: you must have an Ubuntu 20.04 machine with at least 2 GB of memory Create a working folder sudo /opt/mssql/bin/mssql-conf setup Import the public repository GPG keys: wget -qO- https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc Register the SQL Server Ubuntu repository: sudo add-apt-repository "$(wget -qO- https://packages.microsoft.com/config/ubuntu/20.04/mssql-server-2022.list)" Run the following commands to install SQL Server: sudo apt-get update sudo apt-get install -y mssql-server After the package installation finishes, run mssql-conf setup and follow the prompts to set the SA password and choose your edition. As a reminder, the following SQL Server editions are freely licensed: Evaluation, Developer, and Express. sudo /opt/mssql/bin/mssql-conf setup Once the configuration is done, verify that the service is running: systemctl status mssql-server --no-pager For more details: Installing Sql Server in Linux
ccasalicchio I wrote a blog post about this (pretty much the same content) https://splatdev.com/blog/how-to-run-dotnet-in-ubuntu-2004-lts/