{"id":21343,"date":"2017-01-25T07:50:51","date_gmt":"2017-01-25T13:50:51","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=21343"},"modified":"2022-12-12T05:40:08","modified_gmt":"2022-12-12T11:40:08","slug":"how-to-speed-up-and-optimize-wordpress-on-a-linux-vps","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/","title":{"rendered":"How to Speed up and Optimize WordPress"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-24949\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg\" alt=\"How to Speed up and Optimize WordPress\" width=\"1200\" height=\"600\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg 1200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-150x75.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-768x384.jpg 768w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-1024x512.jpg 1024w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-860x430.jpg 860w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-680x340.jpg 680w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-500x250.jpg 500w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-400x200.jpg 400w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-200x100.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress-50x25.jpg 50w\" sizes=\"(max-width: 1200px) 100vw, 1200px\" \/><\/p>\n<p>We&#8217;ll show you, How to Speed up and Optimize WordPress. Doesn&#8217;t matter if you are running a small blog or a high-traffic website based on WordPress, optimizing your WordPress should be one of your top priorities. Page speed is so important today that even Google&#8217;s ranking algorithm has been adapted to this. Moreover, a slow site means less visitors and that is the main reason you should be concerned about. In this post, we will do an overview of some of the key optimization techniques that could help your to get the best performances of your WordPress site and your Linux VPS.<\/p>\n<p><!--more--><\/p>\n<p>The WordPress optimization techniques will be limited by the hosting service you are using. If you are using shared hosting then you will have little control over your server setup and you will not be able to perform advanced optimization techniques.\u00a0Note that many managed VPS providers won&#8217;t give you full control (root access) to your VPS. That is why we always recommend using our Linux VPS hosting powered by enterprise SSD drives to run a WordPress web site. If you get a VPS from us, you will have full control (root access) over the server to perform server-side optimizations. We recommend switching <a href=\"https:\/\/www.rosehosting.com\/blog\/from-shared-to-vps-hosting\/\">from Shared to VPS<\/a> ASAP. You&#8217;ll see a lot of improvements of your site&#8217;s performance, even by switching to a VPS alone, without any further optimizations.<\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 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-6a2553e8e471a\" 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-6a2553e8e471a\"  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-speed-up-and-optimize-wordpress-on-a-linux-vps\/#01-LEMP-Linux-Nginx-MySQLMariaDB-and-PHP\" >01. LEMP (Linux, Nginx, MySQL\/MariaDB and PHP)<\/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-speed-up-and-optimize-wordpress-on-a-linux-vps\/#02-Caching\" >02. Caching<\/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-speed-up-and-optimize-wordpress-on-a-linux-vps\/#03-Server-side-Caching\" >03. Server-side Caching<\/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-speed-up-and-optimize-wordpress-on-a-linux-vps\/#04-Caching-Plugins\" >04. Caching Plugins<\/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-speed-up-and-optimize-wordpress-on-a-linux-vps\/#05-Leverage-Browser-Caching\" >05. Leverage Browser Caching<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#06-Add-gzip-compression\" >06. Add gzip compression<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#07-Use-only-essential-plugins\" >07. Use only essential plugins<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#08-Use-good-themes\" >08. Use good themes<\/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\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#09-Optimize-images\" >09. Optimize images<\/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\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#10-Minify-CSS-and-JavaScript-files\" >10. Minify CSS and JavaScript files<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#11-Content-Delivery-Network\" >11. Content Delivery Network<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"01-LEMP-Linux-Nginx-MySQLMariaDB-and-PHP\"><\/span>01. LEMP (Linux, Nginx, MySQL\/MariaDB and PHP)<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Using a solid software stack like LEMP will certainly help you to get the best of your <a href=\"https:\/\/www.rosehosting.com\/blog\/install-wordpress-on-a-centos-7-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress installation<\/a>. The LEMP stack consists of Nginx which is used to run the busiest sites on the Internet. It will significantly improve the performance of your WordPress site and your server. If you don&#8217;t have LEMP installed on your <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">WordPress server<\/a>, go ahead and <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-lemp-linux-nginx-mysql-php-fpm-on-a-debian-8-vps\/\" target=\"_blank\" rel=\"noopener noreferrer\">install Nginx, MySQL and PHP-FPM<\/a> using our guide. You can find more <a href=\"https:\/\/www.nginx.com\/blog\/9-tips-for-improving-wordpress-performance-with-nginx\/\">performance improving tips about WordPress and Nginx<\/a>. Running the latest version of the software is very important too, so make sure that all your WordPress code, Nginx and the other <a href=\"https:\/\/www.rosehosting.com\/blog\/update-the-software-on-linux\/\">server software are up to date<\/a>. Updating your PHP to <a href=\"https:\/\/www.rosehosting.com\/blog\/install-php-7-on-ubuntu-14-04\/\" target=\"_blank\" rel=\"noopener noreferrer\">PHP 7<\/a> will be very beneficial too as PHP 7 is considered as twice as faster than PHP 5.6. Also, according to some benchmarks, PHP 7 uses 30% less memory and serves 3x more requests.<\/p>\n<p>Reducing the server load by disabling the unused services running on it will have a huge impact on the performance of your site. The server will handle more traffic without crashing some of the important services like your database server.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"02-Caching\"><\/span>02. Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Caching is very important if you like to speed up your WordPress site. By implementing some good caching techniques you can improve the performance several hundred times. We will review some of the most effective caching techniques.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"03-Server-side-Caching\"><\/span>03. Server-side Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Adding an opcode caching like OPcache to your PHP will improve its performances significantly. This is very simple method as OPcache comes with the PHP core by default. Just make sure that your PHP version is greater than 5.5, although we recommend using PHP 7 with WordPress.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"04-Caching-Plugins\"><\/span>04. Caching Plugins<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To cache your WordPress posts and pages as static files you can can use some caching plugin. Installing a caching plugin in WordPress is fairly simple, just as any caching plugin in WordPress. However, you may need to take care of the post-installation configuration. Almost all caching plugins provide user documentation so you can. easily learn how to configure the plugin for maximum performances. You can check our tutorial for <a href=\"https:\/\/www.rosehosting.com\/blog\/run-wordpress-w3totalcache-with-lemp-nginx-php-fpmapc-and-mysql-stack-on-centos-6-vps-for-maximum-performance#caching\">w3 total cache.<\/a><\/p>\n<p>The caching plugin category for WordPress is available at <a href=\"https:\/\/wordpress.org\/plugins\/tags\/caching\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/wordpress.org\/plugins\/tags\/caching<\/a>.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"05-Leverage-Browser-Caching\"><\/span>05. Leverage Browser Caching<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Another caching technique that you can implement for your WordPress site is to leverage browser caching. Browser caching means the client&#8217;s web browser will download and store the assets like CSS, JS and images into the local storage for a certain amount of time, which can reduce the number of requests for each page and will greatly reduce the server load. To enable leverage browser caching simply add the lines below into your .htaccess file:<\/p>\n<pre>## EXPIRES CACHING ##\r\n&lt;IfModule mod_expires.c&gt;\r\n  ExpiresActive On\r\n  ExpiresByType image\/jpg \"access 1 year\"\r\n  ExpiresByType image\/jpeg \"access 1 year\"\r\n  ExpiresByType image\/gif \"access 1 year\"\r\n  ExpiresByType image\/png \"access 1 year\"\r\n  ExpiresByType text\/css \"access 1 month\"\r\n  ExpiresByType text\/html \"access 1 month\"\r\n  ExpiresByType application\/pdf \"access 1 month\"\r\n  ExpiresByType text\/x-javascript \"access 1 month\"\r\n  ExpiresByType application\/x-shockwave-flash \"access 1 month\"\r\n  ExpiresByType image\/x-icon \"access 1 year\"\r\n  ExpiresDefault \"access 1 month\"\r\n&lt;\/IfModule&gt;\r\n## EXPIRES CACHING ##\r\n<\/pre>\n<p>If you are using <a href=\"https:\/\/www.rosehosting.com\/nginx-hosting.html\">Nginx<\/a> instead of <a href=\"https:\/\/www.rosehosting.com\/apache-hosting.html\">Apache<\/a> as a web server, add the following lines in the server block for your domain name:<\/p>\n<pre>location ~*  \\.(jpg|jpeg|png|gif|ico|css|js)$ {\r\n  expires 365d;\r\n}\r\n<\/pre>\n<p>[ecko_alert color=&#8221;blue&#8221;]Want us to do all of this for you? <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">Get a VPS<\/a> from us and we&#8217;ll fully (and properly!) optimize your WordPress site and your server. Free 24\/7 managed support is included in all of our hosting plans. [ecko_button color=&#8221;green&#8221; size=&#8221;normal&#8221; url=&#8221;https:\/\/www.rosehosting.com\/wordpress-hosting.html&#8221;]Get a Managed WordPress VPS[\/ecko_button][\/ecko_alert]<\/p>\n<h3>Other WordPress optimization techniques<\/h3>\n<p>Many of the techniques we mentioned earlier cannot be performed if you are on a shared hosting as they are server-side optimizations and require special access to the hosting environment. That is not the case with the ones that follow. You can do the following optimizations even on a <a href=\"https:\/\/www.rosehosting.com\/linux-shared-hosting.html\">shared hosting<\/a> account<\/p>\n<h2><span class=\"ez-toc-section\" id=\"06-Add-gzip-compression\"><\/span><strong>06. Add gzip compression<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Gzip compression is necessary in order to\u00a0decrease the size of data that is being sent from your server. Enabling Gzip compression is fairly easy, just add the lines below into your .htaccess file:<\/p>\n<pre>&lt;IfModule mod_deflate.c&gt;\r\n  # Compress HTML, CSS, JavaScript, Text, XML and fonts\r\n  AddOutputFilterByType DEFLATE application\/javascript\r\n  AddOutputFilterByType DEFLATE application\/rss+xml\r\n  AddOutputFilterByType DEFLATE application\/vnd.ms-fontobject\r\n  AddOutputFilterByType DEFLATE application\/x-font\r\n  AddOutputFilterByType DEFLATE application\/x-font-opentype\r\n  AddOutputFilterByType DEFLATE application\/x-font-otf\r\n  AddOutputFilterByType DEFLATE application\/x-font-truetype\r\n  AddOutputFilterByType DEFLATE application\/x-font-ttf\r\n  AddOutputFilterByType DEFLATE application\/x-javascript\r\n  AddOutputFilterByType DEFLATE application\/xhtml+xml\r\n  AddOutputFilterByType DEFLATE application\/xml\r\n  AddOutputFilterByType DEFLATE font\/opentype\r\n  AddOutputFilterByType DEFLATE font\/otf\r\n  AddOutputFilterByType DEFLATE font\/ttf\r\n  AddOutputFilterByType DEFLATE image\/svg+xml\r\n  AddOutputFilterByType DEFLATE image\/x-icon\r\n  AddOutputFilterByType DEFLATE text\/css\r\n  AddOutputFilterByType DEFLATE text\/html\r\n  AddOutputFilterByType DEFLATE text\/javascript\r\n  AddOutputFilterByType DEFLATE text\/plain\r\n  AddOutputFilterByType DEFLATE text\/xml\r\n\r\n  # Remove browser bugs (only needed for really old browsers)\r\n  BrowserMatch ^Mozilla\/4 gzip-only-text\/html\r\n  BrowserMatch ^Mozilla\/4\\.0[678] no-gzip\r\n  BrowserMatch \\bMSIE !no-gzip !gzip-only-text\/html\r\n  Header append Vary User-Agent\r\n&lt;\/IfModule&gt;\r\n<\/pre>\n<p>In case you are using Nginx, add the following lines in your your Nginx configuration file:<\/p>\n<pre>gzip on;\r\ngzip_comp_level 2;\r\ngzip_http_version 1.0;\r\ngzip_proxied any;\r\ngzip_min_length 1100;\r\ngzip_buffers 16 8k;\r\ngzip_types text\/plain text\/html text\/css application\/x-javascript text\/xml application\/xml application\/xml+rss text\/javascript;\r\n\r\n# Disable for IE &lt; 6 because there are some known problems\r\ngzip_disable \"MSIE [1-6].(?!.*SV1)\";\r\n\r\n# Add a vary header for downstream proxies to avoid sending cached gzipped files to IE6\r\ngzip_vary on;\r\n<\/pre>\n<h2><span class=\"ez-toc-section\" id=\"07-Use-only-essential-plugins\"><\/span>07. Use only essential plugins<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Using plugins in WordPress is essential, but you need to be aware that using unnecessary plugins and plugins which are coded inefficiently may affect your site&#8217;s performance. So, our recommendation is to install and enable the WordPress plugins that you truly need for your project as well as to make sure that those plugins are not slowing down your site.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"08-Use-good-themes\"><\/span>08. Use good themes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>If you are using a well-coded theme for WordPress site you are more likely to have a fast-loading website. Some theme developers tend to include fancy effect on their products which always comes at a cost. There are so many well-coded WordPress themes out there, both free and paid, that wait to be found. You just need to do a quick research and you will likely select a theme which will help you to speed up the loading time of your WordPress site.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"09-Optimize-images\"><\/span>09. Optimize images<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Yes, images are important. But, think about how badly the images can affect the loading speed of your website. Unoptimized and large images will load slowly which could cause the visitor to leave the site. To save time, bandwidth and improve your search engine ranking you need to take care of the graphics displayed on your website. Optimize the images by using some of the WordPress plugins developed for this reason, like <a href=\"https:\/\/wordpress.org\/plugins\/wp-smushit\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Smush<\/a> for example.<br \/>\nIf you have troubles with optimizing graphics, try to consider whether images are necessary to represent something. Maybe you can reduce the number of images by replacing them with text.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"10-Minify-CSS-and-JavaScript-files\"><\/span>10. Minify CSS and JavaScript files<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Minifying the CSS files could be good, especially if you are not able to combine them into a single, optimized file. The same applies for the JS files. Likely, there are many plugins that could help you with this, including our previously-mentioned plugin W3 Total Cache.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"11-Content-Delivery-Network\"><\/span>11. Content Delivery Network<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Sometimes the geographical distance between the server where your website is hosted and your website visitors can influence the loading speed. A common solution for this problem is using a Content Delivery Network or CDN. By using a CDN service you can offload the static files as well as the images so your website visitors can have better experience. This will reduce the server load and will significantly improve the site&#8217;s performance.<\/p>\n<hr \/>\n<p>Of course, you don\u2019t have to Speed up and Optimize WordPress, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/wordpress-hosting.html\">WordPress Hosting<\/a> services, in which case you can simply ask our expert Linux admins to help you speed up and optimize your WordPress site. They are available 24\u00d77 and will take care of your request immediately. We also published an updated post on <a href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-wordpress-and-boost-performance-on-an-ubuntu-20-04-vps\/\">How to Speed Up WordPress and Boost Performance on an Ubuntu 20.04 VPS<\/a>.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>PS<\/strong><\/span>. If you liked this post, on\u00a0how to speed up and optimize WordPress,\u00a0 please share it with your friends on the social networks using the buttons below or simply leave a reply in the comments section. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;ll show you, How to Speed up and Optimize WordPress. Doesn&#8217;t matter if you are running a small blog or &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How to Speed up and Optimize WordPress\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#more-21343\" aria-label=\"Read more about How to Speed up and Optimize WordPress\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":24949,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1710,1704,13],"tags":[148],"class_list":["post-21343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cms-crm-erp","category-optimization","category-tutorials","tag-wordpress","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.7 (Yoast SEO v27.7) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How to Speed up and Optimize WordPress | RoseHosting<\/title>\n<meta name=\"description\" content=\"How to Speed up and Optimize WordPress | RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/\" \/>\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 and Optimize WordPress\" \/>\n<meta property=\"og:description\" content=\"How to Speed up and Optimize WordPress | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/\" \/>\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-01-25T13:50:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-12T11:40:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.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=\"8 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-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How to Speed up and Optimize WordPress\",\"datePublished\":\"2017-01-25T13:50:51+00:00\",\"dateModified\":\"2022-12-12T11:40:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/\"},\"wordCount\":1383,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/How-to-Speed-up-and-Optimize-WordPress.jpg\",\"keywords\":[\"wordpress\"],\"articleSection\":[\"CMS, CRM, ERP\",\"Optimization\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/\",\"name\":\"How to Speed up and Optimize WordPress | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/How-to-Speed-up-and-Optimize-WordPress.jpg\",\"datePublished\":\"2017-01-25T13:50:51+00:00\",\"dateModified\":\"2022-12-12T11:40:08+00:00\",\"description\":\"How to Speed up and Optimize WordPress | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/How-to-Speed-up-and-Optimize-WordPress.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/01\\\/How-to-Speed-up-and-Optimize-WordPress.jpg\",\"width\":1200,\"height\":600,\"caption\":\"How to Speed up and Optimize WordPress\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Speed up and Optimize WordPress\"}]},{\"@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 and Optimize WordPress | RoseHosting","description":"How to Speed up and Optimize WordPress | RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/","og_locale":"en_US","og_type":"article","og_title":"How to Speed up and Optimize WordPress","og_description":"How to Speed up and Optimize WordPress | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2017-01-25T13:50:51+00:00","article_modified_time":"2022-12-12T11:40:08+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.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":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How to Speed up and Optimize WordPress","datePublished":"2017-01-25T13:50:51+00:00","dateModified":"2022-12-12T11:40:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/"},"wordCount":1383,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg","keywords":["wordpress"],"articleSection":["CMS, CRM, ERP","Optimization","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/","name":"How to Speed up and Optimize WordPress | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg","datePublished":"2017-01-25T13:50:51+00:00","dateModified":"2022-12-12T11:40:08+00:00","description":"How to Speed up and Optimize WordPress | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2017\/01\/How-to-Speed-up-and-Optimize-WordPress.jpg","width":1200,"height":600,"caption":"How to Speed up and Optimize WordPress"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-speed-up-and-optimize-wordpress-on-a-linux-vps\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Speed up and Optimize WordPress"}]},{"@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\/21343","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=21343"}],"version-history":[{"count":4,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/21343\/revisions"}],"predecessor-version":[{"id":44121,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/21343\/revisions\/44121"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/24949"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=21343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=21343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=21343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}