Who to install 4.2 on Linux?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
4 года назад
thusitha wrote:
Hi all,

I have successfully installed and configured NopCommerce 4.2 on Linux including SQL Server 2017. The way it performs in Ubuntu is pretty impressive and pretty proud of the development team and the contributors.

The server config is,
2 CPU Cores (Skylake)
4 GB Ram
NVMe SSD

Please access the full system(including the admin) and feel free to provide feedback.

http://nopcommerce.os2works.com

Admin login is,
username = [email protected]
password = admin

Note: Now I am working on configuring redis for caching and will update how it goes.


Thanks.
Thusitha


Hello Thusitha,

can you share step by step the installation in your server please ???

thank you !!
4 года назад
Hello, I am in the same status installing Nop 4.20 on Debian. We followed all suggestion, Nop Forum and Microsoft documentation Is it possible to have a full guide to install it on Linux system? Thanks
4 года назад
zrmax wrote:
Hello, I am in the same status installing Nop 4.20 on Debian. We followed all suggestion, Nop Forum and Microsoft documentation Is it possible to have a full guide to install it on Linux system? Thanks




Hello,

Here is the full guide.

https://www.c-sharpcorner.com/article/how-to-run-nopcommerce-on-linux-using-docker/
4 года назад
The guide works well except for plugins.
I started a thread here if anyone has suggestions on how to resolve
4 года назад
For all of you who are struggling to run NopCommerce on Linux I would suggest to follow this article, and then try to run Nop. NGINX part is not mandatory, it's enough if you can execute dotnet run and get app up and running.
Running Nop on Linux is pretty simple, I've done check out of my enriched 4.2 version, executed clean, restore and build in "src" and "Nop.Web" folders and that's it. I would gladly help to anyone if you come across some difficulties.
4 года назад
I have published to linux(centos 7,i think the ubnutu is the same)successfully.so i simplely to describe the steps:
server:
1.make sure you have install the nginxhttps://www.tecmint.com/install-nginx-on-centos-7/(or you just run it with command: 'dotnet Nop.Web.dll' in your published floder) and dotnet sdkhttps://dotnet.microsoft.com/download/linux-package-manager/centos/sdk-current
2.if you installed the nginx,and add a new configure file named nop42.conf under the conf.d floder (/etc/nginx/conf.d/nop4.2.conf),and the content:
server {
   listen 80;
   server_name your url(such as www.nop42.com);

   location / {
      proxy_pass your mapping url(such as http://45.35.xx.xxx:2006);
      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;
   }
}
~
,and open the port 2006 with firewall-cmd tools,the command is below:
1.firewall-cmd --zone=public --add-port=2006/tcp --permanent
2.firewall-cmd --reload

3.add a new service for running in the background https://docs.microsoft.com/zh-cn/aspnet/core/host-and-deploy/linux-nginx?view=aspnetcore-2.2,just update the 'WorkingDirectory','ExecStart' and 'User'(this depends on you should add a new user or not,i just use the root user)
4.if you already publish the the nop in a floder,make sure you have to add new floder(bin,logs),unless it will throw a error said you have no permission to do something when you install the nop in the /install page.
5.change some code for mapping the port(2006),firstly add a new file named 'hosting.json' with it's content:
{
  "server.urls": "http://45.35.xx.xxx:2006;"
}
in Nop.Web floder,and update the class Program.cs content to
using System.IO;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;

namespace Nop.Web
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateWebHostBuilder(args).Build().Run();
        }

        public static IWebHostBuilder CreateWebHostBuilder(string[] args) =>
            WebHost.CreateDefaultBuilder(args)
                .UseKestrel(x => x.AddServerHeader = false)
                .UseConfiguration(new ConfigurationBuilder()
                    .SetBasePath(Directory.GetCurrentDirectory())
                    .AddJsonFile("hosting.json", true).Build())
                .UseStartup<Startup>();
    }
}
,that's it.
6.when all these steps done without any error,then reload nginx,you can test the nginx with this command:
nginx -t,
and reload it:nginx -s reload,
now open your web url or mapping url in you browser,you should be see the nop install page.

my own published nop 4.2 test url:http://nop42.coolwecool.com,if you have any questions,
leave your questions here or contact me:[email protected] ,thanks for reading and forgive my poor English.
4 года назад
I installed Nopcommerce 4.20 on linux (ubuntu + Nginx + kestrel) and works perfect, except using ssl. I tried many differents configuration but always get the erro too many redirects. I think it won´t work with ssl enabled. Any suggestion?
4 года назад
Sorry I opened another topic, can you help me?


We tried to install nop4.2 on linux, everything is ok.
But we can't get the SSL certificate to work properly.
It seems that not only is listening on port 80.
thank you
4 года назад
Finally, I got it! Nopcommerce 4.20 working on Linux (Ubuntu + Nginx + Kestrel + MSSQL) with https on all pages. Now, everything is working like a charm.
4 года назад
jamorim wrote:
Finally, I got it! Nopcommerce 4.20 working on Linux (Ubuntu + Nginx + Kestrel + MSSQL) with https on all pages. Now, everything is working like a charm.


Hi,

Please share how you resolved it.

Regards
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.