{"id":410,"date":"2026-06-12T08:05:47","date_gmt":"2026-06-12T07:05:47","guid":{"rendered":"https:\/\/www.speedhub.eu\/blog\/?p=410"},"modified":"2026-06-12T08:06:35","modified_gmt":"2026-06-12T07:06:35","slug":"directadmin-optimizations-on-speedhubs-plans","status":"publish","type":"post","link":"https:\/\/www.speedhub.eu\/blog\/2026\/06\/12\/directadmin-optimizations-on-speedhubs-plans\/","title":{"rendered":"DirectAdmin optimizations on SPEEDHUB&#8217;s plans"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"465\" src=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/04\/directadmin_evo-1024x465.png\" alt=\"DirectAdmin How to set PHP version in EVO\" class=\"wp-image-372\" srcset=\"https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/04\/directadmin_evo-1024x465.png 1024w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/04\/directadmin_evo-300x135.png 300w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/04\/directadmin_evo-768x349.png 768w, https:\/\/www.speedhub.eu\/blog\/wp-content\/uploads\/2025\/04\/directadmin_evo.png 1100w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">LiteSpeed and Redis Optimization<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">We would like to inform you about the possibility of greatly optimizing the performance of your WordPress websites hosted on the DirectAdmin platform, provided you have any of our DirectAdmin hosting packages.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">For WordPress, there are two plugins that significantly help with caching, loading speed, and overall web and database performance.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Web Caching: LiteSpeed Cache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For web caching, we highly recommend the <strong>LiteSpeed Cache<\/strong> plugin. You can download it from the following address: <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/#installation\">LiteSpeed Cache Plugin<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Simply download, install, and activate this plugin.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. Database Caching: Redis Cache<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">For database caching, we recommend the <strong>Redis Cache<\/strong> plugin: <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/ro.wordpress.org\/plugins\/redis-cache\/\">Redis Cache Plugin<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Since this plugin requires an activation process, please follow the steps below:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Download and install the plugin in WordPress.<\/li>\n\n\n\n<li>Log into your DirectAdmin panel, navigate to <strong>Advanced Features<\/strong> -> <strong>Redis<\/strong>, and click <strong>Enable<\/strong>. Then, copy\/note down the <strong>Path to Redis Socket File<\/strong>.<\/li>\n\n\n\n<li>Open your <code>wp-config.php<\/code> file using File Manager or FTP and add the following lines:<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">PHP<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>define( 'WP_CACHE', true );\ndefine( 'WP_REDIS_SCHEME', 'unix' );\ndefine( 'WP_REDIS_PATH', '\/home\/USERNAME\/.redis\/redis.sock' );\n<\/code><\/pre>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f <strong>WARNING:<\/strong> You must replace <code>USERNAME<\/code> with your actual DirectAdmin username (refer to the path you copied during the Redis activation step above).<\/p>\n<\/blockquote>\n\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Go back to your WordPress admin dashboard, navigate to the Redis plugin settings, and activate it.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Please check the official information for implementation.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Multiple PHP Versions on the Same Account<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">To use a different PHP version than the one globally set on your DirectAdmin account, add the following directive to your <code>.htaccess<\/code> file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;FilesMatch \"\\.(php4|php5|php3|php2|php|phtml)$\"&gt;\nSetHandler application\/x-lsphpXX\n&lt;\/FilesMatch&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace <code>phpXX<\/code> with your desired version (e.g., <code>php56<\/code>, <code>php74<\/code>, <code>php82<\/code>, etc.).<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Eliminating Timeouts via .htaccess<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you need to run scripts that take longer than 120 seconds and do not send data to the browser during execution\u2014which is typically what triggers a timeout\u2014you must add the code below to the very top lines of your <code>.htaccess<\/code> file:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Apache<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;IfModule Litespeed&gt;\nRewriteEngine On\nRewriteRule .* - &#91;E=noabort:1, E=noconntimeout:1]\n&lt;\/IfModule&gt;\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To test whether the code has been entered correctly and is functioning, you can use the PHP script available here: <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/docs.litespeedtech.com\/cp\/cpanel\/long-run-script\/#noabort-rule-is-ignored\">LiteSpeed Long Run Script Documentation<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If the test runs successfully but your specific script continues to time out, you will need to debug your script to find exactly where the stall occurs. Please note that regardless of the script type\u2014whether custom-built or open-source\u2014<strong>debugging is strictly the client&#8217;s responsibility.<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u26a0\ufe0f <strong>IMPORTANT ATTENTION!<\/strong> Do not leave this code in your main <code>.htaccess<\/code> file after completing the specific task that required the extended timeout. Keeping it active can cause serious performance and access issues during standard site operations. This configuration is intended strictly as a <strong>maintenance tool<\/strong>.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Complete details can be found at this address: <a target=\"_blank\" rel=\"noreferrer noopener\" href=\"https:\/\/docs.litespeedtech.com\/cp\/cpanel\/long-run-script\/\">LiteSpeed Official Docs<\/a>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udca1 <strong>Tip:<\/strong> You can choose to insert and keep this code inside the <code>.htaccess<\/code> file located specifically within your <code>admin<\/code> or <code>wp-admin<\/code> folder. This restricts the setting exclusively to that folder, allowing you to run necessary administrative queries indefinitely without experiencing timeouts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LiteSpeed and Redis Optimization We would like to inform you about the possibility of greatly optimizing the performance of your WordPress websites hosted on the DirectAdmin platform, provided you have any of our DirectAdmin hosting packages. For WordPress, there are&hellip; <a href=\"https:\/\/www.speedhub.eu\/blog\/2026\/06\/12\/directadmin-optimizations-on-speedhubs-plans\/\" class=\"more-link\">Continue Reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":372,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[112,114,113,115,18],"class_list":["post-410","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-web-hosting","tag-directadmin","tag-litespeed","tag-optimization","tag-redis","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/410","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/comments?post=410"}],"version-history":[{"count":2,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions"}],"predecessor-version":[{"id":412,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/posts\/410\/revisions\/412"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media\/372"}],"wp:attachment":[{"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/media?parent=410"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/categories?post=410"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.speedhub.eu\/blog\/wp-json\/wp\/v2\/tags?post=410"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}