{"id":31086,"date":"2019-06-18T09:49:01","date_gmt":"2019-06-18T14:49:01","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31086"},"modified":"2022-06-03T03:33:43","modified_gmt":"2022-06-03T08:33:43","slug":"how-to-install-elgg-with-nginx-on-ubuntu-18-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/","title":{"rendered":"How to Install Elgg with Nginx on Ubuntu 18.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-31219\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\" alt=\"How to Install Elgg with Nginx on Ubuntu 18.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will show you how to install Elgg on an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 18.04 VPS<\/a> with the <a href=\"https:\/\/www.rosehosting.com\/nginx-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Nginx<\/a> web server.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-31212\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/elgg-nginx-ubuntu-hosting.jpg\" alt=\"\" width=\"150\" height=\"100\" \/>Elgg is an open-source social networking platform where users are able to build all kinds of social environments, such as a campus-wide social network for your university, school, or college, or an internal collaborative platform for your organization. It offers many additional features such as blogging, micro blogging, networking, groups and much more.<\/p>\n<p><!--more--><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-69f0d7784eed2\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" 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: #999;color:#999\" 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><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-69f0d7784eed2\"  aria-label=\"Toggle\" \/><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:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Prerequisites\" >Prerequisites<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-1-Connect-to-Your-Server\" >Step 1: Connect to Your Server<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-2-Install-LEMP\" >Step 2: Install LEMP<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-3-Download-Elgg\" >Step 3: Download Elgg<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-4-Configure-the-Database\" >Step 4: Configure the Database<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-5-Configure-Nginx\" >Step 5: Configure Nginx<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#Step-6-Installing-Elgg-Using-the-Web-Interface\" >Step 6: Installing Elgg Using the Web Interface<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Prerequisites\"><\/span>Prerequisites<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<ul>\n<li>For the purposes of this tutorial, we will be using an <a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 18.04 VPS<\/a><\/li>\n<li>You will also need a working LEMP (Linux, Nginx, MySQL, PHP) stack.<\/li>\n<li>Full SSH root access or a <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-a-sudo-user-on-centos-7\/\" target=\"_blank\" rel=\"noopener noreferrer\">user with sudo privileges<\/a> is also required.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Connect-to-Your-Server\"><\/span>Step 1: Connect to Your Server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we begin, you will need to <a href=\"https:\/\/www.rosehosting.com\/blog\/connect-to-your-linux-vps-via-ssh\/\" target=\"_blank\" rel=\"noopener noreferrer\">connect to your server via SSH<\/a> as the root user or as any other user that has sudo privileges.<\/p>\n<p>To connect to your server as the root user, use the following command:<\/p>\n<pre>ssh root@<span style=\"color: #ff0000;\">IP_ADDRESS<\/span> -p <span style=\"color: #ff0000;\">PORT_NUMBER<\/span><\/pre>\n<p>Make sure to replace <span style=\"color: #ff0000;\">IP_ADDRESS<\/span> and <span style=\"color: #ff0000;\">PORT_NUMBER<\/span> with your actual server IP address and SSH port number.<\/p>\n<p>Once logged in, make sure that your server is up-to-date by running the following commands:<\/p>\n<pre>sudo apt update\r\nsudo apt upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-LEMP\"><\/span>Step 2: Install LEMP<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Before we proceed with the Elgg installation, we will need to prepare our server and set up a LEMP stack. If you already have a working LEMP stack installed on your server, you can skip this and go to the next step of this tutorial.<\/p>\n<p>We will start with the Nginx web server installation. To install the Nginx on your server, run the following command:<\/p>\n<pre>sudo apt install nginx<\/pre>\n<p>To install the MySQL database server, enter the following command:<\/p>\n<pre>sudo apt install mysql-server<\/pre>\n<p>You can then run the following command to secure your MySQL installation:<\/p>\n<pre>sudo mysql_secure_installation<\/pre>\n<p>If the program asks you to enter your current MySQL root password, just press your [Enter] key once, as no password is set by default when installing MySQL.<\/p>\n<p>A few more questions will be displayed on-screen \u2013 it is recommended that you answer yes to all of them by entering the character \u2018Y\u2019:<\/p>\n<pre>Remove anonymous users? (Press y|Y for Yes, any other key for No) : <span style=\"color: #ff0000;\">Y<\/span>\r\nDisallow root login remotely? (Press y|Y for Yes, any other key for No) : <span style=\"color: #ff0000;\">Y<\/span>\r\nRemove test database and access to it? (Press y|Y for Yes, any other key for No) : <span style=\"color: #ff0000;\">Y<\/span>\r\nReload privilege tables now? (Press y|Y for Yes, any other key for No) : <span style=\"color: #ff0000;\">Y<\/span><\/pre>\n<p>You will also need to enable Nginx and MySQL to start on boot with:<\/p>\n<pre>sudo systemctl enable nginx\r\nsudo systemctl enable mysql<\/pre>\n<p>Now it&#8217;s time to install PHP. Ubuntu 18.04 comes with PHP 7.2 by default, so that&#8217;s the version we&#8217;ll be installing in this tutorial.<\/p>\n<p>To install PHP 7.2 along with the other extensions required by Elgg, run the following command:<\/p>\n<pre>sudo apt install php7.2 php7.2-mysql php7.2-opcache php7.2-xml php7.2-xmlrpc php7.2-gd php7.2-mbstring php7.2-json<\/pre>\n<p>To verify that PHP 7.2 is successfully installed, run the following command:<\/p>\n<pre>php -v<\/pre>\n<p>You should get the following output on your screen:<\/p>\n<pre>PHP 7.2.10-0ubuntu0.18.04.1 (cli) (built: Sep 13 2018 13:45:02) ( NTS )\r\nCopyright (c) 1997-2018 The PHP Group\r\nZend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies\r\n    with Zend OPcache v7.2.10-0ubuntu0.18.04.1, Copyright (c) 1999-2018, by Zend Technologies<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Download-Elgg\"><\/span>Step 3: Download Elgg<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now that we have our LEMP stack set up, we can start with our Elgg installation and configuration.<\/p>\n<p>Let\u2019s download the latest stable Elgg version from <a href=\"https:\/\/elgg.org\/about\/download\" target=\"_blank\" rel=\"noopener noreferrer\">this link<\/a>. At the moment of writing this tutorial, the latest stable version is Elgg 3.0.3. To download this version on your server, you can run the following command:<\/p>\n<pre>sudo wget https:\/\/elgg.org\/download\/elgg-3.0.3.zip<\/pre>\n<p>Let&#8217;s extract the files to the <code>\/var\/www<\/code> location on our server with this next line:<\/p>\n<pre>sudo unzip elgg-3.0.3.zip -d \/var\/www<\/pre>\n<p><strong>Note:<\/strong> If you don&#8217;t have the <code>unzip<\/code> package installed on your server, you can install it with the following command: <code>sudo apt install unzip<\/code><\/p>\n<p>Rename the <code>elgg-3.0.3<\/code> directory to <code>elgg<\/code>:<\/p>\n<pre>sudo mv \/var\/www\/elgg-3.0.3 \/var\/www\/elgg<\/pre>\n<p>Elgg needs a special folder to store uploaded files, such as profile icons and photos. For security reasons, it is also recommended for this directory to be created outside the document root directory of our Elgg installation. The directory will be called <code>data<\/code> and you can create it with the following command:<\/p>\n<pre>sudo mkdir -p \/var\/www\/data<\/pre>\n<p>The owner of all these files needs to be the user of the web server running on your system. In our example, we are using the Nginx web server and Nginx runs under the <code>www-data<\/code> user on Ubuntu 18.04.\u00a0 To change the owner and set the correct permissions for these files, you need to run the following command:<\/p>\n<pre>sudo chown -R www-data:www-data \/var\/www\/elgg\r\nsudo chown -R www-data:www-data \/var\/www\/data\r\nsudo chmod -R 750 \/var\/www\/elgg<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Configure-the-Database\"><\/span>Step 4: Configure the Database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Next, we need to create a new database for our Elgg application. To do this, log in to your MySQL database server as the root user by typing the following command:<\/p>\n<pre>sudo mysql -u root -p<\/pre>\n<p>Then enter the password you made for your MySQL user during <strong>step 2<\/strong>. Once you are signed in, create a new database and user by running the following commands on the MySQL shell:<\/p>\n<pre>CREATE DATABASE <span style=\"color: #ff0000;\">elgg_db<\/span>;\r\nCREATE USER <span style=\"color: #ff0000;\">elgg_user<\/span>@localhost IDENTIFIED BY '<span style=\"color: #ff0000;\">strong-password<\/span>';\r\nGRANT ALL PRIVILEGES ON <span style=\"color: #ff0000;\">elgg_db<\/span>.* TO <span style=\"color: #ff0000;\">elgg_user<\/span>@localhost;\r\nFLUSH PRIVILEGES;<\/pre>\n<p>You can replace the database and username with your own and also make sure to replace <span style=\"color: #ff0000;\">strong-password<\/span> with an actual strong password.<\/p>\n<p>To exit the MySQL database server command line, type:<\/p>\n<pre>exit<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Configure-Nginx\"><\/span>Step 5: Configure Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>In this step, we will show you how to create a virtual host file for Nginx \u2013 this is so you can access your Elgg using your domain name.<\/p>\n<p>Create the virtual host file by executing the following command:<\/p>\n<pre>sudo nano \/etc\/nginx\/sites-enabled\/elgg.conf<\/pre>\n<p>And enter the following information:<\/p>\n<pre>server {\r\n  listen 80;\r\n\r\n  server_name <span style=\"color: #ff0000;\">mydomain.com<\/span>;\r\n  root \/var\/www\/elgg;\r\n\r\n  index index.php;\r\n  \r\n  access_log \/var\/log\/nginx\/elgg_access.log;\r\n  error_log \/var\/log\/nginx\/elgg_error.log;\r\n\r\n  location \/ {\r\n    try_files $uri $uri\/ \/index.php?$query_string;\r\n  }\r\n\r\n  location ~ \\.php$ {\r\n    fastcgi_index index.php;\r\n    fastcgi_split_path_info ^(.+\\.php)(.*)$;\r\n    fastcgi_keep_conn on;\r\n    fastcgi_pass unix:\/var\/run\/php\/php7.2-fpm.sock;\r\n    include \/etc\/nginx\/fastcgi_params;\r\n    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\r\n  }\r\n}<\/pre>\n<p>In our example, we will use a domain called <code>mydomain.com<\/code>. Make sure to replace <code>mydomain.com<\/code> with your actual domain\/subdomain name that you would like to use for your Elgg instance.<\/p>\n<p>To enable the server block in Nginx, you need to create a symbolic link to the\u00a0<code>sites-enabled<\/code> directory. Use the following command to create a symbolic link:<\/p>\n<pre>sudo ln -s \/etc\/nginx\/sites-available\/elgg.conf \/etc\/nginx\/sites-enabled\/elgg.conf<\/pre>\n<p>Check if there are errors with the newly created Nginx configuration:<\/p>\n<pre>sudo nginx -t\r\nnginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok\r\nnginx: configuration file \/etc\/nginx\/nginx.conf test is successful\r\n<\/pre>\n<p>If the syntax is OK and there are no errors, we can restart Nginx.<\/p>\n<pre>sudo systemctl restart nginx<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Installing-Elgg-Using-the-Web-Interface\"><\/span>Step 6: Installing Elgg Using the Web Interface<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can now navigate to <code>http:\/\/mydomain.com<\/code> in your browser to start the Elgg installation wizard.<\/p>\n<p>The first page will check if all server requirements are met. If there are some missing dependencies, you should install them on your server and then refresh the page again. Once you make sure everything is set up properly, you can click on \u201c<strong>Next<\/strong>\u201d at the bottom of the page to continue to the next step.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30768\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_02.png\" alt=\"\" width=\"744\" height=\"807\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_02.png 744w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_02-138x150.png 138w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_02-277x300.png 277w\" sizes=\"(max-width: 744px) 100vw, 744px\" \/><\/p>\n<p>On the next page, you need to enter your database information (username, database name, and password). You will also need to enter the Data Directory path (<code>\/var\/www\/data<\/code>) and enter your Site URL (<code>http:\/\/mydomain.com\/<\/code>):<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30769\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_03.png\" alt=\"\" width=\"732\" height=\"890\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_03.png 732w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_03-123x150.png 123w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_03-247x300.png 247w\" sizes=\"(max-width: 732px) 100vw, 732px\" \/><\/p>\n<p>Next, you will need to enter your Site name and create an admin account before finishing the installation.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30770\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_05.png\" alt=\"\" width=\"735\" height=\"694\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_05.png 735w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_05-150x142.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_05-300x283.png 300w\" sizes=\"(max-width: 735px) 100vw, 735px\" \/><\/p>\n<p>Once this is done, Elgg has been successfully installed on your system.<\/p>\n<p>You can now access your admin panel and login with your admin account at <code>http:\/\/mydomain.com\/admin<\/code><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-30767\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06.png\" alt=\"\" width=\"1167\" height=\"760\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06.png 1167w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06-150x98.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06-300x195.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06-768x500.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06-1024x667.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/05\/elgg_06-1080x703.png 1080w\" sizes=\"(max-width: 1167px) 100vw, 1167px\" \/><\/p>\n<p>That\u2019s it! Elgg has been successfully installed on your Ubuntu 18.04 server.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-31213\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/elgg-ubuntu-18.04.jpg\" alt=\"\" width=\"150\" height=\"100\" \/>Of course, you don\u2019t have to know\u00a0<strong>how to install Elgg on Ubuntu 18.04<\/strong>\u00a0if you have\u00a0<a href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Managed Ubuntu Hosting<\/a>\u00a0or <a href=\"https:\/\/www.rosehosting.com\/elgg-hosting.html\">Managed Elgg Hosting<\/a> with us. You can simply ask our support team to install Elgg on Ubuntu 18.04 for you. They are available 24\/7, and will be able to help you with the installation of Elgg on Ubuntu 18.04.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong>.<\/span> If you enjoyed reading this blog post on how to install Elgg on Ubuntu 18.04, feel free to share it on social networks by using the shortcuts below, or simply leave a comment in the comments section. Thank you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Elgg on an Ubuntu 18.04 VPS with the Nginx web &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Elgg with Nginx on Ubuntu 18.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#more-31086\" aria-label=\"Read more about How to Install Elgg with Nginx on Ubuntu 18.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":31219,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[301,1779],"class_list":["post-31086","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-elgg","tag-ubuntu-18-04","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Elgg with Nginx on Ubuntu 18.04\" \/>\n<meta property=\"og:description\" content=\"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2019-06-18T14:49:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Elgg with Nginx on Ubuntu 18.04\",\"datePublished\":\"2019-06-18T14:49:01+00:00\",\"dateModified\":\"2022-06-03T08:33:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/\"},\"wordCount\":1102,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\",\"keywords\":[\"elgg\",\"Ubuntu 18.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/\",\"name\":\"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\",\"datePublished\":\"2019-06-18T14:49:01+00:00\",\"dateModified\":\"2022-06-03T08:33:43+00:00\",\"description\":\"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Elgg with Nginx on Ubuntu 18.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Elgg with Nginx on Ubuntu 18.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting","description":"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting","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:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Elgg with Nginx on Ubuntu 18.04","og_description":"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-06-18T14:49:01+00:00","article_modified_time":"2022-06-03T08:33:43+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Elgg with Nginx on Ubuntu 18.04","datePublished":"2019-06-18T14:49:01+00:00","dateModified":"2022-06-03T08:33:43+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/"},"wordCount":1102,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg","keywords":["elgg","Ubuntu 18.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/","name":"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg","datePublished":"2019-06-18T14:49:01+00:00","dateModified":"2022-06-03T08:33:43+00:00","description":"How to Install Elgg with Nginx on Ubuntu 18.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-elgg-with-nginx-on-ubuntu-18.04.jpg","width":742,"height":372,"caption":"How to Install Elgg with Nginx on Ubuntu 18.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-elgg-with-nginx-on-ubuntu-18-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Elgg with Nginx on Ubuntu 18.04"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31086","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=31086"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31086\/revisions"}],"predecessor-version":[{"id":41720,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31086\/revisions\/41720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/31219"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31086"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31086"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31086"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}