{"id":108305,"date":"2022-12-07T14:45:00","date_gmt":"2022-12-07T19:45:00","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=108305"},"modified":"2023-12-07T16:27:10","modified_gmt":"2023-12-07T21:27:10","slug":"wordpress-server-optimization-guide","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/","title":{"rendered":"WordPress Server Optimization Guide"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png\" alt=\"\" class=\"wp-image-66729\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>In this article, we walk through the process of tuning your VPS or Dedicated Server for the best performance on our WordPress Optimized or PHP-FPM stack. On our Managed WordPress Hosting platform, the server is managed by our system administrators and tuned out-of-the-box for optimal performance for most users. However, some users or resellers may need the additional flexibility afforded by the VPS and Dedicated platforms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to Optimize WordPress<\/h2>\n\n\n\n<p>How do I optimize my WordPress site? That\u2019s what this article is about.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This article covers the WordPress Stack, which is available pre-installed on certain VPS packages, but can be installed on any <a href=\"https:\/\/www.inmotionhosting.com\/vps-hosting\">VPS<\/a> or <a href=\"https:\/\/www.inmotionhosting.com\/dedicated-servers\">Dedicated server<\/a>.<\/li>\n\n\n\n<li>For an in-depth explanation of how NGINX and the rest of the stack work together, please check out our <a title=\"Click here to view our article on the WordPress Hosting Stack.\" href=\"\/support\/product-guides\/wordpress-hosting\/the-wordpress-hosting-stack\/\">WordPress Hosting Stack<\/a> article.<\/li>\n<\/ul>\n\n\n\n<p>VPS and Dedicated platforms offer full root access \u2014 this allows the user to make any changes or specific optimizations, as required. With the <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-hosting\">Shared WordPress Hosting<\/a> platform, we manage the Apache, PHP-FPM, and NGINX configuration for all customers, with certain parameters, such as max workers and total I\/O throughput is dependent on the plan chosen. While the default configuration should suit many, customers with a large number of sites or users may require additional configuration changes to achieve the best performance.<\/p>\n\n\n\n<p>Other factors in optimizing WordPress can involve the use of a CDN for static media assets, caching, the WordPress theme used for the site, and the geographic location of the server.  <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Apache<\/h2>\n\n\n\n<p>In the WordPress Stack, Apache plays the role of the \u201corigin server\u201d \u2014 it handles requests for pages, dynamic content, and sometimes static content, depending on the caching configuration.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Server\/Worker Parameters<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">Checking Current Utilization<\/h4>\n\n\n\n<p>For optimal performance, we need to ensure that there is always a worker available to service incoming requests from NGINX. If you notice that there is a long delay before images and other content on your pages start loading, this could be due to Apache being busy, and we have to wait for available workers to service the requests.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/apache_status.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/apache_status.png\" alt=\"Apache Status page inside of WHM\" title=\"Apache Status page inside of WHM\"><\/a><\/figure>\n\n\n\n<p>To determine if your Apache settings are adequate, login to WHM, then navigate to the <i>Apache Status<\/i> page. This page will display the status of all workers \u2014 idle or available workers are displayed with an underscore or full stop (<code>_<\/code> or <code>.<\/code>). Other letters indicate that the worker is currently active servicing a request. If this \u201cscoreboard\u201d has little to no available workers, then consider tweaking the parameters to prevent pages from loading slowly o timing out. For more information, check our article on <a href=\"\/support\/edu\/whm\/whm-apache-status\/\">viewing Apache status in WHM<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Performing Adjustments<\/h4>\n\n\n\n<p>After logging into WHM as root, navigate to the <i>Apache Configuration<\/i> section, then click on the <i>Global Configuration<\/i> subsection. This page sets the worker and server parameters for Apache, which ultimately determines the maximum number of concurrent requests it can handle.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/apache_config.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/apache_config.png\" alt=\"Apache Configuration page inside of WHM\" title=\"Apache Configuration page inside of WHM\"><\/a><\/figure>\n\n\n\n<p>If you\u2019re having problems with capacity with your current settings, try doubling the <i>Maximum Spare Servers<\/i>, <i>Server Limit<\/i>, and <i>Max Request Workers<\/i> values, then change the <i>Timeout<\/i> to <code>60<\/code> seconds to match the default NGINX timeout. Once the changes are made, click <i>Save<\/i> at the bottom of the page, then <i>Rebuild Configuration and Restart Apache<\/i> after confirming the settings.<\/p>\n\n\n\n<p>After the changes have been applied, navigate back to the <i>Apache Status<\/i> page and refresh it periodically to ensure that Apache is performing optimally \u2014 ideally, you should be using less than 50% of your available workers during normal operation, with the other 50% available as headroom in case of a spike in traffic.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">PHP-FPM<\/h2>\n\n\n\n<p>PHP-FPM (PHP Fast Process Manager) is a special PHP handler that uses a master process to divvy up requests to a pool of workers. Each of these workers then executes the user\u2019s PHP scripts, then return the result back to Apache and NGINX. Because there is a persistent master process (unlike CGI or suPHP handlers), the performance can be fine-tuned for your specific needs, and also allows the use of extensions that require persistence, such as Opcache.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/multiphp_mgr.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/multiphp_mgr.png\" alt=\"MultiPHP Manager inside of WHM\" title=\"MultiPHP Manager inside of WHM\"><\/a><\/figure>\n\n\n\n<p>To set the default PHP version and global <code>php.ini<\/code> parameters, log in to WHM as root, then navigate to the <i>MultiPHP Manager<\/i> section. This page will allow you to choose the default version for all newly-created accounts (or change the version for accounts that haven\u2019t specifically chosen a PHP version), as well as set the FPM parameters for each domain. If you\u2019re converting from suPHP or another PHP handler to PHP-FPM, the <i>Convert all accounts to PHP-FPM<\/i> button will quickly allow you to switch over all domains to use FPM.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Parameter Selection<\/h3>\n\n\n\n<p>In the WHM <i>MultiPHP Manager<\/i>, a list of all domains on your server will be listed at the bottom of the page. Clicking on the <i>Pool Options<\/i> button next to each domain will allow you to tweak the PHP-FPM parameters for that domain.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/fpm_pool_options.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/fpm_pool_options.png\" alt=\"PHP-FPM pool settings in the WHM MultiPHP Manager\" title=\"PHP-FPM pool settings in the WHM MultiPHP Manager\"><\/a><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">List of Parameters<\/h4>\n\n\n\n<figure class=\"wp-block-table table table-bordered table-stripe is-style-regular\"><table><thead><tr><th>Parameter<\/th><th>Explanation<\/th><\/tr><\/thead><tbody><tr><td><b>Max Children<\/b><\/td><td>Sets the maximum number of workers that are available to process requests for the selected domain. This translates into the max number of PHP scripts or pages that can be requested simultaneously. Since pages served from the NGINX cache do not need to execute PHP, this number determines the max number of uncached pages that can be served at once.<\/td><\/tr><tr><td><b>Process Idle Timeout<\/b><\/td><td>Sets the amount of time (in seconds) that a worker will wait for another request before it exits. Because the number of workers for each domain can change according to demand (using the default <code>ondemand<\/code> process manager), this allows workers that may have been spawned to serve a spike in traffic to eventually exit once the traffic level decreases. This allows the pool to free up resources for the rest of the server.<\/td><\/tr><tr><td><b>Max Requests<\/b><\/td><td>The max number of times a single worker can process requests before it is respawned. On busier sites, a worker can potentially stick around indefinitely. This is primarily used to workaround bugs and memory leaks in certain 3rd party PHP modules.<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\">Recommended Defaults<\/h4>\n\n\n\n<p>The following table lists our recommended defaults for sites with low, medium, and high traffic. These values can be further tweaked, as needed. In general, sites that are able to achieve a higher cache hit rate can afford to use a lower number of workers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Opcache Configuration<\/h3>\n\n\n\n<p>Opcode caching can drastically improve performance for dynamic pages, or when the NGINX cache has expired. Zend Opcache, PHP\u2019s own opcode caching solution, works by parsing all related PHP files for a particular script, compiling it into bytecode, then saving it for future use. Once this has been done, subsequent page loads will be significantly faster, as the computationally expensive process of interpreting the PHP code has already been performed.<\/p>\n\n\n\n<p>Due to the architecture that cPanel uses to manage PHP-FPM, all pools for a particular version of PHP will share the same master process. This means that all sites that use the same PHP version will share the same pool of memory that has been allocated for Opcache. On servers with multiple users or a large number of sites, the default values will be insufficient.<\/p>\n\n\n\n<p>To modify settings for a particular PHP version, log in to WHM as root, then navigate to the MultiPHP INI Editor. From there, click on <i>Editor Mode<\/i>, select your PHP version, then add the new settings at the bottom of the text area. Remember, you\u2019ll need to make changes for each PHP version that you\u2019re using.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/multiphp_ini_editor.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/multiphp_ini_editor.png\" alt=\"Appending opcache configuration options in the MultiPHP INI Editor inside of WHM\" title=\"Appending opcache configuration options in the MultiPHP INI Editor inside of WHM\"><\/a><\/figure>\n\n\n\n<p>Below are our recommended settings for Opcache, for a server with between 30 and 150 websites. Please note that increasing <code>memory_consumption<\/code> too high can leave less memory for other applications, and lead to degraded performance. We recommended trying the settings below, then checking the <code>phpinfo<\/code> page (as described next) to observe the results.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">; Memory in (MB) available for caching scripts \nopcache.memory_consumption = 256\n\n; Memory for interned strings. Only increase this if you notice interned string-related errors. \nopcache.interned_strings_buffer = 16\n\n; Max number of PHP scripts that Opcache will cache \nopcache.max_accelerated_files = 32767\n\n; Disable restarting long-running scripts, \n; as this does not work with cPanel\u2019s implementation opcache.force_restart_timeout = 0 \n; Check PHP files to make sure the timestamp matches the cached version \n; Disabling this can slightly speed up requests, at the cost of \n; requiring a PHP restart whenever PHP scripts are modified or updated \nopcache.validate_timestamps = 1 \nopcache.revalidate_freq = 90\n\n; These two options ensure that users cannot see each others\u2019 scripts \nopcache.validate_permission = 1 \nopcache.validate_root = 1<\/pre>\n\n\n\n<p>After saving your settings, PHP-FPM will be automatically restarted by WHM, and the settings will take effect. To double-check your work, view a <code>phpinfo<\/code> page on one of your sites that use the same PHP version, then scroll down to the <i>Zend Opcache<\/i> section. This page can also be visited again (after all of your sites have received a bit of traffic) to see how much memory all of your scripts are using. The image below shows the parameters to check \u2014 if the free memory is very low (or zero), or the number of cached files\/keys is equal to the max, then try increasing the appropriate settings. Ideally, we want to see a very high hit to miss ratio, and having insufficient memory or available keys will inevitably cause cache misses.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"\/support\/images\/stories\/ngx_dedi_optimize\/phpinfo_opcache.png\" rel=\"lightbox-0\"><img decoding=\"async\" src=\"https:\/\/www.inmotionhosting.com\/support\/images\/stories\/ngx_dedi_optimize\/phpinfo_opcache.png\" alt=\"Viewing the current Zend Opcache configuration on a phpinfo page\" title=\"Viewing the current Zend Opcache configuration on a phpinfo page\"><\/a><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">NGINX<\/h2>\n\n\n\n<p>The majority of users should not have to make any changes to the global NGINX configuration. However, there are specific reasons for doing so \u2014 such as increasing the max upload file size and increasing the default timeout for batch scripts. Our configuration builder can handle most of the commonly-performed changes for PCI compliance automatically, which is covered in the Advanced section below.<\/p>\n\n\n\n<p>The main NGINX configuration file is located at <code>\/etc\/nginx\/nginx.conf<\/code>. This file can be edited by logging in via SSH as root, then using Vim or <a title=\"How to use Nano?\" href=\"\/support\/server\/ssh\/how-to-edit-files-using-nano\/\">Nano<\/a> \u2014 or by <a title=\"How to use an SFTP client?\" href=\"\/support\/website\/ftp\/connecting-scp-sftp\/\">using an SFTP client<\/a>.<\/p>\n\n\n\n<p>Most global settings will need to be inside of the HTTP context in the NGINX configuration (inside of the <code>http { }<\/code> block). Below is an example of how to increase the timeout from the 60 second default, to 90 seconds:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"># Client request settings #\nclient_body_buffer_size 1m;\nclient_header_buffer_size 2k;\nclient_max_body_size 512m;\n# My custom config #     \n# Increase timeout to 90 seconds #  \nproxy_read_timeout 90s;<\/pre>\n\n\n\n<p>Once your changes have been saved, test the configuration by running <code>nginx -t<\/code>, which will ensure the syntax is correct. If there is a problem, NGINX will report the line number, along with a hint on how to fix the issue. Otherwise, if all is well, proceed with reloading NGINX with <code>service nginx reload<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted cli\"><span style=\"color: slategrey;\">root@vps [\/etc\/nginx]# <\/span><span style=\"color: turquoise;\">nginx -t<\/span> nginx: the configuration file \/etc\/nginx\/nginx.conf syntax is ok nginx: configuration file \/etc\/nginx\/nginx.conf test is successful  \n<span style=\"color: slategrey;\">root@vps [\/etc\/nginx]# <\/span><span style=\"color: turquoise;\">service nginx reload<\/span> Redirecting to \/bin\/systemctl reload nginx.service<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">5xx Errors<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>500 Server Error<\/b> \u2013 Generic error. Typically indicates a problem with the PHP script, but can also indicate a syntax error in an <code>.htaccess<\/code> file, or a problem with Apache. Check the Apache error log (located at <code>\/usr\/local\/apache\/logs\/error_log<\/code>) for more information.<\/li>\n\n\n\n<li><b>502 Bad Gateway<\/b> \u2013 NGINX could not connect to Apache. Typically indicates that Apache is overloaded or not running. Ensure Apache is up and running by navigating to the <i>Apache Status<\/i> section of WHM. If not running, restart Apache by navigating to <i>Restart Services &gt;&gt; HTTP Server (Apache)<\/i> in WHM, or by running <code>service httpd restart<\/code> via SSH. Otherwise, check the NGINX error log (<code>\/var\/log\/nginx\/error.log<\/code>) for details.<\/li>\n\n\n\n<li><b>503 Service Unavailable<\/b> \u2013 Typically indicates that PHP-FPM is not responsive, or Apache could not connect to PHP-FPM (however, this error code is also frequently used by WordPress \u201cmaintenance mode\u201d plugins). Ensure PHP-FPM is running, or try restarting it via <i>Restart Services &gt;&gt; PHP-FPM Service for Apache<\/i>. Check the Apache error log (<code>\/usr\/local\/apache\/logs\/error_log<\/code>), or the corresponding PHP-FPM log (<code>\/opt\/cpanel\/ea-php*\/root\/usr\/var\/log\/php-fpm\/error.log<\/code>) for further details.<\/li>\n\n\n\n<li><b>504 Gateway Timeout<\/b> \u2013 This typically indicates a PHP script running too long, and NGINX timed out while waiting for it to finish. This can happen during a batch import process, or because of a malfunctioning plugin or database issue. Check our <a title=\"Click here to view our WordPress Stack troubleshooting guide\" rel=\"noopener noreferrer\" href=\"\/support\/product-guides\/wordpress-hosting\/wordpress-stack-troubleshooting\/\">troubleshooting guide<\/a> for more details on how to troubleshoot this issue.<\/li>\n<\/ul>\n\n\n\n<div class=\"alert alert-success\" style=\"margin: 20px 0;\">Check out our in-depth <a title=\"Click here to view our WordPress Stack troubleshooting guide\" href=\"\/support\/product-guides\/wordpress-hosting\/wordpress-stack-troubleshooting\/\">WordPress Stack troubleshooting guide<\/a> for more information.<\/div>\n\n\n\n<h3 class=\"wp-block-heading\">Caching Problems<\/h3>\n\n\n\n<div class=\"alert alert-success\" style=\"margin: 20px 0;\">Please check our full article on cache management, configuration, and troubleshooting: <a title=\"Click here to view our article on the WordPress Stack cache management\" href=\"\/support\/edu\/wordpress\/nginx-cache-management\/\">NGINX Cache Management<\/a>.<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\">\n\n\n\n<p>The WordPress Optimized Stack can be used to achieve high performance with a large number of users. Hopefully, this guide has assisted you in tuning your VPS or Dedicated server for the best performance. There are a wide variety of changes and tweaks that can be performed, depending on your website. Please be sure to check out some of our other <a href=\"\/support\/product-guides\/wordpress-hosting\/\">WordPress Hosting articles<\/a> for coverage on a number of different subjects.<\/p>\n\n\n\n<figure class=\"wp-block-table table table-bordered table-stripe is-style-regular\"><table><thead><tr><th>Parameter<\/th><th>Low\/Medium<\/th><th>Medium\/High<\/th><th>High<\/th><\/tr><\/thead><tbody><tr><td>Max Children<\/td><td><code>4<\/code><\/td><td><code>8<\/code><\/td><td><code>16<\/code><\/td><\/tr><tr><td>Process Idle Timeout<\/td><td><code>60<\/code><\/td><td><code>60<\/code><\/td><td><code>90<\/code><\/td><\/tr><tr><td>Max Requests<\/td><td><code>120<\/code><\/td><td><code>120<\/code><\/td><td><code>180<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Optimizing WordPress can be a challenging task because there are many ways it can be done. InMotion Hosting strives to give you a solution that will provide the best performance.\n<\/p>","protected":false},"excerpt":{"rendered":"<p> In this article, we walk through the process of tuning your VPS or Dedicated Server for the best performance on our WordPress Optimized or PHP-FPM stack. On our Managed WordPress Hosting platform, the server is managed by our system administrators, and tuned out-of-the-box for optimal performance for most users. However, some users or resellers may need the additional flexibility afforded by the VPS and Dedicated platforms. <\/p>\n","protected":false},"author":56983,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-108305","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>WordPress Server Optimization for VPS and Dedicated Servers<\/title>\n<meta name=\"description\" content=\"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.\" \/>\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.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"WordPress Server Optimization for VPS and Dedicated Servers\" \/>\n<meta property=\"og:description\" content=\"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-07T19:45:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-07T21:27:10+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Carrie Smaha\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@carriesmaha\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Carrie Smaha\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\"},\"author\":{\"name\":\"Carrie Smaha\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\"},\"headline\":\"WordPress Server Optimization Guide\",\"datePublished\":\"2022-12-07T19:45:00+00:00\",\"dateModified\":\"2023-12-07T21:27:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\"},\"wordCount\":1942,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png\",\"articleSection\":[\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\",\"name\":\"WordPress Server Optimization for VPS and Dedicated Servers\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png\",\"datePublished\":\"2022-12-07T19:45:00+00:00\",\"dateModified\":\"2023-12-07T21:27:10+00:00\",\"description\":\"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress Server Optimization Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8\",\"name\":\"Carrie Smaha\",\"description\":\"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.\",\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/carriesmaha\/\",\"https:\/\/x.com\/carriesmaha\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"WordPress Server Optimization for VPS and Dedicated Servers","description":"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.","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.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/","og_locale":"en_US","og_type":"article","og_title":"WordPress Server Optimization for VPS and Dedicated Servers","og_description":"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2022-12-07T19:45:00+00:00","article_modified_time":"2023-12-07T21:27:10+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png","type":"image\/png"}],"author":"Carrie Smaha","twitter_card":"summary_large_image","twitter_creator":"@carriesmaha","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"Carrie Smaha","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/"},"author":{"name":"Carrie Smaha","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8"},"headline":"WordPress Server Optimization Guide","datePublished":"2022-12-07T19:45:00+00:00","dateModified":"2023-12-07T21:27:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/"},"wordCount":1942,"commentCount":0,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png","articleSection":["WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/","name":"WordPress Server Optimization for VPS and Dedicated Servers","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers-1024x538.png","datePublished":"2022-12-07T19:45:00+00:00","dateModified":"2023-12-07T21:27:10+00:00","description":"Optimize WordPress for ultimate performance by tuning your VPS or Dedicated Server for optimal configuration. This guide tells you how.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/01\/WordPress-Stack-Optimization-Guide_-Tuning-for-VPS-Dedicated-Servers.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-server-optimization-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"WordPress Server Optimization Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/595948dab2995d347a87076abdae19d8","name":"Carrie Smaha","description":"Carrie Smaha is a Senior Marketing Operations leader with over 20 years of experience in digital strategy, web development, and IT project management. She specializes in go-to-market programs and SaaS solutions for WordPress and VPS Hosting, working closely with technical teams and customers to deliver high-performance, scalable platforms. At InMotion Hosting, she drives product marketing initiatives that blend strategic insight with technical depth.","sameAs":["https:\/\/www.linkedin.com\/in\/carriesmaha\/","https:\/\/x.com\/carriesmaha"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/carries\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":56,"name":"WordPress Tutorials","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108305","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/56983"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=108305"}],"version-history":[{"count":1,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108305\/revisions"}],"predecessor-version":[{"id":108306,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/108305\/revisions\/108306"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=108305"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=108305"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=108305"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}