{"id":22087,"date":"2017-05-09T09:04:12","date_gmt":"2017-05-09T14:04:12","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=22087"},"modified":"2024-07-04T01:54:53","modified_gmt":"2024-07-04T06:54:53","slug":"speed-up-drupal-using-varnish-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/","title":{"rendered":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-22212\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg\" alt=\"speed up drupal using varnish\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>In this tutorial, we are going to provide you with step by step instructions on <strong>how to speed Up Drupal using <a href=\"https:\/\/www.rosehosting.com\/varnish-hosting.html\">Varnish<\/a> on\u00a0<a title=\"Ubuntu VPS\" href=\"https:\/\/www.rosehosting.com\/ubuntu-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Ubuntu 16.04<\/a><\/strong>. Drupal is one of the leading open source <a href=\"https:\/\/www.rosehosting.com\/cms-hosting.html\">content management platforms<\/a>. At the time of writing this tutorial, the latest stable version of Drupal is 8.3.2 and it requires:<\/p>\n<p><!--more--><\/p>\n<ul>\n<li>PHP 5.5.9 or higher (preferably the latest), with XML, openssl, JSON, cURL, mysqli and GD PHP extensions enabled.<\/li>\n<li>MySQL 5.0.15, MariaDB 5.1.44, SQLite 3.3.7 or PostgreSQL 8.3 or higher.<\/li>\n<li>Nginx, or Apache web server 2.0 or higher with proper PHP support and mod_rewrite module enabled.<\/li>\n<\/ul>\n<p>This install guide assumes that Apache is already installed and configured on your virtual server.<\/p>\n<p>Let&#8217;s start with the installation.<\/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-69fd0a1137818\" 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-69fd0a1137818\"  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\/speed-up-drupal-using-varnish-on-ubuntu\/#1-Update-the-system\" >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-2\" href=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#2-Install-PHP-packages\" >2. Install PHP packages<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#3-Enable-Apache-rewrite-module\" >3. Enable Apache rewrite module<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#4-Install-Varnish\" >4. Install Varnish<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#5-Install-Drupal\" >5. Install Drupal<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#6-Create-new-database\" >6. Create new database<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#7-Configure-Apache-web-server\" >7. Configure Apache web server<\/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\/speed-up-drupal-using-varnish-on-ubuntu\/#8-Configure-Varnish\" >8. Configure Varnish<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#9-Restart-Apache\" >9. Restart Apache<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#10-Start-Varnish\" >10. Start Varnish<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"1-Update-the-system\"><\/span>1. Update the system<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Make sure your server Ubuntu OS packages are fully <a href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\">up-to-date<\/a>:<\/p>\n<pre>apt-get update \r\napt-get upgrade<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"2-Install-PHP-packages\"><\/span>2. Install PHP packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Install the required PHP packages:<\/p>\n<pre>apt-get install php7.0 php7.0-mbstring php7.0-curl php7.0-gd php7.0-xml php7.0-mysql<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"3-Enable-Apache-rewrite-module\"><\/span>3. Enable Apache rewrite module<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Since clean URLs are enabled by default, mod_rewrite needs to be installed and enabled for Drupal 8 to work, so enable Apache rewrite module if it is not already done so:<\/p>\n<pre>a2enmod rewrite<\/pre>\n<p>Restart the Apache service for the changes to take effect:<\/p>\n<pre>service apache2 restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"4-Install-Varnish\"><\/span>4. Install Varnish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<pre>apt-get install apt-transport-https\r\napt-get install varnish<\/pre>\n<p>Once installed, Varnish ships with a default configuration file at &#8216;\/etc\/varnish\/default.vcl&#8217; that should get you up and running, but in order to take advantage of Varnish cache, you may want to do some Drupal specific tuning. These should always be adapted to fit your specific Varnish version and website&#8217;s needs.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"5-Install-Drupal\"><\/span>5. Install Drupal<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Download the latest version of Drupal available at https:\/\/www.drupal.org to the \/opt\/ directory on the server:<\/p>\n<pre>cd \/opt\/\r\nwget https:\/\/ftp.drupal.org\/files\/projects\/drupal-8.3.2.tar.gz\r\ntar -xvzf drupal-8.3.2.tar.gz\r\nmv \/opt\/drupal-8.3.2\/ \/var\/www\/html\/drupal\r\n<\/pre>\n<p>All files have to be readable by the web server, so set a proper ownership:<\/p>\n<pre>chown www-data:www-data -R \/var\/www\/html\/drupal<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"6-Create-new-database\"><\/span>6. Create new database<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Create a new MySQL database and user:<\/p>\n<pre>mysql -u root -p\r\nmysql&gt; SET GLOBAL sql_mode='';\r\nmysql&gt; CREATE DATABASE drupaldb;\r\nmysql&gt; CREATE USER 'drupaluser'@'localhost' IDENTIFIED BY 'y0uR-pa5sW0rd';\r\nmysql&gt; GRANT ALL PRIVILEGES ON drupaldb.* TO 'drupaluser'@'localhost';d\r\nmysql&gt; FLUSH PRIVILEGES;\r\nmysql&gt; quit<\/pre>\n<p>Do not forget to replace &#8216;y0uR-pa5sW0rd&#8217; with a <a href=\"https:\/\/www.rosehosting.com\/blog\/generate-password-linux-command-line\/\">strong password<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"7-Configure-Apache-web-server\"><\/span>7. Configure Apache web server<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Edit the \/etc\/apache2\/ports.conf Apache configuration file and change the Apache listening port:<\/p>\n<pre>Listen 80<\/pre>\n<p>to:<\/p>\n<pre>Listen 8080<\/pre>\n<p>Create a new virtual host in Apache. Make sure the new Apache virtual host configuration contains the &#8216;AllowOverride All&#8217; directive to allow Drupal&#8217;s .htaccess file to be used. For example, create a new Apache configuration file named \u2018your-domain.conf\u2019 on your virtual server:<\/p>\n<pre>touch \/etc\/apache2\/sites-available\/your-domain.conf\r\nln -s \/etc\/apache2\/sites-available\/your-domain.conf \/etc\/apache2\/sites-enabled\/your-domain.conf\r\nvi \/etc\/apache2\/sites-available\/your-domain.conf<\/pre>\n<p>Then, add the following lines:<\/p>\n<pre>&lt;VirtualHost *:8080&gt;\r\nServerAdmin admin@your-domain.com\r\nDocumentRoot \/var\/www\/html\/drupal\/\r\nServerName your-domain.com\r\nServerAlias www.your-domain.com\r\n&lt;Directory \/var\/www\/html\/drupal\/&gt;\r\nOptions FollowSymLinks\r\nAllowOverride All\r\nOrder allow,deny\r\nallow from all\r\n&lt;\/Directory&gt;\r\nErrorLog \/var\/log\/apache2\/your-domain.com-error_log\r\nCustomLog \/var\/log\/apache2\/your-domain.com-access_log common\r\n&lt;\/VirtualHost&gt;\r\n<\/pre>\n<p>Remove the 000-default.conf file:<\/p>\n<pre>rm \/etc\/apache2\/sites-enabled\/000-default.conf<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"8-Configure-Varnish\"><\/span>8. Configure Varnish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Stop Varnish:<\/p>\n<pre>service varnish stop<\/pre>\n<p>Edit the \u2018\/etc\/default\/varnish\u2019 file :<\/p>\n<pre>vi \/etc\/default\/varnish<\/pre>\n<p>Change port 6081:<\/p>\n<pre>DAEMON_OPTS=\"-a :6081 \\<\/pre>\n<p>to 80:<\/p>\n<pre>DAEMON_OPTS=\"-a :80 \\<\/pre>\n<p>Edit the systemd unit script:<\/p>\n<pre>vi \/etc\/systemd\/system\/multi-user.target.wants\/varnish.service<\/pre>\n<p>Change port 6081:<\/p>\n<pre>ExecStart=\/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<\/pre>\n<p>to port 80:<\/p>\n<pre>ExecStart=\/usr\/sbin\/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f \/etc\/varnish\/default.vcl -S \/etc\/varnish\/secret -s malloc,256m<\/pre>\n<p>Reload systemd using the following command:<\/p>\n<pre>systemctl daemon-reload<\/pre>\n<p>Edit the \u2018\/etc\/varnish\/default.vcl\u2019 file and add\/modify the following lines:<\/p>\n<pre>vi \/etc\/varnish\/default.vcl\r\nbackend default {\r\n.host = \"127.0.0.1\";\r\n.port = \"8080\";\r\n}<\/pre>\n<p>Enable varnish service to start automatically on server boot using the following command:<\/p>\n<pre>systemctl enable varnish<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"9-Restart-Apache\"><\/span>9. Restart Apache<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Restart the Apache web server for the changes to take effect:<\/p>\n<pre>service apache2 restart<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"10-Start-Varnish\"><\/span>10. Start Varnish<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Start the Varnish service:<\/p>\n<pre>service varnish start<\/pre>\n<p>Open http:\/\/your-domain.com in your favorite web browser, and follow the simple on-screen instructions.<\/p>\n<p>Then, log in to your Drupal administration back-end and configure it according to your needs.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-medium wp-image-22094\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-300x89.jpg\" alt=\"drupal 8 back-end\" width=\"300\" height=\"89\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-300x89.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-150x44.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-768x227.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-1024x303.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-1240x367.jpg 1240w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-860x254.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-680x201.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-500x148.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-400x118.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-200x59.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end-50x15.jpg 50w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/drupal8-back-end.jpg 1661w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><br \/>\nThat is it. Drupal 8 and Varnish have been installed on your Ubuntu server.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to do any of this if you use one of our <a title=\"Drupal VPS Hosting\" href=\"https:\/\/www.rosehosting.com\/drupal-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Drupal VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to <strong>speed Up Drupal using Varnish<\/strong> for you. They are available 24&#215;7 and will take care of your request immediately.<br \/>\n<span style=\"color: #ff0000;\"><strong>PS.<\/strong><\/span> If you liked this post 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>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, we are going to provide you with step by step instructions on how to speed Up Drupal &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#more-22087\" aria-label=\"Read more about How to Speed Up Drupal Using Varnish on Ubuntu 16.04\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":22212,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1709,1710,1698],"tags":[160,59,533],"class_list":["post-22087","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-caching","category-cms-crm-erp","category-ubuntu","tag-drupal","tag-ubuntu","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.5 (Yoast SEO v27.5) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04\" \/>\n<meta property=\"og:description\" content=\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/\" \/>\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=\"2017-05-09T14:04:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-07-04T06:54:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04\",\"datePublished\":\"2017-05-09T14:04:12+00:00\",\"dateModified\":\"2024-07-04T06:54:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/\"},\"wordCount\":575,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/speed-up-drupal-with-varnish.jpg\",\"keywords\":[\"drupal\",\"ubuntu\",\"varnish\"],\"articleSection\":[\"Caching\",\"CMS, CRM, ERP\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/\",\"name\":\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/speed-up-drupal-with-varnish.jpg\",\"datePublished\":\"2017-05-09T14:04:12+00:00\",\"dateModified\":\"2024-07-04T06:54:53+00:00\",\"description\":\"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/speed-up-drupal-with-varnish.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/speed-up-drupal-with-varnish.jpg\",\"width\":1200,\"height\":600,\"caption\":\"speed up drupal using varnish\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/speed-up-drupal-using-varnish-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Speed Up Drupal Using Varnish on Ubuntu 16.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 Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting","description":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/","og_locale":"en_US","og_type":"article","og_title":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04","og_description":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-05-09T14:04:12+00:00","article_modified_time":"2024-07-04T06:54:53+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.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":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04","datePublished":"2017-05-09T14:04:12+00:00","dateModified":"2024-07-04T06:54:53+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/"},"wordCount":575,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg","keywords":["drupal","ubuntu","varnish"],"articleSection":["Caching","CMS, CRM, ERP","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/","url":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/","name":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg","datePublished":"2017-05-09T14:04:12+00:00","dateModified":"2024-07-04T06:54:53+00:00","description":"How to Speed Up Drupal Using Varnish on Ubuntu 16.04 | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/04\/speed-up-drupal-with-varnish.jpg","width":1200,"height":600,"caption":"speed up drupal using varnish"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/speed-up-drupal-using-varnish-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Speed Up Drupal Using Varnish on Ubuntu 16.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\/22087","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=22087"}],"version-history":[{"count":6,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22087\/revisions"}],"predecessor-version":[{"id":48761,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/22087\/revisions\/48761"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/22212"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=22087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=22087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=22087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}