{"id":4047,"date":"2019-08-20T23:15:39","date_gmt":"2019-08-20T20:15:39","guid":{"rendered":"https:\/\/kifarunix.com\/?p=4047"},"modified":"2019-08-24T09:57:48","modified_gmt":"2019-08-24T06:57:48","slug":"install-wondercms-with-nginx-on-debian-10","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-wondercms-with-nginx-on-debian-10\/","title":{"rendered":"Install WonderCMS with Nginx on Debian 10"},"content":{"rendered":"\n<p>In our previous guide, we discussed how to install <a href=\"https:\/\/www.wondercms.com\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"WonderCMS (opens in a new tab)\">WonderCMS<\/a> on Debian 10 Buster which uses Apache as the webserver. In this guide, we will learn how to install WonderCMS with Nginx on Debian 10 Buster.<\/p>\n\n\n\n<p>If you want to check our previous guide on installing WonderCMS with Apache, follow the link below;<\/p>\n\n\n\n<p><a rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\" href=\"https:\/\/kifarunix.com\/install-wondercms-on-debian-10-buster\/\" target=\"_blank\">Install WonderCMS on Debian 10 Buster<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install WonderCMS with Nginx on Debian 10<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Prerequisites<\/h3>\n\n\n\n<p>There are a number of requirements that WonderCMS requires. These include;<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>PHP version 7.1 or greater<ul><li>cURL extension<\/li><li>mbstring extension<\/li><li>Zip extension<\/li><\/ul><\/li><li>mod_rewrite module enabled<\/li><li>any type of server (Apache, NGINX, IIS)<\/li><\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">Install WonderCMS Requirements<\/h4>\n\n\n\n<p>To begin with, update and upgrade your system packages.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt update\napt upgrade<\/code><\/pre>\n\n\n\n<p>Install Nginx Web server, PHP and the required extensions. PHP 7.3 is the default available version on Debian 10 Buster.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>apt install nginx php php-fpm php-mbstring php-curl php-zip<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Running Nginx<\/h3>\n\n\n\n<p>Apache installs by default with PHP. Hence, stop it and run Nginx.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl stop apache2\nsystemctl disable apache2\nsystemctl mask apache2<\/code><\/pre>\n\n\n\n<p>Start and enable Nginx to run on boot.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl start nginx\nsystemctl enable nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Configure Nginx for WonderCMS<\/h3>\n\n\n\n<p>Create WonderCMS Nginx configuration file with the following content.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>vim \/etc\/nginx\/sites-available\/wondercms.conf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>server {\n    listen 80;\n    server_name wondercms.example.com;\n    root \/usr\/share\/nginx\/html\/wondercms;\n    index index.php;\n    autoindex off;\n\n    location \/ {\n        if (!-e $request_filename) {\n            rewrite ^\/(.+)$ \/index.php?page=$1 last;\n        }\n    }\n\n    # prevent access to database.js\n    location ~ database.js {\n        return 403;\n    }\n\n    location ~ \\.php(\/|$) {\n        include fastcgi.conf;\n        fastcgi_pass unix:\/run\/php\/php7.3-fpm.sock;\n    }\n}<\/code><\/pre>\n\n\n\n<p>Run Nginx configuration test.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>nginx -t<\/code><\/pre>\n\n\n\n<p>Enable WonderCMS Nginx site.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>ln -s \/etc\/nginx\/sites-available\/wondercms.conf \/etc\/nginx\/sites-enabled\/<\/code><\/pre>\n\n\n\n<p>Reload Nginx service to effect the changes<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Install WonderCMS on Debian 10 Buster<\/h3>\n\n\n\n<p>Download WonderCMS zipped configuration and extract them to the WonderCMS Nginx root web directory.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>git clone https:\/\/github.com\/robiso\/wondercms.git \/var\/www\/html\/wondercms<\/code><\/pre>\n\n\n\n<p>Change the user and group ownership of WonderCMS configuration to web server user.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>chown -R www-data:www-data \/var\/www\/html\/wondercms<\/code><\/pre>\n\n\n\n<p>Restart Nginx<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>systemctl restart nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Accessing WonderCMS<\/h3>\n\n\n\n<p>You can now access WonderCMS via the address, <a href=\"http:\/\/wondercms.example.com\/loginURL\" target=\"_blank\" rel=\"noopener\">http:\/\/wondercms.example.com<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-debian-10-buster.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1050\" height=\"355\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-debian-10-buster.png\" alt=\"Install WonderCMS on Debian 10 Buster\" class=\"wp-image-4041\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-debian-10-buster.png 1050w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-debian-10-buster-768x260.png 768w\" sizes=\"(max-width: 1050px) 100vw, 1050px\" \/><\/a><\/figure>\n\n\n\n<p>Click on&nbsp;<strong>\u201cClick to login<\/strong>\u201d to login to your site using the provided password.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-login.png\"><img loading=\"lazy\" decoding=\"async\" width=\"938\" height=\"352\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-login.png\" alt=\"wondercms login on Debian 10 Buster\" class=\"wp-image-4042\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-login.png 938w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/wondercms-login-768x288.png 768w\" sizes=\"(max-width: 938px) 100vw, 938px\" \/><\/a><\/figure>\n\n\n\n<p>Change the default password by navigating to&nbsp;<strong>Settings &gt; Security<\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/changepassword.png\"><img loading=\"lazy\" decoding=\"async\" width=\"957\" height=\"601\" src=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/changepassword.png\" alt=\"WonderCMS change password\" class=\"wp-image-4043\" title=\"\" srcset=\"https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/changepassword.png 957w, https:\/\/kifarunix.com\/wp-content\/uploads\/2019\/08\/changepassword-768x482.png 768w\" sizes=\"(max-width: 957px) 100vw, 957px\" \/><\/a><\/figure>\n\n\n\n<p>You have successfully installed WonderCMS with Nginx on Debian 10 Buster.<\/p>\n\n\n\n<p>From WonderCMS, here are five safety recommended tips.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Change the&nbsp;<strong>default password<\/strong>&nbsp;and&nbsp;<strong>default login URL<\/strong>&nbsp;immediately. The default login URL will then automatically disappear from your footer.<\/li><li>Install themes and plugins only from sources you trust.<\/li><li>Regularly update WonderCMS and always create backups.<\/li><li>WonderCMS supports running JavaScript anywhere.&nbsp;<strong>Be careful not to paste random JavaScript code<\/strong>.<\/li><li>WonderCMS supports uploading SVG&#8217;s, which could also contain JavaScript code.&nbsp;<strong>Don&#8217;t get tricked into uploading malicious SVG&#8217;s<\/strong>. If in doubt, avoid uploading SVG file extensions.<\/li><\/ul>\n\n\n\n<p>Read more about WonderCMS on <a rel=\"noreferrer noopener\" aria-label=\"WonderCMS wiki (opens in a new tab)\" href=\"https:\/\/github.com\/robiso\/wondercms\/wiki\" target=\"_blank\">WonderCMS wiki<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">More Tutorials<\/h4>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-automad-cms-on-debian-10-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Automad CMS on Debian 10\/Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-snipe-it-on-debian-10-ubuntu-18-04\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install Snipe-IT on Debian 10\/Ubuntu 18.04<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-wondercms-with-nginx-on-debian-10\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\" (opens in a new tab)\">Install WonderCMS with Nginx on Debian 10<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/kifarunix.com\/install-goaccess-on-ubuntu-18-04-debian-10-buster\/\">Install GoAccess on Ubuntu 18.04\/Debian 10 Buster<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In our previous guide, we discussed how to install WonderCMS on Debian 10 Buster which uses Apache as the webserver. In this guide, we will<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[1087,121],"tags":[1039,229,1088],"class_list":["post-4047","post","type-post","status-publish","format-standard","hentry","category-cms","category-howtos","tag-debian-10-buster","tag-nginx","tag-wondercms","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4047"}],"collection":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/comments?post=4047"}],"version-history":[{"count":6,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4047\/revisions"}],"predecessor-version":[{"id":4080,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/posts\/4047\/revisions\/4080"}],"wp:attachment":[{"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/media?parent=4047"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/categories?post=4047"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kifarunix.com\/wp-json\/wp\/v2\/tags?post=4047"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}