{"id":31262,"date":"2019-06-27T14:49:48","date_gmt":"2019-06-27T19:49:48","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31262"},"modified":"2022-06-03T03:33:42","modified_gmt":"2022-06-03T08:33:42","slug":"how-to-install-wagtail-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/","title":{"rendered":"How to Install Wagtail on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-31352\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg\" alt=\"\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9-300x150.jpg 300w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we will show you how to install Wagtail on a <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a>.<\/p>\n<p>Wagtail is a free, open-source, Python-based web application framework. On top of that, Wagtail is also a popular CMS that uses the Django framework. It has a set of useful components that helps developers create their applications quickly and with ease.<\/p>\n<p><img decoding=\"async\" class=\"alignright size-full wp-image-31354\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/set-up-configure-wagtail-easily-debian9-vps.jpg\" alt=\"\" width=\"204\" height=\"75\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/set-up-configure-wagtail-easily-debian9-vps.jpg 204w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/set-up-configure-wagtail-easily-debian9-vps-150x55.jpg 150w\" sizes=\"(max-width: 204px) 100vw, 204px\" \/>Wagtail is built and maintained by experienced developers and is used by some of the world\u2019s largest companies and governments. Installing Wagtail on Debian 9 is an easy task if you follow the steps below carefully. For this tutorial, we will be installing Wagtail using pip in a virtual environment. Let&#8217;s begin with the installation.<\/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-69ee31c6bd462\" 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-69ee31c6bd462\"  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-wagtail-on-debian-9\/#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-wagtail-on-debian-9\/#Step-1-Log-in-via-SSH-and-Update-the-System\" >Step 1: Log in via SSH and Update the System<\/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-wagtail-on-debian-9\/#Step-2-Install-Python-and-pip\" >Step 2: Install Python and pip<\/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-wagtail-on-debian-9\/#Step-3-Create-a-virtual-environment\" >Step 3: Create a virtual environment<\/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-wagtail-on-debian-9\/#Step-4-Install-Wagtail-in-virtualenv\" >Step 4: Install Wagtail in virtualenv<\/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-wagtail-on-debian-9\/#Step-5-Create-a-Wagtail-project\" >Step 5: Create a Wagtail project<\/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-wagtail-on-debian-9\/#Step-6-Install-Gunicorn\" >Step 6: Install Gunicorn<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#Step-7-Install-Nginx\" >Step 7: Install Nginx<\/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>A <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian 9 VPS<\/a><\/li>\n<li>SSH access with root privileges (or access to an admin account with sudo privileges)<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Log-in-via-SSH-and-Update-the-System\"><\/span>Step 1: Log in via SSH and Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Log in to your Debian 9 VPS.<\/p>\n<pre>ssh root@IP_Address -p Port_number<\/pre>\n<p>You can check whether you have the proper Debian version installed on your server with the following command:<\/p>\n<pre># lsb_release -a<\/pre>\n<p>You should get this output:<\/p>\n<pre>Distributor ID: Debian\r\nDescription: Debian GNU\/Linux 9.9 (Stretch)\r\nRelease: 9.9\r\nCodename: stretch\r\n<\/pre>\n<p>Then, run the following command to make sure that all installed packages on the server are updated to their latest available versions:<\/p>\n<pre># apt update &amp;&amp; apt upgrade<\/pre>\n<p>With that out of the way, we can start installing the packages that we&#8217;ll need.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Python-and-pip\"><\/span>Step 2: Install Python and pip<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To proceed with the Wagtail installation, we need to install Python 3 first. That can be done by entering this next command. This also installs the &#8216;pip&#8217; package manager for Python, as well as the virtual environment package for Python:<\/p>\n<pre># apt install python3 python3-pip python3-venv<\/pre>\n<p>Now we need to create a virtual environment.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Create-a-virtual-environment\"><\/span>Step 3: Create a virtual environment<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We will now install a virtual environment through a system user. If you don&#8217;t have a system user other than the root account, please create an account first, then add it to the &#8216;sudoers&#8217; list. Please <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-create-and-delete-a-user-on-debian-9\/\">take a look at this tutorial<\/a> to see how this can be done. Run this next command to install &#8216;virtualenv&#8217; using pip3.<\/p>\n<pre># pip3 install virtualenv<\/pre>\n<p>Once the virtual environment is installed, you can proceed with creating the Wagtail virtual environment. We&#8217;re naming it &#8216;wagtailvenv&#8217;, but you can call it whatever you like.<\/p>\n<pre># su - rh\r\n$ virtualenv wagtailvenv\r\n<\/pre>\n<p>The command will create a virtual environment in <code>\/home\/rh\/wagtailvenv<\/code>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Install-Wagtail-in-virtualenv\"><\/span>Step 4: Install Wagtail in virtualenv<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>While we are still logged in as the &#8220;rh&#8221; user, we are now going to install Wagtail onto the virtual environment that we created earlier:<\/p>\n<pre>$ source ~\/wagtailvenv\/bin\/activate<\/pre>\n<p>As you can see onscreen, your SSH terminal prompt has changed to the virtual environment prompt:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-31300\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtailvenv_activate.png\" alt=\"\" width=\"392\" height=\"44\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtailvenv_activate.png 392w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtailvenv_activate-150x17.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtailvenv_activate-300x34.png 300w\" sizes=\"(max-width: 392px) 100vw, 392px\" \/><\/p>\n<p>You are now in the virtual environment &#8211; let&#8217;s proceed with the Wagtail installation.<\/p>\n<pre>(wagtailvenv) rh@rose:~$ pip install wagtail<\/pre>\n<p>Pay attention to the command &#8211; even if we are using Python 3 while in the Python virtual environment, please use the &#8216;pip&#8217; command instead of &#8216;pip3&#8217;. This is because the virtual environment tool is always named pip, regardless of the Python version we use.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-5-Create-a-Wagtail-project\"><\/span>Step 5: Create a Wagtail project<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Wagtail has now been installed under the &#8220;rh&#8221; user. Now, let&#8217;s create an example project:<\/p>\n<pre>(wagtailvenv) rh@rose:~$:~$ cd ~\r\n(wagtailvenv) rh@rose:~$:~$ wagtail start newproject\r\n<\/pre>\n<p>The command will create a project named &#8220;newproject&#8221;, and this will also create a &#8220;newproject&#8221; directory in <code>\/home\/rh\/<\/code>.<br \/>\nNext, run the following commands to start the new project.<\/p>\n<pre>(wagtailvenv) rh@rose:~$:~$ cd newproject\r\n(wagtailvenv) rh@rose:~$:~$ python manage.py migrate\r\n(wagtailvenv) rh@rose:~$:~$ python manage.py createsuperuser\r\n(wagtailvenv) rh@rose:~$:~$ python manage.py runserver 0.0.0.0:8000\r\n<\/pre>\n<p>When creating the superuser, you will be asked for a password and email address &#8211; please provide the credentials.<\/p>\n<p>Now, open your favorite web browser and navigate to your IP_address:8000. In this example, we installed Wagtail on 192.168.1.231 so we need to go to <code>http:\/\/192.168.1.231:8000<\/code>\u00a0in order to see the web interface. Here&#8217;s what it looks like:<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-31301\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail.png\" alt=\"\" width=\"1067\" height=\"627\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail.png 1067w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail-150x88.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail-300x176.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail-768x451.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail-1024x602.png 1024w\" sizes=\"(max-width: 1067px) 100vw, 1067px\" \/><\/p>\n<p>You can reach the Wagtail administration page at <code>http:\/\/192.168.1.231:8000\/admin<\/code> &#8211; use the credentials you chose when creating the Wagtail superuser in the previous step.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-31302\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin.png\" alt=\"\" width=\"1263\" height=\"403\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin.png 1263w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin-150x48.png 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin-300x96.png 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin-768x245.png 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin-1024x327.png 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/wagtail_admin-1080x345.png 1080w\" sizes=\"(max-width: 1263px) 100vw, 1263px\" \/><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-6-Install-Gunicorn\"><\/span>Step 6: Install Gunicorn<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To manage the Wagtail application better, we need to install Gunicorn. Gunicorn is a python &#8220;Web Server Gateway Interface&#8221; (WGSI) HTTP server. It is a pre-fork worker model, ported from Ruby&#8217;s Unicorn project. The Gunicorn server is broadly compatible with a number of web frameworks, can be simply implemented, is light on server resources, and is fairly fast. Install it by running these commands:<\/p>\n<pre>(wagtailvenv) rh@rose:~$ pip install gunicorn\r\n(wagtailvenv) rh@rose:~$ cd ~\/newproject\r\n(wagtailvenv) rh@rose:~$ python manage.py collectstatic\r\n(wagtailvenv) rh@rose:~$ deactivate\r\n(wagtailvenv) rh@rose:~$ exit<\/pre>\n<p>What we&#8217;ll be doing now is making Gunicorn a system service, that way we can start and stop it at will using &#8216;systemctl&#8217;. Now, create this file using your preferred text editor and make sure that the contents of your configuration file match the contents of this example. Of course, don&#8217;t forget to change the username to the name of your admin account:<\/p>\n<pre># nano \/etc\/systemd\/system\/gunicorn.service<\/pre>\n<pre>[Unit]\r\nDescription=gunicorn daemon\r\nAfter=network.target\r\n\r\n[Service]\r\nUser=rh\r\nGroup=www-data\r\nWorkingDirectory=\/home\/rh\/newproject\r\nExecStart=\/home\/rh\/wagtailvenv\/bin\/gunicorn --access-logfile - --workers 3 --bind unix:\/home\/rh\/newproject.sock newproject.wsgi:application\r\n\r\n[Install]\r\nWantedBy=multi-user.target<\/pre>\n<p>After the changes have been made, save and exit the file, then reload all daemons so that the new configuration file is acknowledged:<\/p>\n<pre># systemctl daemon-reload<\/pre>\n<p>Now, we can start\/stop\/restart the Wagtail application using the systemctl command:<\/p>\n<pre># systemctl start gunicorn<\/pre>\n<p>If you want to run it on boot, we&#8217;ll need to enable it:<\/p>\n<pre># systemctl enable gunicorn<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-7-Install-Nginx\"><\/span>Step 7: Install Nginx<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Gunicorn has been successfully configured. However, if you want to access the application using your domain name and not require the port number, we need to install and configure a web server. For this tutorial, we will install and configure Nginx to proxy pass to gunicorn.<\/p>\n<pre># apt install nginx<\/pre>\n<p>Let&#8217;s create an Nginx server block file. make sure you change <span style=\"color: #ff0000;\">yourdomain.com<\/span> to your actual domain name. Create this file using your preferred text editor and add these contents to it:<\/p>\n<pre># nano \/etc\/nginx\/sites-enabled\/<span style=\"color: #ff0000;\">yourdomain.com<\/span>.conf<\/pre>\n<pre>server {\r\n    listen 80;\r\n    server_name <span style=\"color: #ff0000;\">yourdomain.com<\/span>;\r\n\r\n    location = \/favicon.ico { access_log off; log_not_found off; }\r\n    location \/static\/ {\r\n        root \/home\/rh\/newproject;\r\n    }\r\n\r\n    location \/ {\r\n        proxy_set_header Host $http_host;\r\n        proxy_set_header X-Real-IP $remote_addr;\r\n        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;\r\n        proxy_set_header X-Forwarded-Proto $scheme;\r\n        proxy_pass http:\/\/unix:\/home\/rh\/newproject.sock;\r\n    }\r\n}\r\n<\/pre>\n<p>Save and exit once finished. Next, check if there are errors using the first command. If there are none, you can then start Nginx. We also recommend enabling Nginx to start on boot as well:<\/p>\n<pre># nginx -t\r\n# systemctl start nginx\r\n# systemctl enable nginx\r\n<\/pre>\n<p>To give permissions to Nginx to access your Wagtail application, we have to add the Nginx user to the user group that runs Wagtail:<\/p>\n<pre># usermod -aG www-data rh<\/pre>\n<p>Then, we also need to change the directory permissions of the Wagtail user&#8217;s home directory:<\/p>\n<pre># chmod 710 \/home\/rh<\/pre>\n<p>Then restart Nginx to acknowledge the changes:<\/p>\n<pre># systemctl restart nginx<\/pre>\n<p>That&#8217;s it, you should be able to access your Wagtail application at <code>http:\/\/yourdomain.com<\/code> now.<\/p>\n<hr \/>\n<p><img decoding=\"async\" class=\"alignleft size-full wp-image-31353\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/managed-wagtail-debian9-vps.jpg\" alt=\"\" width=\"204\" height=\"75\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/managed-wagtail-debian9-vps.jpg 204w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/managed-wagtail-debian9-vps-150x55.jpg 150w\" sizes=\"(max-width: 204px) 100vw, 204px\" \/>Of course, you don\u2019t have to install Wagtail on Debian 9 if you use one of our <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Managed Debian Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Wagtail on your <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Debian VPS<\/a> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post on how to install Wagtail on Debian 9, please share it with your friends on the social networks using the buttons below or simply leave a reply in the comments sections. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we will show you how to install Wagtail on a Debian 9 VPS. Wagtail is a free, &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Wagtail on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#more-31262\" aria-label=\"Read more about How to Install Wagtail on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":31352,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1700,13],"tags":[1577,1348],"class_list":["post-31262","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-debian","category-tutorials","tag-debian-9","tag-wagtail","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.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Install Wagtail on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Install Wagtail on Debian 9 | 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-wagtail-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install Wagtail on Debian 9\" \/>\n<meta property=\"og:description\" content=\"How to Install Wagtail on Debian 9 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/\" \/>\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-27T19:49:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-03T08:33:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.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=\"6 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-wagtail-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Wagtail on Debian 9\",\"datePublished\":\"2019-06-27T19:49:48+00:00\",\"dateModified\":\"2022-06-03T08:33:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/\"},\"wordCount\":1047,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-wagtail-on-debian9.jpg\",\"keywords\":[\"debian 9\",\"Wagtail\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Debian\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/\",\"name\":\"How to Install Wagtail on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-wagtail-on-debian9.jpg\",\"datePublished\":\"2019-06-27T19:49:48+00:00\",\"dateModified\":\"2022-06-03T08:33:42+00:00\",\"description\":\"How to Install Wagtail on Debian 9 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-wagtail-on-debian9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/how-to-install-wagtail-on-debian9.jpg\",\"width\":742,\"height\":372},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-wagtail-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Wagtail on Debian 9\"}]},{\"@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 Wagtail on Debian 9 | RoseHosting","description":"How to Install Wagtail on Debian 9 | 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-wagtail-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Wagtail on Debian 9","og_description":"How to Install Wagtail on Debian 9 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2019-06-27T19:49:48+00:00","article_modified_time":"2022-06-03T08:33:42+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.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":"6 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Wagtail on Debian 9","datePublished":"2019-06-27T19:49:48+00:00","dateModified":"2022-06-03T08:33:42+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/"},"wordCount":1047,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg","keywords":["debian 9","Wagtail"],"articleSection":["CMS, CRM, ERP","Debian","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/","name":"How to Install Wagtail on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg","datePublished":"2019-06-27T19:49:48+00:00","dateModified":"2022-06-03T08:33:42+00:00","description":"How to Install Wagtail on Debian 9 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2019\/06\/how-to-install-wagtail-on-debian9.jpg","width":742,"height":372},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-wagtail-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Wagtail on Debian 9"}]},{"@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\/31262","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=31262"}],"version-history":[{"count":1,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31262\/revisions"}],"predecessor-version":[{"id":41719,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31262\/revisions\/41719"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/31352"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}