{"id":3408,"date":"2021-01-02T22:39:58","date_gmt":"2021-01-02T17:09:58","guid":{"rendered":"https:\/\/seoneurons.com\/blog\/?p=3408"},"modified":"2023-05-29T01:00:59","modified_gmt":"2023-05-28T19:30:59","slug":"multiple-wordpress-single-server-vm-bitnami-nginx","status":"publish","type":"bitnami","link":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/","title":{"rendered":"Multiple WordPress websites install to Bitnami NGINX SSL Stack."},"content":{"rendered":"\n<p>If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM), this article is for you. This tutorial is for WordPress with NGINX and SSL Certified by Bitnami and Automattic on the Google Cloud. <\/p><div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">In this guide, we\u2019ll walk through:<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #494949;color:#494949\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #494949;color:#494949\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#installation-of-multiple-wordpress-using-a-single-virtual-machine-vm-bitnami-nginx\" >Installation of Multiple WordPress using a Single Virtual Machine VM Bitnami NGINX<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#why-should-one-install-multiple-wordpress-on-a-single-vm\" >Why should one install multiple WordPress on a single VM?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#add-database-for-the-second-wordpress-using-phpmyadmin\" >Add database for the Second WordPress using phpMyAdmin.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#add-multipress-wordpress-to-create-files-in-the-vm\" >Add MultiPress WordPress to create files in the VM.<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#download-new-wordpress-application-to-the-application-folder\" >Download New WordPress Application to the application folder<\/a><ul class='ez-toc-list-level-5' ><li class='ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#download-the-wordpress-zip-and-extract\" >Download the WordPress zip and extract<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#configuration-files-for-the-new-wordpress-application\" >Configuration files for the New WordPress Application.<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-5'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#connect-the-configuration-with-the-bitnami-stack\" >Connect the configuration with the bitnami stack<\/a><\/li><\/ul><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#update-dns-of-new-wordpress\" >Update DNS of New WordPress<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#ssl-certificate-configuration-of-new-wordpress-application\" >SSL certificate configuration of new WordPress Application<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"720\" src=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg\" alt=\"Multiple WordPress Single Virtual Machine VM\" class=\"wp-image-3430\" srcset=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg 1280w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine-300x169.jpg 300w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine-1024x576.jpg 1024w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine-768x432.jpg 768w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine-390x220.jpg 390w\" sizes=\"auto, (max-width: 1280px) 100vw, 1280px\" \/><figcaption>WordPress NGINX Single VM Installation<\/figcaption><\/figure>\n\n\n\n<p>This will guide you on how you can install multiple different WordPress, not multisite. <strong>This Bitnami stack includes a single WordPress in its image file<\/strong>, and we&#8217;re adding a second WordPress. You can <a href=\"https:\/\/seoneurons.com\/blog\/bitnami\/install-bitnami-wordpress-nginx\/\">find the installation of the Bitnami WordPress NGINX application here<\/a>. This article guides how you can install a second WordPress application on the virtual machine, and you can follow the same method to add more WordPress CMS.<\/p>\n\n\n\n\t\t<div class=\"stream-item stream-item-in-post stream-item-in-post-1\">\n\t\t<\/div>\n\t\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-installation-of-multiple-wordpress-using-a-single-virtual-machine-vm-bitnami-nginx\"><span class=\"ez-toc-section\" id=\"installation-of-multiple-wordpress-using-a-single-virtual-machine-vm-bitnami-nginx\"><\/span>Installation of Multiple WordPress using a Single Virtual Machine VM Bitnami NGINX<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>After successfully installing the <a href=\"https:\/\/seoneurons.com\/blog\/bitnami\/install-bitnami-wordpress-nginx\/\">WordPress NGINX Bitnami stack<\/a>, you can follow this step of adding multiple WordPress applications to your Bitnami stack. But the question may arise that.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-why-should-one-install-multiple-wordpress-on-a-single-vm\"><span class=\"ez-toc-section\" id=\"why-should-one-install-multiple-wordpress-on-a-single-vm\"><\/span>Why should one install multiple WordPress on a single VM?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>You might already know the answer as you&#8217;re already here. However, these are some major points that could be the reason.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Handling Multiple VM may complicate the task.<\/li><li>If you&#8217;ve already a virtual machine, why create so many? It will save hard-earned money and resources.<\/li><li>From the above line, you can understand usage costs could be very high for different VM. We can save our hard-earned money using a single virtual machine,<\/li><li>This may allow you to choose a robust, dedicated virtual machine instead of multiple small shared machines.<\/li><li>Drawback: It could be that you can&#8217;t install one WordPress in India and one in the US region. But both WordPress will work fine globally.<\/li><\/ul>\n\n\n\n\t\t<div class=\"stream-item stream-item-in-post stream-item-in-post-2\">\n\t\t<\/div>\n\t\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-database-for-the-second-wordpress-using-phpmyadmin\"><span class=\"ez-toc-section\" id=\"add-database-for-the-second-wordpress-using-phpmyadmin\"><\/span>Add database for the Second WordPress using phpMyAdmin.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>In the Bitnami stack, PHPMyAdmin is very secure, and you can&#8217;t access it directly by visiting a URL. <a href=\"https:\/\/seoneurons.com\/blog\/bitnami\/access-phpmyadmin-bitnami-google-cloud\/\">Learn how to connect PHPMyAdmin in the Bitnami stack.<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1273\" height=\"825\" src=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/create-database-phpmyadmin.png\" alt=\"create-database-phpmyadmin\" class=\"wp-image-3472\" srcset=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/create-database-phpmyadmin.png 1273w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/create-database-phpmyadmin-300x194.png 300w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/create-database-phpmyadmin-1024x664.png 1024w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/create-database-phpmyadmin-768x498.png 768w\" sizes=\"auto, (max-width: 1273px) 100vw, 1273px\" \/><figcaption>create a database using phpMyAdmin<\/figcaption><\/figure>\n<\/div>\n\n\n<p>After login into phpMyAdmin, you&#8217;ve to create the database for your new WordPress application.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>In the phpMyAdmin dashboard, click on new to create a new database,<\/li><li>Please enter the name of the database. In this tutorial, we&#8217;re creating a database with the name <strong>seoneurons<\/strong>.<\/li><li>Press the create button, and done.<\/li><\/ul>\n\n\n\n<p>We&#8217;ve created a new database with the name &#8220;seoneurons,&#8221; and now let&#8217;s install WordPress into the directory.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-add-multipress-wordpress-to-create-files-in-the-vm\"><span class=\"ez-toc-section\" id=\"add-multipress-wordpress-to-create-files-in-the-vm\"><\/span>Add MultiPress WordPress to create files in the VM.<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>First, you&#8217;ve to open the SSH Terminal; if you don&#8217;t know how to do it, please refer to this SSH tutorial. And you&#8217;ve to download the WordPress application to the Bitnami application folder.<\/p>\n\n\n\n<p>To do that, you&#8217;ve to access SSH with root permission,<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo -i<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\" id=\"h-download-new-wordpress-application-to-the-application-folder\"><span class=\"ez-toc-section\" id=\"download-new-wordpress-application-to-the-application-folder\"><\/span>Download New WordPress Application to the application folder<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p>First, we&#8217;ll go to the application folder, and execute the command line.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/bitnami\/\nmkdir apps\ncd apps<\/code><\/pre>\n\n\n\n<p>Now Create a New folder in this directory. We are creating a new folder with the name &#8220;seoneurons&#8221;. You can choose any name, but you&#8217;ve to change seoneurons with your folder name in the following command.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"h-download-the-wordpress-zip-and-extract\"><span class=\"ez-toc-section\" id=\"download-the-wordpress-zip-and-extract\"><\/span>Download the WordPress zip and extract<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n\t\t<div class=\"stream-item stream-item-in-post stream-item-in-post-3\">\n\t\t<\/div>\n\t\n\n\n\n<p>Execute the following commands one by one. Please note <strong><span style=\"text-decoration: underline;\">you can change the red color value, but you must change the values given in blue color.<\/span><\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdir <span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\ncd <span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\nwget http:\/\/wordpress.org\/latest.tar.gz\ntar xfz latest.tar.gz\nmv wordpress htdocs<\/code><\/pre>\n\n\n\n<p>Now we downloaded the latest WordPress application to the virtual machine. To run multiple WordPress, we&#8217;ve to connect this WordPress to the single virtual machine&#8217;s present environment. To do that, let&#8217;s create configuration files.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"h-configuration-files-for-the-new-wordpress-application\"><span class=\"ez-toc-section\" id=\"configuration-files-for-the-new-wordpress-application\"><\/span>Configuration files for the New WordPress Application.<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p>We&#8217;ll create the configuration folder with the name &#8220;conf&#8221; for our new WordPress Application. To do that execute these commands one by one.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/bitnami\/apps\/\nmkdir conf\ncd conf\nnano nginx-app.conf<\/code><\/pre>\n\n\n\n<p>Now a blank window or new file window is opened up to create an nginx-app.conf configuration file. You&#8217;ve to paste the following lines in that.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nindex index.php index.html index.htm;\n\nif ($request_uri !~ \"^\/phpmyadmin.*$\")\n{\n  set $test  A;\n}\nif ($request_uri !~ \"^\/bitnami.*$\")\n{\n  set $test  \"${test}B\";\n}\nif (!-e $request_filename)\n{\n  set $test  \"${test}C\";\n}\nif ($test = ABC) {\n  rewrite ^\/(.+)$ \/index.php?q=$1 last;\n}\n\n# Deny access to any files with a .php extension in the uploads directory\nlocation ~* \/(?:uploads|files)\/.*\\.php$ {\n  deny all;\n}\n\n# Disable logging for not found files and access log for the favicon and robots\n\n# Deny all attempts to access hidden files such as .htaccess or .htpasswd.\nlocation ~ \/\\. {\n    deny all;\n}\n\nlocation ~ \\.php$ {\n    fastcgi_split_path_info ^(.+\\.php)(\/.+)$;\n    fastcgi_read_timeout 300;\n    fastcgi_pass unix:\/opt\/bitnami\/php\/var\/run\/www.sock;\n    fastcgi_index index.php;\n    fastcgi_param  SCRIPT_FILENAME $request_filename;\n    include fastcgi_params;\n}\n\n<\/code><\/pre>\n\n\n\n<p>Press ctrl+x(windows) or cmd+x(mac), Then Y to confirm the changes, and then press the enter button to update the changes.<\/p>\n\n\n\n\t\t<div class=\"stream-item stream-item-in-post stream-item-in-post-5\">\n\t\t<\/div>\n\t\n\n\n\n<p>Now We&#8217;ll create a second configuration file nginx-prefix.conf.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano seoneurons-prefix.conf<\/code><\/pre>\n\n\n\n<p>In the new blank window, paste these lines.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nlocation \/<span class=\"has-inline-color has-vivid-red-color\">seoneurons <\/span>{\nalias \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\";\ninclude \"\/opt\/bitnami\/apps\/conf\/nginx-app.conf\";\n}\n<\/code><\/pre>\n\n\n\n<p>Now save this file by pressing Ctrl+X, then Y, and then enter. Now we&#8217;ll create the host file. Execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano seoneurons-vhosts.conf<\/code><\/pre>\n\n\n\n<p>A new blank window will open up. Paste the following code to replace it with your values(red letters).<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nserver {\n\n    listen    80;\n    root   \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\";\n    server_name  <span class=\"has-inline-color has-vivid-cyan-blue-color\">seoneurons.com www.seoneurons.com;<\/span>\n    \n    include \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/conf\/nginx-app.conf\";\n}\n\nserver {\n\n    listen    443 ssl <span class=\"has-inline-color has-vivid-green-cyan-color\">http2<\/span>;\n    root   \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\";\n    server_name  <span class=\"has-inline-color has-vivid-cyan-blue-color\">seoneurons.com www.seoneurons.com;<\/span>\n\n      ssl_certificate      \/opt\/bitnami\/nginx\/conf\/bitnami\/certs\/server.crt;\n       ssl_certificate_key  \/opt\/bitnami\/nginx\/conf\/bitnami\/certs\/server.key;\n\n       ssl_session_cache    shared:SSL:1m;\n       ssl_session_timeout  5m;\n\n    ssl_ciphers  HIGH:!aNULL:!MD5;\n    ssl_prefer_server_ciphers  on;\n    \n#change this folder name\n    include \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/conf\/nginx-app.conf\";\n}\n<\/code><\/pre>\n\n\n\n<p>Replace seoneurons.com with your domain name and add http2 in a secure server block to serve data through HTTP\/2 technology.<\/p>\n\n\n\n<p>Save the changes by pressing ctrl+x, then Y, and then enter.<\/p>\n\n\n\n<p>Now all the configuration of your WordPress environment is done but not of Bitnami nginx stack.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"h-connect-the-configuration-with-the-bitnami-stack\"><span class=\"ez-toc-section\" id=\"connect-the-configuration-with-the-bitnami-stack\"><\/span>Connect the configuration with the bitnami stack<span class=\"ez-toc-section-end\"><\/span><\/h5>\n\n\n\n<p>Now you&#8217;ve to make some changes in the Bitnami stack here. Execute the following command to do that.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/opt\/bitnami\/nginx\/conf\/server_blocks\nnano wordpress-https-server-block.conf<\/code><\/pre>\n\n\n\n<p>Now a new SSH window will open up. Add the following lines inside the server block and outside the server block, respectively. The line inside the server block will be<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>include \"\/opt\/bitnami\/apps\/conf\/*-prefix.conf\";<\/code><\/pre>\n\n\n\n<p>Place this line outside the server block. You&#8217;ve to add these lines once only to enable multiple WordPress websites.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>include \"\/opt\/bitnami\/apps\/conf\/*-vhosts.conf\";<\/code><\/pre>\n\n\n\n<p>After adding these configuration files, the block will look like<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"887\" height=\"871\" src=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/05\/wordpress-config-sercure-server-block.png\" alt=\"Bitnami NGINX configuration for multiple websites\" class=\"wp-image-5430\" srcset=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/05\/wordpress-config-sercure-server-block.png 887w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/05\/wordpress-config-sercure-server-block-300x295.png 300w, https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/05\/wordpress-config-sercure-server-block-768x754.png 768w\" sizes=\"auto, (max-width: 887px) 100vw, 887px\" \/><\/figure>\n<\/div>\n\n\n<p>Save the change by pressing Ctrl+X, then Y, and then press enter. Your changes will be saved.<\/p>\n\n\n\n<p>Now all done for the Multiple WordPress on Single Virtual Machine. The new WordPress is connected with the existing Bitnami WordPress application.<\/p>\n\n\n\n\t\t<div class=\"stream-item stream-item-in-post stream-item-in-post-4\">\n\t\t<\/div>\n\t\n\n\n\n<p>Check that all settings are correct by executing.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -t<\/code><\/pre>\n\n\n\n<p>If it responds as ok, then fine, or in case of any error, check all steps you performed.<\/p>\n\n\n\n<p>Set the default public permissions to the new WordPress application.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo chown bitnami:daemon -R \/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\/*\nsudo chmod -R g+w \/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs*<\/code><\/pre>\n\n\n\n<p>Now restart the nginx, and execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/opt\/bitnami\/ctlscript.sh restart nginx<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-update-dns-of-new-wordpress\"><span class=\"ez-toc-section\" id=\"update-dns-of-new-wordpress\"><\/span>Update DNS of New WordPress<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Visit the domain name provider&#8217;s account and point the single virtual machine&#8217;s IP to your domain name. <a href=\"https:\/\/seoneurons.com\/blog\/bitnami\/domain-name-wordpress-nginx\/\">Check Domain Name Configuration<\/a>.<\/p>\n\n\n\n<p><strong>Access the New WordPress<\/strong><\/p>\n\n\n\n<p>You can now access your new WordPress website(of course, after the DNS update).<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Provide the database name. In our case, it was seoneurons<\/li><li>The password for the database is the same as the phpMyAdmin login page.<\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-ssl-certificate-configuration-of-new-wordpress-application\"><span class=\"ez-toc-section\" id=\"ssl-certificate-configuration-of-new-wordpress-application\"><\/span>SSL certificate configuration of new WordPress Application<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you create multiple WordPress in a Single Virtual Machine, you need to set up a separate SSL certificate. You&#8217;ve to provide the path of this SSL certificate in nginx-vhost.conf instead of Bitnami.<\/p>\n\n\n\n<p>Generate a new SSL certificate, and execute the commands one by one.<\/p>\n\n\n\n<p>In the latest release, 7.2 of WordPress NGINX SSL, the lego module is not included. So first of all, we&#8217;ve to include the lego module. To install the lego module, execute the following command one by one.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>cd \/tmp\ncurl -Ls https:\/\/api.github.com\/repos\/xenolf\/lego\/releases\/latest | grep browser_download_url | grep linux_amd64 | cut -d '\"' -f 4 | wget -i -\ntar xf lego_vX.Y.Z_linux_amd64.tar.gz\nsudo mkdir -p \/opt\/bitnami\/letsencrypt\nsudo mv lego \/opt\/bitnami\/letsencrypt\/lego<\/code><\/pre>\n\n\n\n<p>Now let&#8217;s generate the SSL certificate for our new WordPress website.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo \/opt\/bitnami\/ctlscript.sh stop nginx\nsudo \/opt\/bitnami\/letsencrypt\/lego --tls --email=\"<span class=\"has-inline-color has-vivid-cyan-blue-color\">admin@seoneurons.com<\/span> \" --domains=\"<span class=\"has-inline-color has-vivid-cyan-blue-color\">seoneurons.com<\/span>\" --domains=\"<span class=\"has-inline-color has-vivid-cyan-blue-color\">www.seoneurons.com<\/span>\" --path=\"\/opt\/bitnami\/letsencrypt\" run\nsudo \/opt\/bitnami\/ctlscript.sh start nginx<\/code><\/pre>\n\n\n\n<p>Please change the email address and domain name values with your values.<\/p>\n\n\n\n<p>Now point the new SSL certificate to the latest WordPress install. Execute the following command.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nano \/opt\/bitnami\/apps\/conf\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>-vhosts.conf<\/code><\/pre>\n\n\n\n<p>Now add the new certificates and comment out old, new nginx-vhosts.conf file would look like.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nserver {\n\n    listen    80;\n    root   \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\";\n    server_name  <span class=\"has-inline-color has-vivid-red-color\">seoneurons.com www.seoneurons.com;<\/span>\n    \n    include \"\/opt\/bitnami\/apps\/conf\/nginx-app.conf\";\n}\n\nserver {\n\n    listen    443 ssl;\n    root   \"\/opt\/bitnami\/apps\/<span class=\"has-inline-color has-vivid-red-color\">seoneurons<\/span>\/htdocs\";\n    server_name  <span class=\"has-inline-color has-vivid-red-color\">seoneurons.com www.seoneurons.com;<\/span>\n\n \n# no need to change SSL certificate path.\n#    ssl_certificate \"\/opt\/bitnami\/apps\/wordpress\/conf\/certs\/server.crt\";\n #   ssl_certificate_key \"\/opt\/bitnami\/apps\/wordpress\/conf\/certs\/server.key\";    \n\n<span class=\"has-inline-color has-luminous-vivid-amber-color\"># new certificate below the line.<\/span>\n<span class=\"has-inline-color\" style=\"color: #1975ab;\">ssl_certificate \"\/opt\/bitnami\/letsencrypt\/certificates\/seoneurons.com.crt\";\nssl_certificate_key  \"\/opt\/bitnami\/letsencrypt\/certificates\/seoneurons.com.key\";<\/span>\n\n       ssl_session_cache    shared:SSL:1m;\n       ssl_session_timeout  5m;\n\n    ssl_ciphers  HIGH:!aNULL:!MD5;\n    ssl_prefer_server_ciphers  on;\n    \n#change this folder name\n    include \"\/opt\/bitnami\/apps\/conf\/nginx-app.conf\";\n}<\/code><\/pre>\n\n\n\n<p>Now test the nginx configuration, execute<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -t<\/code><\/pre>\n\n\n\n<p>After successful verification, reload the new changes we made to the application.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>nginx -s reload<\/code><\/pre>\n\n\n\n<p>And you did it! Your new WordPress application can be accessed through the URL you provided. You can learn how you can install the <a href=\"https:\/\/seoneurons.com\/blog\/bitnami\/install-wordpress-google-cloud-bitnami-apache\/\">WordPress NGINX Bitnami stack here.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM), this article is for you. This tutorial is for WordPress with NGINX and SSL Certified by Bitnami and Automattic on the Google Cloud. WordPress NGINX Single VM Installation This will guide you on how you can install multiple different &hellip;<\/p>\n","protected":false},"author":2,"featured_media":3430,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"parentpage":[957],"class_list":["post-3408","bitnami","type-bitnami","status-publish","format-standard","has-post-thumbnail","hentry","parentpage-bitnami"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Multiple WordPress on a Single VM using Bitnami NGINX<\/title>\n<meta name=\"description\" content=\"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Multiple WordPress websites install to Bitnami NGINX SSL Stack.\" \/>\n<meta property=\"og:description\" content=\"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/\" \/>\n<meta property=\"og:site_name\" content=\"SEO Neurons\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SEONeuronsAgency\/\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-28T19:30:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:site\" content=\"@SEONeurons\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/\",\"url\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/\",\"name\":\"Multiple WordPress on a Single VM using Bitnami NGINX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/multiple-wordpress-single-machine.jpg\",\"datePublished\":\"2021-01-02T17:09:58+00:00\",\"dateModified\":\"2023-05-28T19:30:59+00:00\",\"description\":\"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/#primaryimage\",\"url\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/multiple-wordpress-single-machine.jpg\",\"contentUrl\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/01\\\/multiple-wordpress-single-machine.jpg\",\"width\":1280,\"height\":720,\"caption\":\"Multiple WordPress Single Virtual Machine VM\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/bitnami\\\/multiple-wordpress-single-server-vm-bitnami-nginx\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/seoneurons.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Blog\",\"item\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Multiple WordPress websites install to Bitnami NGINX SSL Stack.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/\",\"name\":\"SEO Neurons\",\"description\":\"Create, Optimize Website and Drive More Organic Traffic\",\"publisher\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#organization\"},\"alternateName\":\"SEO Neurons\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#organization\",\"name\":\"SEO Neurons\",\"alternateName\":\"SEO Neurons\",\"url\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/seoneurons-logo.svg\",\"contentUrl\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/06\\\/seoneurons-logo.svg\",\"width\":1,\"height\":1,\"caption\":\"SEO Neurons\"},\"image\":{\"@id\":\"https:\\\/\\\/seoneurons.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/SEONeuronsAgency\\\/\",\"https:\\\/\\\/x.com\\\/SEONeurons\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/seoneurons\",\"https:\\\/\\\/www.youtube.com\\\/c\\\/SEONeurons\",\"https:\\\/\\\/www.instagram.com\\\/seo_neurons\\\/\",\"https:\\\/\\\/t.me\\\/SEONeurons\"],\"legalName\":\"SEO Neurons\",\"foundingDate\":\"2021-01-21\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"1\",\"maxValue\":\"10\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Multiple WordPress on a Single VM using Bitnami NGINX","description":"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/","og_locale":"en_US","og_type":"article","og_title":"Multiple WordPress websites install to Bitnami NGINX SSL Stack.","og_description":"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.","og_url":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/","og_site_name":"SEO Neurons","article_publisher":"https:\/\/www.facebook.com\/SEONeuronsAgency\/","article_modified_time":"2023-05-28T19:30:59+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_site":"@SEONeurons","twitter_misc":{"Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/","url":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/","name":"Multiple WordPress on a Single VM using Bitnami NGINX","isPartOf":{"@id":"https:\/\/seoneurons.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#primaryimage"},"image":{"@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#primaryimage"},"thumbnailUrl":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg","datePublished":"2021-01-02T17:09:58+00:00","dateModified":"2023-05-28T19:30:59+00:00","description":"If you want to install multiple WordPress websites or blogs on a single Virtual Machine (VM) then this article is for you. The complete tutorial guide.","breadcrumb":{"@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#primaryimage","url":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg","contentUrl":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2021\/01\/multiple-wordpress-single-machine.jpg","width":1280,"height":720,"caption":"Multiple WordPress Single Virtual Machine VM"},{"@type":"BreadcrumbList","@id":"https:\/\/seoneurons.com\/blog\/bitnami\/multiple-wordpress-single-server-vm-bitnami-nginx\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/seoneurons.com\/"},{"@type":"ListItem","position":2,"name":"Blog","item":"https:\/\/seoneurons.com\/blog\/"},{"@type":"ListItem","position":3,"name":"Multiple WordPress websites install to Bitnami NGINX SSL Stack."}]},{"@type":"WebSite","@id":"https:\/\/seoneurons.com\/blog\/#website","url":"https:\/\/seoneurons.com\/blog\/","name":"SEO Neurons","description":"Create, Optimize Website and Drive More Organic Traffic","publisher":{"@id":"https:\/\/seoneurons.com\/blog\/#organization"},"alternateName":"SEO Neurons","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/seoneurons.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/seoneurons.com\/blog\/#organization","name":"SEO Neurons","alternateName":"SEO Neurons","url":"https:\/\/seoneurons.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/seoneurons.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2023\/06\/seoneurons-logo.svg","contentUrl":"https:\/\/seoneurons.com\/blog\/wp-content\/uploads\/2023\/06\/seoneurons-logo.svg","width":1,"height":1,"caption":"SEO Neurons"},"image":{"@id":"https:\/\/seoneurons.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SEONeuronsAgency\/","https:\/\/x.com\/SEONeurons","https:\/\/www.linkedin.com\/company\/seoneurons","https:\/\/www.youtube.com\/c\/SEONeurons","https:\/\/www.instagram.com\/seo_neurons\/","https:\/\/t.me\/SEONeurons"],"legalName":"SEO Neurons","foundingDate":"2021-01-21","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"1","maxValue":"10"}}]}},"_links":{"self":[{"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/bitnami\/3408","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/bitnami"}],"about":[{"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/types\/bitnami"}],"author":[{"embeddable":true,"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/comments?post=3408"}],"version-history":[{"count":0,"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/bitnami\/3408\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/media\/3430"}],"wp:attachment":[{"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/media?parent=3408"}],"wp:term":[{"taxonomy":"parentpage","embeddable":true,"href":"https:\/\/seoneurons.com\/blog\/wp-json\/wp\/v2\/parentpage?post=3408"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}