{"id":13889,"date":"2024-12-20T12:03:34","date_gmt":"2024-12-20T06:33:34","guid":{"rendered":"https:\/\/www.skynats.com\/?p=13889"},"modified":"2025-01-08T20:35:16","modified_gmt":"2025-01-08T15:05:16","slug":"roundcube-webmail-php-error-with-litespeed-on-plesk","status":"publish","type":"post","link":"https:\/\/www.skynats.com\/blog\/roundcube-webmail-php-error-with-litespeed-on-plesk\/","title":{"rendered":"Roundcube webmail fails to function with LiteSpeed installed on Plesk, showing error: Unsupported PHP version. Required PHP >= 7.3 \u2013 Plesk"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">When running LiteSpeed as the web server on a Plesk-based Linux environment, users may encounter issues with Roundcube webmail failing to load due to an unsupported PHP version error. The error typically states:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\"Required PHP >= 7.3\"<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">This issue arises because LiteSpeed, in some configurations, ignores Plesk\u2019s PHP settings for webmail and defaults to its bundled LSPHP version, which may be as old as LSPHP 5.6. Consequently, Roundcube, which requires PHP 7.3 or higher, fails to function.<\/p>\n\n\n\n<h2 class=\"wp-block-heading has-normal-font-size\" id=\"h-diagnosing-the-issue\"><strong>Diagnosing the Issue<\/strong><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Attempts to change the PHP version for Roundcube webmail through Plesk\u2019s settings often prove ineffective. This issue arises because the LiteSpeed configuration does not honor Plesk\u2019s PHP settings for webmail applications. Despite configuring a newer PHP version within <a href=\"https:\/\/www.plesk.com\/\" target=\"_blank\" rel=\"noopener\">Plesk<\/a>, LiteSpeed continues to use its default, outdated LSPHP binary for webmail, leading to compatibility issues. As a result, Roundcube webmail fails to function correctly with LiteSpeed installed on Plesk, displaying an error that states: &#8220;Unsupported PHP version. Required PHP >= 7.3.&#8221; This mismatch occurs because LiteSpeed overrides the PHP version required by Roundcube, necessitating manual adjustments to the LiteSpeed settings or the server\u2019s webmail configuration to ensure that Roundcube can access the correct PHP version. Failure to align the PHP version with Roundcube\u2019s requirements can cause persistent errors and prevent users from accessing their webmail until the correct PHP version is applied.<\/p>\n\n\n\n<h3 class=\"wp-block-heading has-normal-font-size\" id=\"h-resolution-steps\"><strong>Resolution Steps<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To resolve the issue, you need to replace the default LSPHP binary with a symlink to a more recent version of LSPHP installed on the server. Follow these steps:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. Backup the existing LSPHP binary<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mv \/usr\/local\/bin\/lsphp \/usr\/local\/bin\/lsphp-bk<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. Create a symlink to the newer LSPHP version<\/strong>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ln -s \/opt\/plesk\/php\/8.2\/bin\/lsphp \/usr\/local\/bin\/lsphp<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Replace \/opt\/plesk\/php\/8.2\/bin\/lsphp with the path to the desired PHP version installed on your server.<\/p>\n\n\n\n<h4 class=\"wp-block-heading has-normal-font-size\"><strong>Conclusion<\/strong><\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">This workaround forces LiteSpeed to use a PHP version compatible with Roundcube, effectively resolving the unsupported PHP version error. This approach ensures webmail functionality without compromising the LiteSpeed performance benefits.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">If you&#8217;re experiencing issues with Roundcube webmail failing to function due to an unsupported PHP version error when using LiteSpeed on Plesk, we can help. Our team specializes in resolving PHP version conflicts and ensuring seamless compatibility between webmail applications and server configurations. Don&#8217;t let PHP errors disrupt your email services\u2014<a href=\"https:\/\/www.skynats.com\/blog\/\">contact us<\/a> today for expert support and a quick resolution to get your Roundcube webmail up and running smoothly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When running LiteSpeed as the web server on a Plesk-based Linux environment, users may encounter issues with Roundcube webmail failing to load due to an unsupported PHP version error. The error typically states: This issue arises because LiteSpeed, in some configurations, ignores Plesk\u2019s PHP settings for webmail and defaults to its bundled LSPHP version, which [&hellip;]<\/p>\n","protected":false},"author":14,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[20,741,946,945],"class_list":["post-13889","post","type-post","status-publish","format-standard","hentry","category-blog","tag-litespeed","tag-plesk","tag-roundcube-webmail","tag-roundcube-webmail-php-error-with-litespeed-on-plesk"],"_links":{"self":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/comments?post=13889"}],"version-history":[{"count":0,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/posts\/13889\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/media?parent=13889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/categories?post=13889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.skynats.com\/blog\/wp-json\/wp\/v2\/tags?post=13889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}