Great explanation. I really liked how you explained every step of the process and highlighted how to check the status and fix the issues. You will have saved a lot of people a lot of headaches and time by making this great video. Thanks!
Hey you have saved my time, perfectly working and deployed to VPS server. Timely helped your video. Great tutorial. One small advise, please go slowly when sharing the commands. I have paused many times to look at the commands your typed. Apart from that you video is awesome. I have forwarded to some of my friends as well.
Happy to heart that the video helped you deploy your application to your VPS server! Thanks for your feedback about the command explanations. I’ll make sure to slow down in future videos to make it easier to follow. I appreciate you sharing the video with your friends and for the kind words!
Thank you for your comment! As I configured a reverse proxy, the request is routed from the Apache web server to the application. If you need to secure the application, you can configure SSL in Apache, where the user requests are hitting. Additionally, using Apache passthrough allows you to host multiple applications that listen on port 443 with different domains or subdomains. This setup offers more flexibility and easier management of your applications.
Thanks for watching! 😊 For video production, I use a combination of tools. To know more feel free to contact me through the email listed in the About section of my channel.
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
Awesome tutorial, helped me a lot as a beginner in deployments. To work with a postgreSQL database I would just install postgres on the server and modify the connection string in the application file? Or I need to do more configuration on the provider?
I'm glad to hear that you found the tutorial helpful! Setting up a PostgreSQL database on the server and modifying the connection string in the application file is a great start. However, depending on your specific requirements and the setup of your PostgreSQL database, you may need to do additional configuration, such as setting up users and permissions, configuring the PostgreSQL server to accept remote connections (if application and database are in different servers), and ensuring that any firewall settings allow access to the database from your application server.
it works! I had to chmod 777 everything though because everything was owned by root because I had to run everything with sudo. I'm sure I'll figure out that soon though.
Yes, the same method applies for hosting it on Linux using an Apache web server. The application demonstrated in the video is actually a Blazor Server-Side app.
Thank you for your kind words! It's quite straightforward to configure an SSL certificate in Apache Web Server. You can refer to the official guide here: httpd.apache.org/docs/2.4/ssl/ssl_howto.html This should help you get your site set up for HTTPS.
@@CodingDroplets Thank you, it worked. It was a bit more complicated for me because I had already created broken configurations with Certbot. But now everything is fine.
Thank you for the feedback! Yes, I do use Hostinger for production deployments, and I've found their services to be reliable. Additionally, their customer support is excellent, which is crucial for any hosting provider.
The steps I demonstrated in the tutorial generally cover the deployment of the ASP.NET Core application. However, the configuration related to the database might differ based on the database provider (e.g., SQL Server, MySQL, PostgreSQL).
For upgrades on a Linux server hosting an ASP.NET Core application, you can follow a similar approach to minimize downtime. Here's how you can handle upgrades: 1. Stop the Service: Use the 'systemctl stop' command to stop the service running your ASP.NET Core application. This will gracefully shut down your application. 2. Copy the Binaries: After stopping the service, replace the existing binaries with the updated ones. This step is similar to what you do on IIS. 3. Start the Service: Use the 'systemctl start' command to start the service again with the new binaries. By following this process, you can perform upgrades without causing extended downtime for your application, similar to the approach you mentioned with IIS. It allows for a seamless transition to the new version of your ASP.NET Core application.
Thank you for answering. What if downtime is not acceptable? At the moment I can update my .net 4.6 framework monoliths when ever needed. Often multiple times a day. And there is absolutely no client interruption.
Hello, need help with updating the web app. I did these steps: 1. Stopped Apache2 2. Copy all the files in my newly built web app and replaced the contents in var/apps/demoapps/ in ubuntu 3. Started Apache2 But whenever I access it, it still shows the old build. I'm not sure why this is happening, perhaps you can shed some light into what I'm missing?
For updating an existing web app, you don't need to stop apache2. You can stop the service which you created for your application (in the video I created demoapp.service). You can follow the below steps. 1. Stop the Service: systemctl stop demoapp 2. Replace the files in the server 3. Start the Service: systemctl start demoapp
Certainly! Deploying an ASP.NET Core website with a database on a Linux server is entirely feasible. Should you require the database to reside on the same server, it's imperative to install the corresponding database server on your Linux environment. The specific steps may vary depending on the type of database you intend to use.
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
cannot open shared object file: No such file or directory An error occurred while loading required library libhostpolicy.so can you help me? the error happens when I use dotnet (project).dll
please do dotnet-8 video, I tried on my VPS Linux ubuntu 22.04 , blazer app is running on port 5050 but not launch in browser, try simple web api also in dotnet-8 but not working in browser. Before dotnet-7 it works good.
@@lemonade2345-j4e Thank you for your valuable replay. Now the problem solved I re-install the Linux then its working. But I see something if we add a signalR in the app the app stop working. Error shows WebSocket connection stopped. Can you explain me bro and do you have any videos for about CORS.
Hi there! I'm sorry to hear that you're facing issues with your service. To assist you better, could you please provide more details about the specific problem you're encountering? It would help to know any error messages or behaviors you're seeing so that I can give you more targeted advice to resolve the issue. Thank you!
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
VPS (Virtual Private Server) indeed gives you more control and flexibility compared to shared hosting environments. The tutorial focuses on setting up .NET Core applications on VPS because it allows developers to have complete control over the server environment, which is crucial for deploying and managing applications efficiently.
💥 VPS Service Provider:
bit.ly/hostinger-vps-cd
⭐ Join Us on Patreon: www.patreon.com/CodingDroplets
🔗 Blazor Tutorial Playlist:
ruclips.net/p/PLzewa6pjbr3IQEUfNiK2SROQC1NuKl6PV
Great explanation. I really liked how you explained every step of the process and highlighted how to check the status and fix the issues. You will have saved a lot of people a lot of headaches and time by making this great video. Thanks!
Thank you so much for your positive feedback! Glad to hear that. Your support and encouragement are greatly appreciated!
This is what I call a tutorial. You are awesome!
Thank you so much for the kind words! I'm really happy to hear that you found the tutorial helpful. 😊
Tried Plesk and worked fine.
Hey you have saved my time, perfectly working and deployed to VPS server. Timely helped your video. Great tutorial. One small advise, please go slowly when sharing the commands. I have paused many times to look at the commands your typed. Apart from that you video is awesome. I have forwarded to some of my friends as well.
Happy to heart that the video helped you deploy your application to your VPS server! Thanks for your feedback about the command explanations. I’ll make sure to slow down in future videos to make it easier to follow. I appreciate you sharing the video with your friends and for the kind words!
Thank you for this video. Is there any reason why you dont just have the blazor app listen on 443? Why the apache passthrough?
Thank you for your comment! As I configured a reverse proxy, the request is routed from the Apache web server to the application. If you need to secure the application, you can configure SSL in Apache, where the user requests are hitting. Additionally, using Apache passthrough allows you to host multiple applications that listen on port 443 with different domains or subdomains. This setup offers more flexibility and easier management of your applications.
What program you use for video production like this ? Thanks
Thanks for watching! 😊 For video production, I use a combination of tools. To know more feel free to contact me through the email listed in the About section of my channel.
Great video overall, would been also great if you could show how to setup SSL on apache2
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
Awesome tutorial, helped me a lot as a beginner in deployments. To work with a postgreSQL database I would just install postgres on the server and modify the connection string in the application file? Or I need to do more configuration on the provider?
I'm glad to hear that you found the tutorial helpful! Setting up a PostgreSQL database on the server and modifying the connection string in the application file is a great start. However, depending on your specific requirements and the setup of your PostgreSQL database, you may need to do additional configuration, such as setting up users and permissions, configuring the PostgreSQL server to accept remote connections (if application and database are in different servers), and ensuring that any firewall settings allow access to the database from your application server.
This is exactly what I need. Thank you so much!
You're very welcome! Glad to hear that the video was helpful.
great video
one more thing, did you configure something on the dotnet files before publishing or no
Thanks for your comment! No special configurations were needed in the .NET files before publishing.
You're the best. Very useful and simple guide. Thank you
Thank you for your kind words! Glad to hear that.
it works! I had to chmod 777 everything though because everything was owned by root because I had to run everything with sudo. I'm sure I'll figure out that soon though.
Glad to hear that
Could we apply the same method with Blazor SSR?
Yes, the same method applies for hosting it on Linux using an Apache web server. The application demonstrated in the video is actually a Blazor Server-Side app.
Thanks, this was informative! Your videos have real quality content!
You're very welcome, and thank you for your kind words! I'm delighted to hear that you found the video informative and of quality.
@@CodingDroplets Yes, no doubt they are good, your videos did help me to get on with MAUI Shell navigation as well. Keep up with good work!
Thank You!
very very cool! thank you :) Do you also have a video on how to configure the site for https?
Thank you for your kind words! It's quite straightforward to configure an SSL certificate in Apache Web Server. You can refer to the official guide here:
httpd.apache.org/docs/2.4/ssl/ssl_howto.html
This should help you get your site set up for HTTPS.
@@CodingDroplets Thank you, it worked. It was a bit more complicated for me because I had already created broken configurations with Certbot. But now everything is fine.
Not quite ready to do this yet but very useful and clear information. Thank you. Do you use Hostinger for any production deployments?
Thank you for the feedback! Yes, I do use Hostinger for production deployments, and I've found their services to be reliable. Additionally, their customer support is excellent, which is crucial for any hosting provider.
@@CodingDroplets thank you.
You are welcome!
Do you have sample site that uses database and deployed in linux? Thanks
The steps I demonstrated in the tutorial generally cover the deployment of the ASP.NET Core application. However, the configuration related to the database might differ based on the database provider (e.g., SQL Server, MySQL, PostgreSQL).
What about upgrades? On iis I just overwrite the binaries. Iis spins up a new instance and does not interrupt any long running processes.
For upgrades on a Linux server hosting an ASP.NET Core application, you can follow a similar approach to minimize downtime. Here's how you can handle upgrades:
1. Stop the Service: Use the 'systemctl stop' command to stop the service running your ASP.NET Core application. This will gracefully shut down your application.
2. Copy the Binaries: After stopping the service, replace the existing binaries with the updated ones. This step is similar to what you do on IIS.
3. Start the Service: Use the 'systemctl start' command to start the service again with the new binaries.
By following this process, you can perform upgrades without causing extended downtime for your application, similar to the approach you mentioned with IIS. It allows for a seamless transition to the new version of your ASP.NET Core application.
Thank you for answering.
What if downtime is not acceptable? At the moment I can update my .net 4.6 framework monoliths when ever needed. Often multiple times a day. And there is absolutely no client interruption.
Next do one with MS SQL Database with Blazor App
Thanks for the suggestion! I’ll definitely consider creating a tutorial on hosting a Blazor app with an MS SQL database on Linux. Stay tuned!
@@CodingDroplets eagerly waiting
Please make a video dotnet 8 blazor web app with nginx. I tried app is running on port but site not visible.. please
Did you manage this @codermallu
@@aloisemukoma8701 Yes, I reinstall dotnet. You can find documents from Microsoft.
As far as I know, linux is not ready for dotnet8 yet. Due to microsoft.
@@wiepcorbier dotnet 8 is working well in Linux ubuntu.
@@wiepcorbier dotnet.8 is working well in Linux ubuntu.
On 10:52 you url is localhost 10:52
Might be a mistake happened while video editing
Hello, need help with updating the web app.
I did these steps:
1. Stopped Apache2
2. Copy all the files in my newly built web app and replaced the contents in var/apps/demoapps/ in ubuntu
3. Started Apache2
But whenever I access it, it still shows the old build. I'm not sure why this is happening, perhaps you can shed some light into what I'm missing?
For updating an existing web app, you don't need to stop apache2. You can stop the service which you created for your application (in the video I created demoapp.service). You can follow the below steps.
1. Stop the Service: systemctl stop demoapp
2. Replace the files in the server
3. Start the Service: systemctl start demoapp
@@CodingDroplets Thank you thank you so much! Worked like a charm! Thanks also for the very prompt response. Happy Holidays!
You're very welcome! I'm delighted to hear that. Happy Holidays to you too!
Is it possible to deploy it to a shared linux hosting (cpanel does not support .net core) ?
Thanks
You can try using Plesk (I haven't tried it yet).
www.plesk.com/kb/support/asp-net-core-support-in-plesk/
Thanks for tutorial
You're welcome
Can i deploy asp dotnet website with database in linux server through apache proxy . Can you guide me how to do it with database pls
Certainly! Deploying an ASP.NET Core website with a database on a Linux server is entirely feasible. Should you require the database to reside on the same server, it's imperative to install the corresponding database server on your Linux environment. The specific steps may vary depending on the type of database you intend to use.
@@CodingDroplets after doing this how can i do ssl certificates for security i cant find your videos releated this can you guide me
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
cannot open shared object file: No such file or directory
An error occurred while loading required library libhostpolicy.so
can you help me?
the error happens when I use dotnet (project).dll
Please check this:
stackoverflow.com/questions/47285243/a-fatal-error-was-encountered-the-library-libhostpolicy-so-required
please do dotnet-8 video, I tried on my VPS Linux ubuntu 22.04 , blazer app is running on port 5050 but not launch in browser, try simple web api also in dotnet-8 but not working in browser. Before dotnet-7 it works good.
Could be a CORS issue, or compare original Program.cs to the newer version to get some clues.
@@lemonade2345-j4e Thank you for your valuable replay. Now the problem solved I re-install the Linux then its working. But I see something if we add a signalR in the app the app stop working. Error shows WebSocket connection stopped. Can you explain me bro and do you have any videos for about CORS.
I am having problems with the service
Hi there! I'm sorry to hear that you're facing issues with your service. To assist you better, could you please provide more details about the specific problem you're encountering? It would help to know any error messages or behaviors you're seeing so that I can give you more targeted advice to resolve the issue. Thank you!
it was an amazing video
Thank you so much! Glad to hear that.
THANNKK U VERYYY MUCH BROO GOD BLESS YOU!!!!!!!!!!!!
You're very welcome! I'm glad the tutorial was helpful to you. God bless you too! 🙏😊
Thanks!
Thank You so much for the support!
ssl to make https, how
To enable HTTPS with Apache, you need to include the SSLCertificateFile and SSLCertificateKeyFile directives in your Apache configuration file. These directives specify the paths to your SSL certificate and private key files. You can refer to the official Apache documentation: httpd.apache.org/docs/2.4/ssl/ssl_howto.html
@@CodingDroplets thanks
Welcome
Are you serious you make video to deal with vps ?? 😅 i thought that you make video for shared hosting if i vps I can do what ever i want
VPS (Virtual Private Server) indeed gives you more control and flexibility compared to shared hosting environments. The tutorial focuses on setting up .NET Core applications on VPS because it allows developers to have complete control over the server environment, which is crucial for deploying and managing applications efficiently.
@@CodingDroplets Please reply when i run: dotnet appname.dll it does nothing why is that ? i did install the aspnetcore-runtime-8.0