{"id":43250,"date":"2022-11-28T12:30:04","date_gmt":"2022-11-28T18:30:04","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=43250"},"modified":"2022-12-02T11:22:47","modified_gmt":"2022-12-02T17:22:47","slug":"how-to-install-varnish-on-ubuntu-22-04","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/","title":{"rendered":"How to Install Varnish on Ubuntu 22.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-43441\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg\" alt=\"How to Install Varnish on Ubuntu 22.04\" width=\"742\" height=\"372\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/p>\n<p>In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04.<\/p>\n<p>Varnish cache is a web application accelerator that is used as caching HTTP reverse proxy. The varnish case has many advantages against other caching software and can speed up delivery up to 1000 times. Varnish offers many features such as private CDN, Gzip compression and decompression, HTTP streaming pass &amp; fetch, etc.<\/p>\n<p>In this blog post for the installation, we are going to configure it with the <a href=\"https:\/\/www.rosehosting.com\/apache-hosting\/\">Apache web server<\/a>. This process is very easy and may take up to 20 minutes. Let&#8217;s get started!<\/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-69ed605995daf\" 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-69ed605995daf\"  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-varnish-on-ubuntu-22-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-varnish-on-ubuntu-22-04\/#Step-1-Update-the-System\" >Step 1. 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-varnish-on-ubuntu-22-04\/#Step-2-Install-Varnish\" >Step 2. Install Varnish<\/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-varnish-on-ubuntu-22-04\/#Step-3-Install-Apache2\" >Step 3. Install Apache2<\/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-varnish-on-ubuntu-22-04\/#Step-4-Configure-the-Varnish-Cache\" >Step 4. Configure the Varnish Cache<\/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>Fresh install of Ubuntu 22.04<\/li>\n<li>User privileges: root or non-root user with sudo privileges<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Step-1-Update-the-System\"><\/span>Step 1. Update the System<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you have a fresh installation of Ubuntu 22.04, update the system packages to the latest versions available.<\/p>\n<pre>sudo apt update -y &amp;&amp; sudo apt upgrade -y<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-2-Install-Varnish\"><\/span>Step 2. Install Varnish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we are going to add the Varnish repository because it does not exist in the default Varnish repository.<\/p>\n<pre>tee \/etc\/apt\/sources.list.d\/varnishcache_varnish70.list &gt; \/dev\/null &lt;&lt;-EOF\r\ndeb https:\/\/packagecloud.io\/varnishcache\/varnish70\/ubuntu\/ focal main\r\ndeb-src https:\/\/packagecloud.io\/varnishcache\/varnish70\/ubuntu\/ focal main\r\nEOF\r\n<\/pre>\n<p>Once added, update the system<\/p>\n<p>and<\/p>\n<pre>sudo apt-update -y<\/pre>\n<p>Install the varnish cache with the commands below:<\/p>\n<pre>sudo apt install varnish -y<\/pre>\n<p>Once installed, start and enable the service.<\/p>\n<pre>sudo systemctl start varnish &amp;&amp; sudo systemctl start varnish<\/pre>\n<p>To check if the service is up and running, type the following command:<\/p>\n<pre>sudo systemctl status varnish<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# systemctl status varnish\r\n\u25cf varnish.service - Varnish Cache, a high-performance HTTP accelerator\r\n     Loaded: loaded (\/lib\/systemd\/system\/varnish.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Wed 2022-09-21 16:13:26 CDT; 1 week 5 days ago\r\n       Docs: https:\/\/www.varnish-cache.org\/docs\/\r\n             man:varnishd\r\n   Main PID: 2449 (varnishd)\r\n      Tasks: 217 (limit: 4575)\r\n     Memory: 92.4M\r\n        CPU: 11min 37.355s\r\n     CGroup: \/system.slice\/varnish.service\r\n             \u251c\u25002449 \/usr\/sbin\/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f \/etc\/varnish\/default.vcl -S \/etc\/varnish\/secret -s malloc,256m\r\n             \u2514\u25002471 \/usr\/sbin\/varnishd -j unix,user=vcache -F -a :6081 -T localhost:6082 -f \/etc\/varnish\/default.vcl -S \/etc\/varnish\/secret -s malloc,256m\r\n\r\n<\/pre>\n<p>By default, the varnish service is running on port <b>6081<\/b>. You can check this with the command below:<\/p>\n<pre>netstat -tunlp | grep 6081<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# netstat -tunlp | grep 6081\r\ntcp        0      0 0.0.0.0:6081            0.0.0.0:*               LISTEN      2449\/varnishd\r\ntcp6       0      0 :::6081                 :::*                    LISTEN      2449\/varnishd\r\n<\/pre>\n<p>This is another proof that the varnish cache is installed successfully and the service is up and running.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"Step-3-Install-Apache2\"><\/span>Step 3. Install Apache2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>First, we need to install the Apache Web server to configure Varnish later. To install the Apache Web server execute the following command:<\/p>\n<pre>sudo apt install apache2 -y<\/pre>\n<p>To start and enable the Apache service execute the following command:<\/p>\n<pre>sudo systemctl start apache2 &amp;&amp; sudo systemctl enable apache2<\/pre>\n<p>To check the status of the service:<\/p>\n<pre>sudo systemctl status apache2<\/pre>\n<p>You should receive the following output:<\/p>\n<pre>root@host:~# sudo systemctl status apache2\r\n\u25cf apache2.service - The Apache HTTP Server\r\n     Loaded: loaded (\/lib\/systemd\/system\/apache2.service; enabled; vendor preset: enabled)\r\n     Active: active (running) since Wed 2022-09-21 15:52:40 CDT; 1 week 5 days ago\r\n       Docs: https:\/\/httpd.apache.org\/docs\/2.4\/\r\n   Main PID: 767 (apache2)\r\n      Tasks: 55 (limit: 4575)\r\n     Memory: 13.9M\r\n        CPU: 1min 15.604s\r\n     CGroup: \/system.slice\/apache2.service\r\n             \u251c\u2500   767 \/usr\/sbin\/apache2 -k start\r\n             \u251c\u2500123603 \/usr\/sbin\/apache2 -k start\r\n             \u2514\u2500123604 \/usr\/sbin\/apache2 -k start\r\n\r\n<\/pre>\n<p>By default, the Apache service is running on port <b>80<\/b>. We need to change that for we can configure the Varnish cache to work with the Apache web server late.<\/p>\n<p>To change the Apache port from <b>80<\/b> to <b>8080<\/b>, open the file <b>\/etc\/apache2\/ports.conf<\/b> with your favorite text editor and change the Listen 80 to Listen 8080 to look like this:<\/p>\n<pre>Listen 8080\r\n<\/pre>\n<p>Save the file, close it and restart the Apache service.<\/p>\n<pre>sudo systemctl restart apache2<\/pre>\n<p>To check if everything is OK, execute the following command:<\/p>\n<pre>netstat -tunlp | grep apache2<\/pre>\n<pre>root@host:# netstat -tunlp | grep apache2\r\ntcp6       0      0 :::<b>8080<\/b>                 :::*                    LISTEN      127811\/apache2\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Step-4-Configure-the-Varnish-Cache\"><\/span>Step 4. Configure the Varnish Cache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Now, when Varnish is installed and Apache is listening on port 8080, we can proceed with configuring the Varnish. First of all, we are going to change the default listening Varnish port from 6081 to 80.<\/p>\n<p>Open the <b>\/lib\/systemd\/system\/varnish.service<\/b> file and change the port to 80, along with the cache size to 1GB to look like this:<\/p>\n<pre>ExecStart=\/usr\/sbin\/varnishd \\\r\n          -j unix,user=vcache \\\r\n          -F \\\r\n          -a :80 \\\r\n          -T localhost:6082 \\\r\n          -f \/etc\/varnish\/default.vcl \\\r\n          -S \/etc\/varnish\/secret \\\r\n          -s malloc,1g\r\n<\/pre>\n<p>Save the file, close it and reload the daemon and restart the Varnish service.<\/p>\n<pre>sudo systemctl daemon-reload &amp;&amp; sudo systemctl restart varnish service<\/pre>\n<p>Next is to check the Varnish cache backend. Open the file <b>\/etc\/varnish\/default.vcl<\/b> and check if the changes are affected in this file. The lines should look like this:<\/p>\n<pre>backend default {\r\n    .host = \"127.0.0.1\";\r\n    .port = \"8080\";\r\n}\r\n<\/pre>\n<p>Restart the Apache and Varnish services again:<\/p>\n<pre>sudo systemctl restart apache2 varnish<\/pre>\n<p>The final command is to check with <b>curl<\/b> command if Varnish is working properly:<\/p>\n<pre>curl -I <b>YourIPAddressHere<\/b><\/pre>\n<pre>root@host:\/etc\/apache2# curl -I <b>YourIPAddressHere<\/b>\r\nHTTP\/1.1 200 OK\r\nDate: Tue, 04 Oct 2022 14:05:59 GMT\r\nServer: Apache\/2.4.52 (Ubuntu)\r\nLast-Modified: Wed, 21 Sep 2022 20:51:19 GMT\r\nVary: Accept-Encoding\r\nContent-Type: text\/html\r\nX-Varnish: 2\r\nAge: 0\r\nVia: 1.1 varnish (Varnish\/6.6)\r\nETag: W\/\"119c-5e9361b575472-gzip\"\r\nAccept-Ranges: bytes\r\nConnection: keep-alive<\/pre>\n<p>Congratulations! You successfully installed and configured the Varnish cache on Ubuntu 22.04<\/p>\n<p>If you have any difficulties completing this setup on your own, just <a href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\">sign up for one of our NVMe VPS plans<\/a>, and our admins will help you. You can contact us anytime you want. We are available 24\/7 via live chat and support tickets.<\/p>\n<p>If you liked this post about installing Varnish cache on Ubuntu 22.04, please share it with your friends on social networks or simply leave a reply below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Varnish cache is a &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Install Varnish on Ubuntu 22.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#more-43250\" aria-label=\"Read more about How to Install Varnish on Ubuntu 22.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":43441,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13,1698],"tags":[1603,2012,533],"class_list":["post-43250","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-how-to-install","tag-ubuntu-22-04","tag-varnish","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 Varnish on Ubuntu 22.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!\" \/>\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-varnish-on-ubuntu-22-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 Varnish on Ubuntu 22.04\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-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=\"2022-11-28T18:30:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-02T17:22:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg?v=1666783025\" \/>\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:title\" content=\"How to Install Varnish on Ubuntu 22.04\" \/>\n<meta name=\"twitter:description\" content=\"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!\" \/>\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=\"5 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-varnish-on-ubuntu-22-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Install Varnish on Ubuntu 22.04\",\"datePublished\":\"2022-11-28T18:30:04+00:00\",\"dateModified\":\"2022-12-02T17:22:47+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/\"},\"wordCount\":579,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-install-varnish-on-ubuntu-22-04.jpg\",\"keywords\":[\"how to install\",\"ubuntu 22.04\",\"varnish\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/\",\"name\":\"How to Install Varnish on Ubuntu 22.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-install-varnish-on-ubuntu-22-04.jpg\",\"datePublished\":\"2022-11-28T18:30:04+00:00\",\"dateModified\":\"2022-12-02T17:22:47+00:00\",\"description\":\"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-install-varnish-on-ubuntu-22-04.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/10\\\/how-to-install-varnish-on-ubuntu-22-04.jpg\",\"width\":742,\"height\":372,\"caption\":\"How to Install Varnish on Ubuntu 22.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-varnish-on-ubuntu-22-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Varnish on Ubuntu 22.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 Varnish on Ubuntu 22.04 | RoseHosting","description":"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!","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-varnish-on-ubuntu-22-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Varnish on Ubuntu 22.04","og_description":"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2022-11-28T18:30:04+00:00","article_modified_time":"2022-12-02T17:22:47+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg?v=1666783025","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How to Install Varnish on Ubuntu 22.04","twitter_description":"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Install Varnish on Ubuntu 22.04","datePublished":"2022-11-28T18:30:04+00:00","dateModified":"2022-12-02T17:22:47+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/"},"wordCount":579,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg","keywords":["how to install","ubuntu 22.04","varnish"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/","name":"How to Install Varnish on Ubuntu 22.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg","datePublished":"2022-11-28T18:30:04+00:00","dateModified":"2022-12-02T17:22:47+00:00","description":"In this tutorial, we are going to show you how to install Varnish on Ubuntu 22.04. Read on to find out more!","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/10\/how-to-install-varnish-on-ubuntu-22-04.jpg","width":742,"height":372,"caption":"How to Install Varnish on Ubuntu 22.04"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-varnish-on-ubuntu-22-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Varnish on Ubuntu 22.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\/43250","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=43250"}],"version-history":[{"count":7,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43250\/revisions"}],"predecessor-version":[{"id":43442,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/43250\/revisions\/43442"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/43441"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=43250"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=43250"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=43250"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}