{"id":1670,"date":"2022-05-15T12:30:00","date_gmt":"2022-05-15T17:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1670"},"modified":"2022-05-12T05:21:33","modified_gmt":"2022-05-12T10:21:33","slug":"how-to-install-varnish-7-on-almalinux","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/","title":{"rendered":"How to Install Varnish 7 on AlmaLinux"},"content":{"rendered":"\n<div id=\"linux-1365002540\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>Varnish is a free, and open-source web application accelerator used for caching website content in memory. It is designed for HTTP to speed up caching of heavy dynamic websites. It is capable of <a href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-speed-up-a-website-on-debian-9\/\">speeding up your website<\/a> page loading time by a factor of 10x to 300x. This will helps you with your Search Engine Results Page and also improve the user experience on your website.<\/p>\n\n\n\n<p>In this post, we will show you how to install Varnish 7 on AlmaLinux.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>An AlmaLinux VPS with root access enabled or a user with sudo privileges.<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Log in via SSH and Update your System<\/h2>\n\n\n\n<p>First, you will need to log in to your AlmaLinux VPS via SSH as the root user:<\/p>\n\n\n\n<p><code>ssh root@IP_ADDRESS -p PORT_NUMBER<\/code><br>Next, run the following commands to upgrade all installed packages on your VPS:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf update -y<\/pre>\n\n\n\n<p>Once all the packages are updated, restart your system to apply the changes.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Varnish Repo<\/h2>\n\n\n\n<p>By default, the latest version of Varnish is not included in the AlmaLinux default repo. So you will need to disable the default Varnish repo. You can disable it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf module disable varnish<\/pre>\n\n\n\n<p>You will get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">AlmaLinux - AppStream                                                                                     5.6 MB\/s | 9.7 MB     00:01    \nAlmaLinux - BaseOS                                                                                        8.8 MB\/s | 6.8 MB     00:00    \nAlmaLinux - Extras                                                                                         28 kB\/s |  12 kB     00:00    \nDependencies resolved.\n==============================================================================================================================================\n Package                           Architecture                     Version                           Repository                         Size\n==============================================================================================================================================\nDisabling modules:\n varnish                                                                                                                                     \n\nTransaction Summary\n==============================================================================================================================================\n\nIs this ok [y\/N]: y\nComplete!\n<\/pre>\n\n\n\n<p>Next, install the EPEL repository and add the Varnish 7 repo with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf install epel-release -y\ncurl -s https:\/\/packagecloud.io\/install\/repositories\/varnishcache\/varnish70\/script.rpm.sh | bash -<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Install Varnish 7<\/h2>\n\n\n\n<p>Now, you can run the following command to install the Varnish 7 on your server.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf install varnish -y<\/pre>\n\n\n\n<p>Once the Varnish is installed, you can verify the Varnish version using the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rpm -qi varnish<\/pre>\n\n\n\n<p>You will get the Varnish package information in the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Name        : varnish\nVersion     : 7.0.2\nRelease     : 1.el8\nArchitecture: x86_64\nInstall Date: Wednesday 06 April 2022 03:21:17 PM UTC\nGroup       : System Environment\/Daemons\nSize        : 8907085\nLicense     : BSD\nSignature   : (none)\nSource RPM  : varnish-7.0.2-1.el8.src.rpm\nBuild Date  : Wednesday 12 January 2022 02:25:34 PM UTC\nBuild Host  : 7fc509e75620\nRelocations : (not relocatable)\nURL         : https:\/\/www.varnish-cache.org\/\nSummary     : High-performance HTTP accelerator\nDescription :\nThis is Varnish Cache, a high-performance HTTP accelerator.\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Manage Varnish Service<\/h2>\n\n\n\n<p>By default, the Varnish service is managed by systemd. You can start the Varnish service with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl start varnish<\/pre>\n\n\n\n<p>To enable the Varnish service, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl enable varnish<\/pre>\n\n\n\n<p>To check the status of the Varnish service, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl status varnish<\/pre>\n\n\n\n<p>You will get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\u25cf varnish.service - Varnish Cache, a high-performance HTTP accelerator\n   Loaded: loaded (\/usr\/lib\/systemd\/system\/varnish.service; disabled; vendor preset: disabled)\n   Active: active (running) since Wed 2022-04-06 15:21:40 UTC; 6s ago\n  Process: 25005 ExecStart=\/usr\/sbin\/varnishd -a :6081 -a localhost:8443,PROXY -p feature=+http2 -f \/etc\/varnish\/default.vcl -s malloc,256m (&gt;\n Main PID: 25006 (varnishd)\n    Tasks: 217\n   Memory: 108.5M\n   CGroup: \/system.slice\/varnish.service\n           \u251c\u250025006 \/usr\/sbin\/varnishd -a :6081 -a localhost:8443,PROXY -p feature=+http2 -f \/etc\/varnish\/default.vcl -s malloc,256m\n           \u2514\u250025017 \/usr\/sbin\/varnishd -a :6081 -a localhost:8443,PROXY -p feature=+http2 -f \/etc\/varnish\/default.vcl -s malloc,256m\n\nApr 06 15:21:39 rockylinux systemd[1]: Starting Varnish Cache, a high-performance HTTP accelerator...\nApr 06 15:21:40 rockylinux varnishd[25006]: Version: varnish-7.0.2 revision 9b5f68e19ca0ab60010641e305fd12822f18d42c\nApr 06 15:21:40 rockylinux varnishd[25006]: Platform: Linux,4.18.0-348.12.2.el8_5.x86_64,x86_64,-junix,-smalloc,-sdefault,-hcritbit\nApr 06 15:21:40 rockylinux varnishd[25006]: Child (25017) Started\nApr 06 15:21:40 rockylinux varnishd[25006]: Child (25017) said Child starts\nApr 06 15:21:40 rockylinux systemd[1]: Started Varnish Cache, a high-performance HTTP accelerator.\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Configure Varnish<\/h2>\n\n\n\n<p>By default, Varnish listens on port 6081. You can check it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ss -antpl | grep varnish<\/pre>\n\n\n\n<p>You will get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">LISTEN 0      128          0.0.0.0:6081       0.0.0.0:*    users:((\"cache-main\",pid=25017,fd=6),(\"varnishd\",pid=25006,fd=6))\nLISTEN 0      128             [::]:6081          [::]:*    users:((\"cache-main\",pid=25017,fd=7),(\"varnishd\",pid=25006,fd=7))\n<\/pre>\n\n\n\n<p>Now, you will need to configure Varnish to listen on port 80. You can do it by editing the Varnish configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/usr\/lib\/systemd\/system\/varnish.service<\/pre>\n\n\n\n<p>Replace the port 6081 with 80 as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ExecStart=\/usr\/sbin\/varnishd \\\n          -a :80 \\\n          -a localhost:8443,PROXY \\\n          -p feature=+http2 \\\n          -f \/etc\/varnish\/default.vcl \\\n          -s malloc,2g\n<\/pre>\n\n\n\n<p>Save and close the file then reload the systemd daemon to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl daemon-reload<\/pre>\n\n\n\n<p>Next, you will also need to edit the Varnish VCL configuration file and define your Nginx backend.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/varnish\/default.vcl<\/pre>\n\n\n\n<p>Define your Nginx backend as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">backend default {\n    .host = \"127.0.0.1\";\n    .port = \"8080\";\n}\n<\/pre>\n\n\n\n<p>Save and close the file when you are finished.<\/p>\n\n\n\n<p><strong>Note<\/strong>: Replace 127.0.0.1 with your Nginx web server IP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Configure Varnish for Nginx<\/h2>\n\n\n\n<p>First, install the Nginx web server package with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">dnf install nginx -y<\/pre>\n\n\n\n<p>Once the Nginx is installed, you will need to edit the Nginx configuration file and change the listen port from 80 to 8080:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano \/etc\/nginx\/nginx.conf<\/pre>\n\n\n\n<p>Change the default port from 80 to 8080:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    listen       8080 default_server;\n        listen       [::]:8080 default_server;\n<\/pre>\n\n\n\n<p>Save and close the file then restart the Nginx service to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart nginx<\/pre>\n\n\n\n<p>Finally, restart the Varnish service to apply the changes:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">systemctl restart varnish<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Verify Varnish<\/h2>\n\n\n\n<p>At this point, Varnish is installed and configured to work with Nginx. Now it&#8217;s time to verify it.<\/p>\n\n\n\n<p>You can verify it using the curl command as shown below:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -I http:\/\/your-server-ip<\/pre>\n\n\n\n<p>If everything is fine, you will get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">HTTP\/1.1 200 OK\nServer: nginx\/1.14.1\nDate: Wed, 06 Apr 2022 15:25:48 GMT\nContent-Type: text\/html\nContent-Length: 3429\nLast-Modified: Thu, 10 Jun 2021 09:09:03 GMT\nETag: \"60c1d6af-d65\"\nX-Varnish: 2\nAge: 0\nVia: 1.1 varnish (Varnish\/7.0)\nAccept-Ranges: bytes\nConnection: keep-alive\n<\/pre>\n\n\n\n<p>Of course, if you are one of our <a rel=\"noreferrer noopener\" href=\"https:\/\/www.rosehosting.com\/linux-vps-hosting\/\" target=\"_blank\">Linux VPS hosting<\/a> customers, you don\u2019t have to install Varnish 7 on your AlmaLinux VPS \u2013 simply ask our admins, sit back, and relax. Our admins will install Varnish 7 on AlmaLinux for you immediately.<\/p>\n\n\n\n<p>PS. If you liked this post about how to install Varnish 7 on AlmaLinux VPS, please share it with your friends on the social networks using the buttons below, or simply leave a comment in the comments section. Thanks.<\/p><div id=\"linux-2565415595\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Varnish is a free, and open-source web application accelerator used for caching website content in memory. It is designed for HTTP to speed up caching of heavy dynamic websites. It is capable of speeding up your website page loading time by a factor of 10x to 300x. This will helps you with your Search Engine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1671,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[220,174,89],"class_list":["post-1670","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-almalinux","tag-ubuntu-20-04","tag-varnish"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install Varnish 7 on AlmaLinux | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn 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:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/\" \/>\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 7 on AlmaLinux | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn more!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2022-05-15T17:30:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.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=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\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:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install Varnish 7 on AlmaLinux\",\"datePublished\":\"2022-05-15T17:30:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/\"},\"wordCount\":588,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-varnish-7-on-almalinux.jpg\",\"keywords\":[\"almalinux\",\"ubuntu 20.04\",\"varnish\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/\",\"name\":\"How to Install Varnish 7 on AlmaLinux | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-varnish-7-on-almalinux.jpg\",\"datePublished\":\"2022-05-15T17:30:00+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn more!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-varnish-7-on-almalinux.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/05\\\/how-to-install-varnish-7-on-almalinux.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install varnish 7 on almalinux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-varnish-7-on-almalinux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install Varnish 7 on AlmaLinux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install Varnish 7 on AlmaLinux | LinuxHostSupport","description":"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn 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:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/","og_locale":"en_US","og_type":"article","og_title":"How to Install Varnish 7 on AlmaLinux | LinuxHostSupport","og_description":"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn more!","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2022-05-15T17:30:00+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install Varnish 7 on AlmaLinux","datePublished":"2022-05-15T17:30:00+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/"},"wordCount":588,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.jpg","keywords":["almalinux","ubuntu 20.04","varnish"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/","name":"How to Install Varnish 7 on AlmaLinux | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.jpg","datePublished":"2022-05-15T17:30:00+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"In this tutorial, we will show you how to install Varnish 7 on AlmaLinux. Read on to learn more!","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2022\/05\/how-to-install-varnish-7-on-almalinux.jpg","width":742,"height":372,"caption":"how to install varnish 7 on almalinux"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-varnish-7-on-almalinux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install Varnish 7 on AlmaLinux"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1670"}],"version-history":[{"count":1,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1670\/revisions"}],"predecessor-version":[{"id":1672,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1670\/revisions\/1672"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1671"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}