
nopCommerce is a free open source eCommerce application based on the ASP.NET framework. It is secure and fully customizable, making it an excellent choice for store owners because multiple customization tools are available for designing a user-friendly online shopping website.
In this guide, you will install nopCommerce on a Ubuntu 20.04 server running Nginx, MySQL as the web, and database server software, respectively.
Login to MySQL.
Create a new database.
Create a database user with a strong password.
Refresh MySQL Privileges.
Exit the console.
For nopCommerce it to run on, you need to install .NET (dot net) Core. But first, add the Microsoft package signing key to your server and install the necessary dependencies.
Download the Ubuntu 20.04 Microsoft Package Key.
Install it on the server.
Then, update the server.
Install aptitude transport for HTTPS downloads.
Now, Install .NET Core runtime.
Verify the installation.
Output:
Create the nopCommerce webroot directory. Replace shop.example.com with your subdomain or preferred naming style.
Now, switch to the directory.
Then, download the latest nopCommerce stable release from its GitHub repository. In this guide, release-4.40.4 is installed. Consider downloading the latest file.
Extract files from the Zip archive.
To save space, delete the original zip archive.
Grant Nginx (running as www-data) ownership permissions to the directory.
All necessary files are now available on the server. Next, configure Nginx as a reverse proxy to serve these files on your subdomain.
Create a new Nginx virtual host file.
Open and edit the file.
Paste the following contents:
Save and close the file.
Test Nginx for errors.
Restart Nginx.
To start nopCommerce, it must be running as a service on the server. To do this, create a new service file in the systemd directory.
Open and edit the file.
Paste the following contents:
Now, restart the systemd daemon.
Then, enable nopCommerce to start at boot time.
Start nopCommerce.
Check the current nopCommerce status.
Restart Nginx to start serving nopCommerce on the subdomain.
Finally, visit your subdomain to start the nopCommerce setup process through a web browser.
Enter the administrator email, username, password, and country. Then, select MySQL from the drop-down list of options in the database section.
Under Server name, enter localhost, then enter the database name, username, and password created on step 1.
Click Install to proceed, nopCommerce will restart, and you may receive a 502 bad gateway error. Simply refresh your browser to log in and configure your online store.
By default, Uncomplicated Firewall (ufw) is enabled on Ubuntu 20.04, configure it to allow HTTP, HTTPS traffic on the server and block the rest.
Allow HTTP traffic.
Allow HTTPS traffic.
Restart the firewall
Install Certbot.
Request for a free Let’s Encrypt SSL certificate. Replace example.com with your actual subdomain.
Now, set up a new Cron job to automatically renew the SSL certificate before every 30 days of expiry.
Open the crontab file.
Paste the following code:
Save and close the file.
Congratulations, you have installed nopCommerce on a Ubuntu 20.04 server. You can further configure to meet your customer and visitor standards using ready-made themes, plugins, and language packs.
0 Comments
Be the first to comment and share your perspective with the community.