{"id":2339,"date":"2024-06-02T16:27:16","date_gmt":"2024-06-02T13:27:16","guid":{"rendered":"https:\/\/www.fibacloud.com\/community\/tutorials\/?p=2339"},"modified":"2026-10-31T13:55:37","modified_gmt":"2026-10-31T10:55:37","slug":"how-to-install-and-configure-litespeed-web-server","status":"publish","type":"post","link":"https:\/\/www.fibacloud.com\/community\/tutorials\/en\/how-to-install-and-configure-litespeed-web-server\/","title":{"rendered":"Install LiteSpeed Enterprise on cPanel or Plesk"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2339\" class=\"elementor elementor-2339\" data-elementor-post-type=\"post\">\n\t\t\t\t<div class=\"elementor-element elementor-element-fb06cd0 e-flex e-con-boxed e-con e-parent\" data-id=\"fb06cd0\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-51e4f0d elementor-widget elementor-widget-text-editor\" data-id=\"51e4f0d\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t<style>\/*! elementor - v3.21.0 - 20-05-2024 *\/\n.elementor-widget-text-editor.elementor-drop-cap-view-stacked .elementor-drop-cap{background-color:#69727d;color:#fff}.elementor-widget-text-editor.elementor-drop-cap-view-framed .elementor-drop-cap{color:#69727d;border:3px solid;background-color:transparent}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap{margin-top:8px}.elementor-widget-text-editor:not(.elementor-drop-cap-view-default) .elementor-drop-cap-letter{width:1em;height:1em}.elementor-widget-text-editor .elementor-drop-cap{float:left;text-align:center;line-height:1;font-size:50px}.elementor-widget-text-editor .elementor-drop-cap-letter{display:inline-block}<\/style>\t\t\t\t<h2 id=\"cpanel-litespeed\">Install LiteSpeed on cPanel\/WHM and verify the Apache rollback<\/h2>\n<p>This guide walks through moving existing cPanel\/WHM websites to LiteSpeed Enterprise, checking PHP and caching, and returning to Apache while preserving the latest content.<\/p>\n<p><strong>Tested environment:<\/strong> Ubuntu 24.04, cPanel 138.0 build 19, Apache 2.4.69, EA PHP 8.2.35, WHM LiteSpeed plugin 5.3.6.0, LiteSpeed Enterprise 6.3.7 build 7, WordPress 7.1.4 and LiteSpeed Cache 7.9.2. Application flows were tested on two cPanel accounts, with WordPress content and media on one account. Check the operating system and application requirements for your own versions.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef34272 elementor-widget elementor-widget-text-editor\" data-id=\"ef34272\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>1. Prepare licences, PHP settings and a tested recovery point<\/h3>\n<p>Prepare root\/WHM access, valid domain names and HTTPS certificates, sufficient backup storage and a maintenance window in which application writes can be paused. cPanel and LiteSpeed Enterprise have separate licences. We used LiteSpeed\u2019s trial option; current eligibility and duration depend on the vendor\u2019s terms.<\/p>\n<p>Record each account\u2019s PHP version, handler, extensions and file ownership first. Preserve existing <code>.htaccess<\/code>, <code>.user.ini<\/code> and <code>php.ini<\/code> files. A <code>php -v<\/code> result alone is insufficient: use a real HTTPS request to verify the PHP version, required extensions and the identity that writes application files.<\/p>\n<p>Create a full-account backup with cPanel before switching. Replace <code>exampleacct<\/code> with the actual account and use a new private backup directory. <code>--dbbackup=all<\/code> includes database contents; the example excludes logs with <code>--skiplogs<\/code>.<\/p>\n<pre><code class=\"language-bash\">umask 077\nFC_BACKUP_DIR=$(mktemp -d \/root\/litespeed-backup.XXXXXX) || exit 1\n\/usr\/local\/cpanel\/scripts\/pkgacct --dbbackup=all --skiplogs exampleacct \"$FC_BACKUP_DIR\" || exit 1\ngzip -t \"$FC_BACKUP_DIR\/cpmove-exampleacct.tar.gz\" || exit 1\nsha256sum \"$FC_BACKUP_DIR\/cpmove-exampleacct.tar.gz\"<\/code><\/pre>\n<p>Use the actual archive name reported by the command. Check that the package contains the web files, database, configuration and uploaded media; copy it to another server and compare its SHA-256 hash. These archives contain private account and certificate data and belong outside the web document root.<\/p>\n<p><strong>Rehearse restoration on a disposable test account.<\/strong> Replace the archive path below with your verified backup and confirm it belongs to the correct target account. These options <strong>overwrite existing account settings and databases<\/strong>.<\/p>\n<pre><code class=\"language-bash\">\/usr\/local\/cpanel\/scripts\/restorepkg --skipaccount --force --update_dns_zone=0 -- \/root\/VERIFIED_BACKUP_DIRECTORY\/cpmove-exampleacct.tar.gz<\/code><\/pre>\n<p>Before making application requests after restoration, compare the database, media, ownership, PHP mappings and certificates. Then test login, content access and logout. The WordPress database and original media were recovered in this rehearsal. Account preferences can change, so also review participation in current and legacy backups, along with notification settings.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-18372d8 elementor-widget elementor-widget-text-editor\" data-id=\"18372d8\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>2. Check EasyApache and PHP compatibility<\/h3>\n<p><code>mod_ruid2<\/code> is incompatible with LiteSpeed. Review the package plan in <strong>WHM \u2192 EasyApache 4<\/strong>; do not apply a plan that also removes unrelated packages. Add the PHP extensions required by your application. This installation added the missing <code>ea-php82-php-fileinfo<\/code> for file-type checks and removed <code>ea-apache24-mod-ruid2<\/code>.<\/p>\n<p><strong>An issue observed on Ubuntu 24.04:<\/strong> a package <code>remove<\/code> left <code>ruid2.conf<\/code> behind, so Apache attempted to load a module file that no longer existed. After verifying the configuration backup, the package manager\u2019s <code>purge<\/code> action for that same package removed the retained configuration. This is a distribution-specific case, not a command sequence to apply blindly: inspect your package plan and actual error. Restore a working Apache configuration before continuing with the LiteSpeed switch.<\/p>\n<pre><code class=\"language-bash\">\/usr\/sbin\/httpd -t<\/code><\/pre>\n<p>In <strong>WHM \u2192 MultiPHP Manager<\/strong>, check each domain\u2019s supported PHP version and its Apache PHP-FPM selection. This example uses EA PHP 8.2: web requests reported PHP 8.2.35 with <code>fpm-fcgi<\/code> under Apache and <code>litespeed<\/code> under LiteSpeed. While LiteSpeed serves requests, LSPHP\/LSAPI handles PHP; the WHM PHP-FPM selection does not determine that active handler. After switching, use web requests to recheck the PHP version, extensions, upload limits and account identity that writes files.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6dd5ffd elementor-widget elementor-widget-text-editor\" data-id=\"6dd5ffd\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>3. Install the official WHM plugin<\/h3>\n<p>Follow LiteSpeed\u2019s <a href=\"https:\/\/docs.litespeedtech.com\/lsws\/cp\/cpanel\/whm-litespeed-plugin\/whm-install\/\" rel=\"nofollow noopener\" target=\"_blank\">official WHM plugin installation instructions<\/a>. In a root session, create a fresh private working directory, download the installer and read it before running it:<\/p>\n<pre><code class=\"language-bash\">umask 077\nFC_LS_SETUP=$(mktemp -d \/root\/litespeed-setup.XXXXXX) || exit 1\ncd \"$FC_LS_SETUP\" || exit 1\ncurl -fL -o lsws_whm_plugin_install.sh https:\/\/www.litespeedtech.com\/packages\/cpanel\/lsws_whm_plugin_install.sh || exit 1\nless lsws_whm_plugin_install.sh\nsh .\/lsws_whm_plugin_install.sh<\/code><\/pre>\n<p>Open the LiteSpeed Web Server plugin in WHM and choose <strong>Install LiteSpeed Web Server<\/strong>. Read the licence terms and explicitly set the installation fields:<\/p>\n<table><thead><tr><th>Field<\/th><th>Selection used in this test<\/th><\/tr><\/thead><tbody>\n<tr><td>Licence<\/td><td><strong>Request a trial license<\/strong>; leave the serial field empty. Do not enter <code>TRIAL<\/code> in the serial field for this GUI workflow.<\/td><\/tr>\n<tr><td>Installation directory<\/td><td><code>\/usr\/local\/lsws<\/code><\/td><\/tr>\n<tr><td>Port offset<\/td><td><strong>1000<\/strong>. The reviewed GUI defaults to 0, so enter this value explicitly.<\/td><\/tr>\n<tr><td>Administrator email(s)<\/td><td>An administrator address you monitor<\/td><\/tr>\n<tr><td>WebAdmin username and password<\/td><td>Your own administrator credentials; repeat the password in its confirmation field.<\/td><\/tr>\n<\/tbody><\/table>\n<p>After installation, verify the version and licence status in the plugin. <strong>Switch to LiteSpeed<\/strong> is a separate action, performed after the port and TLS checks.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-657664e elementor-widget elementor-widget-text-editor\" data-id=\"657664e\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>4. Verify offset listeners, then switch the real 80\/443 ports<\/h3>\n<p>With offset 1000, select <strong>Restart LiteSpeed<\/strong> in the plugin. Expect Apache to remain on 80\/443, LiteSpeed to listen on 1080\/1443, and WebAdmin on 7080. Restrict test listeners and WebAdmin to your management addresses. Check each domain\u2019s correct SNI certificate and trust chain on port 1443. List the listeners with:<\/p>\n<pre><code class=\"language-bash\">ss -ltnp '( sport = :80 or sport = :443 or sport = :1080 or sport = :1443 or sport = :7080 )'<\/code><\/pre>\n<p>Complete the listener and TLS checks at the offset stage; test your application after switching the normal 80\/443 ports. Pause database and file writes, record the current data state, then choose <strong>Switch to LiteSpeed<\/strong> in WHM. It should set the offset to 0, stop Apache and move 80\/443 to LiteSpeed.<\/p>\n<p>Find the listener PID in <code>ss<\/code> and inspect its <code>\/proc\/PID\/exe<\/code> link to identify the actual web server. In this installation, <code>httpd<\/code>, <code>lsws<\/code> and <code>lshttpd<\/code> could name the same LiteSpeed service, so <code>systemctl is-active httpd<\/code> alone is insufficient. Compare files and the database before creating new application data, then test login\/logout, forms, uploads, PHP extensions and account boundaries.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1da7860 elementor-widget elementor-widget-text-editor\" data-id=\"1da7860\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>5. Configure cache roots and obtain a real WordPress HIT<\/h3>\n<p>Open <strong>Cache Root Setup<\/strong> in the WHM LiteSpeed plugin. Use <strong>Set Missing Cache Roots<\/strong> where needed and inspect the result. This installation used <code>\/home\/lscache\/<\/code> for the server root and an account-level <code>lscache<\/code> directory under each account. The plugin managed configuration and the required restart.<\/p>\n<figure data-fc-tutorial-asset=\"cpanel-cache-roots\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-cpanel-cache-roots.png\" alt=\"WHM LiteSpeed Cache Root Setup after the server and account cache roots were configured.\" width=\"1140\" height=\"500\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>WHM LiteSpeed Cache Root Setup after the server and account cache roots were configured.<\/figcaption><\/figure>\n<p>Activate LiteSpeed Cache in WordPress. Under <strong>LiteSpeed Cache \u2192 Cache<\/strong>, set <strong>Enable Cache<\/strong> to <strong>ON<\/strong>. For this first check, set <strong>Cache Logged-in Users<\/strong>, <strong>Cache REST API<\/strong> and <strong>Cache Login Page<\/strong> to <strong>OFF<\/strong> and save. Keep <strong>Browser Cache<\/strong>, <strong>Guest Mode<\/strong> and <strong>Guest Optimization<\/strong> off, without adding a CDN connection at this stage.<\/p>\n<p>While logged in as an administrator, open the published test post. In the top admin bar\u2019s LiteSpeed menu, choose <strong>Purge this page &#8211; LSCache<\/strong> to clear that page\u2019s cache. Then send two normal GET requests to the same URL without a login cookie. Replace the example domain and path with your test post:<\/p>\n<pre><code class=\"language-bash\">curl -sS -D - -o \/dev\/null https:\/\/site.example.com\/cache-check\/\ncurl -sS -D - -o \/dev\/null https:\/\/site.example.com\/cache-check\/<\/code><\/pre>\n<p>Expect <code>X-LiteSpeed-Cache: miss<\/code> followed by <code>hit<\/code>. Do not add random query parameters or a <code>Cache-Control: no-cache<\/code> request header. An absent cache response header is not proof that caching works.<\/p>\n<p>Edit and save the post in WordPress\u2019s normal block editor. <strong>Without another manual purge<\/strong>, open the same URL anonymously: the new content should appear, the old content should disappear, and MISS \u2192 HIT should occur again. In this test the new content was cached and the original media stayed intact. Check <code>X-LiteSpeed-Cache-Control: no-cache<\/code> on login, admin, editor and authenticated pages, and the absence of the admin bar on anonymous pages. Test your own sessions, cart and other personalized flows too.<\/p>\n<figure data-fc-tutorial-asset=\"wordpress-native-update\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-wordpress-update.png\" alt=\"Updated content saved through the native WordPress block editor, with the Post updated confirmation.\" width=\"1440\" height=\"1100\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>Updated content saved through the native WordPress block editor, with the Post updated confirmation.<\/figcaption><\/figure>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a16a51b elementor-widget elementor-widget-text-editor\" data-id=\"a16a51b\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>6. Return to Apache without losing updated content<\/h3>\n<p>During the maintenance window, disable WordPress page caching and any additional cache rules used by your application, then record the current data state. Select <strong>Switch to Apache<\/strong> in the WHM LiteSpeed plugin. <code>\/usr\/sbin\/httpd<\/code> should take over 80\/443, and LiteSpeed\u2019s offset and WebAdmin listeners should stop.<\/p>\n<p>Compare files and data before the first application request. Then check HTTPS, PHP-FPM, login\/logout, the latest post edit, original media and uploads. The final WordPress edit made under LiteSpeed survived our return to Apache, and both accounts retained their session and file-access boundaries.<\/p>\n<figure data-fc-tutorial-asset=\"wordpress-after-apache-rollback\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-cpanel-apache-return.png\" alt=\"The updated WordPress post preserved after the return to Apache.\" width=\"1440\" height=\"1685\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>The updated WordPress post preserved after the return to Apache.<\/figcaption><\/figure>\n<p>Measure traffic capacity separately using your own application workload. Consult the current <a href=\"https:\/\/docs.litespeedtech.com\/lsws\/cp\/cpanel\/quickstart\/\" rel=\"nofollow noopener\" target=\"_blank\">LiteSpeed cPanel Quick Start<\/a> for prerequisites.<\/p>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-b6d40c4 elementor-widget elementor-widget-text-editor\" data-id=\"b6d40c4\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h2 id=\"plesk-litespeed\">Installing LiteSpeed on Plesk and switching back to Apache<\/h2>\n<p>This guide walks through preparation, backup, installation and application checks when moving existing Plesk websites to LiteSpeed Enterprise. Run the server commands as root during a maintenance window in which you can stop new application writes.<\/p>\n<p><strong>Tested environment:<\/strong> Ubuntu 24.04, Plesk 18.0.82.1, PHP 8.3.36, LiteSpeed Enterprise 6.3.7 (build 7), MariaDB 10.11.14, WordPress 7.1.4 and LiteSpeed Cache 7.9.2. Apache tests covered sessions, forms, uploads and account boundaries on two subscriptions, plus WordPress login, media upload, block-editor publication and logout.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-ef0e292 elementor-widget elementor-widget-text-editor\" data-id=\"ef0e292\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>1. Prepare licenses, domain names and a maintenance window<\/h3>\n<p>The Plesk panel and LiteSpeed Enterprise require separate licenses. Have a valid LiteSpeed serial number or eligibility for the vendor\u2019s trial. Requesting a trial key does not reset an existing entitlement; check the current IP-based conditions in the <a href=\"https:\/\/docs.litespeedtech.com\/licenses\/trial\/\" rel=\"nofollow noopener\" target=\"_blank\">LiteSpeed trial license documentation<\/a>.<\/p>\n<p>The panel hostname and website DNS records must resolve to the correct server. Open the panel at <code>https:\/\/panel.example.com:8443<\/code> and each website at its own HTTPS hostname. Check the panel and website certificates separately; the browser should show no certificate warning. Plesk manages website certificates under <strong>Websites &amp; Domains \u2192 the domain \u2192 SSL\/TLS Certificates<\/strong>.<\/p>\n<p>Record the subscriptions you will change, their PHP versions and current handlers. Arrange a maintenance window that stops new orders, content and uploads. In addition to the subscription backup below, keep a current backup of server-wide web configuration or a provider snapshot; a subscription backup is not a whole-server backup.<\/p>\n<p>Use a short maintenance window for data comparison and restoration. Stop operations that write new content; ordinary WordPress page requests can also update cache records, so restrict external traffic and monitoring requests during this window according to your maintenance plan.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-bd06312 elementor-widget elementor-widget-text-editor\" data-id=\"bd06312\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>2. Take a full subscription backup and rehearse restoration<\/h3>\n<p>In Plesk, open <strong>Subscriptions \u2192 the subscription \u2192 Backup Manager \u2192 Back Up<\/strong>. Select <strong>Full<\/strong>; check that configuration, user files and databases are included, without unintended file or database exclusions. We inspected these UI options and cancelled the form; the actual backup used the CLI method below. You do not need to run both methods.<\/p>\n<p>In a Bash SSH session, replace <code>example.com<\/code> with the subscription\u2019s primary domain. Do not leave that argument empty. Create a fresh private directory and enter the backup password at the hidden prompt:<\/p>\n<pre><code class=\"language-bash\">umask 077\nFC_PLESK_BACKUP_DIR=$(mktemp -d \/root\/plesk-litespeed-backup.XXXXXX) || exit 1\nread -r -s -p 'Backup password: ' FC_PLESK_BACKUP_PASSWORD || exit 1\nprintf '\\n'\n[ -n \"$FC_PLESK_BACKUP_PASSWORD\" ] || exit 1\nPLESK_BACKUP_PASSWORD=\"$FC_PLESK_BACKUP_PASSWORD\" plesk bin pleskbackup --domains-name example.com -output-file \"$FC_PLESK_BACKUP_DIR\/subscription-full.tar\" -keep-local-backup -description 'Before LiteSpeed migration' || exit 1\nPLESK_BACKUP_PASSWORD=\"$FC_PLESK_BACKUP_PASSWORD\" plesk bin pleskrestore --check-backup \"$FC_PLESK_BACKUP_DIR\/subscription-full.tar\" || exit 1\nPLESK_BACKUP_PASSWORD=\"$FC_PLESK_BACKUP_PASSWORD\" plesk bin pleskrestore --info \"$FC_PLESK_BACKUP_DIR\/subscription-full.tar\" || exit 1\nunset FC_PLESK_BACKUP_PASSWORD\nsha256sum \"$FC_PLESK_BACKUP_DIR\/subscription-full.tar\"<\/code><\/pre>\n<p>Omitting <code>-incremental<\/code> creates a full backup. <code>-keep-local-backup<\/code> preserves the copy in Plesk\u2019s local backup storage alongside the exported file, so allow space for both. Expect all commands to finish without an error and the information output to identify the correct subscription. Store the backup password securely; it does not encrypt every part of the archive. Keep the archive outside the web root with restricted access.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-cced5fc elementor-widget elementor-widget-text-editor\" data-id=\"cced5fc\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>Copy the archive to another server and use <code>sha256sum<\/code> there to obtain the same hash. Check that it contains website files, databases, uploaded media and required application configuration outside the document root. Before production migration, rehearse restoration on a disposable test subscription and verify the restored post, original media, ownership and HTTPS.<\/p>\n<p>For the restore rehearsal, replace the archive path below with the actual file whose hash you verified, and replace <code>example.com<\/code> with the test subscription stored in that archive. <strong>This overwrites the selected subscription\u2019s existing configuration and content.<\/strong> Enter the password used when creating the backup:<\/p>\n<pre><code class=\"language-bash\">FC_PLESK_RESTORE_FILE=\/root\/VERIFIED_BACKUP_DIRECTORY\/subscription-full.tar\n[ -f \"$FC_PLESK_RESTORE_FILE\" ] || exit 1\nread -r -s -p 'Backup password: ' FC_PLESK_RESTORE_PASSWORD || exit 1\nprintf '\\n'\n[ -n \"$FC_PLESK_RESTORE_PASSWORD\" ] || exit 1\nPLESK_BACKUP_PASSWORD=\"$FC_PLESK_RESTORE_PASSWORD\" plesk bin pleskrestore --restore \"$FC_PLESK_RESTORE_FILE\" -level domains -filter list:example.com || exit 1\nunset FC_PLESK_RESTORE_PASSWORD<\/code><\/pre>\n<p>When restoration finishes, compare the database, media and configuration with the pre-backup record before making the first application request. Then test login, the published post, original media and logout. In our rehearsal, a sample WordPress post and media file were deliberately changed; only the selected subscription was restored through Plesk\u2019s restore tool. Application database and file comparisons matched, followed by successful checks of the existing post\/media and login\/logout.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-e14af2c elementor-widget elementor-widget-text-editor\" data-id=\"e14af2c\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>3. Prepare Apache and PHP handlers<\/h3>\n<p><a href=\"https:\/\/docs.litespeedtech.com\/lsws\/cp\/plesk\/installation\/\" rel=\"nofollow noopener\" target=\"_blank\">LiteSpeed\u2019s Plesk instructions<\/a> require working Apache and FastCGI PHP handlers. If nginx is acting as a reverse proxy, disable it through Plesk\u2019s own management tool in a root session:<\/p>\n<pre><code class=\"language-bash\">plesk sbin nginxmng --disable<\/code><\/pre>\n<p>Wait for Plesk\u2019s configuration operation to finish; do not launch the command again while it is running. If your SSH session disconnects, inspect the current state first. On the Ubuntu installation used here, check that Apache is running, nginx is stopped, and Apache owns the actual 80\/443 listeners:<\/p>\n<pre><code class=\"language-bash\">systemctl is-active apache2 nginx\nss -ltnp '( sport = :80 or sport = :443 )'<\/code><\/pre>\n<p>Expect <code>active<\/code> followed by <code>inactive<\/code> in the service output, with Apache processes in the listener output. If Apache has not started on the correct ports, inspect its error log; Plesk\u2019s documented <code>plesk repair web<\/code> command rebuilds web configuration. Review the repair\u2019s scope and restore working Apache and HTTPS before continuing.<\/p>\n<p>For each site, open <strong>Websites &amp; Domains \u2192 the domain \u2192 PHP Settings<\/strong>, choose a PHP version supported by the application and select <strong>FastCGI application served by Apache<\/strong>. For CLI configuration, first find the installed handler ID. This example uses the PHP 8.3 ID from the test:<\/p>\n<pre><code class=\"language-bash\">plesk bin php_handler --list\nplesk bin subscription --update example.com -php true -php_handler_id plesk-php83-fastcgi -fastcgi true\nplesk bin subscription --show-php-settings example.com<\/code><\/pre>\n<p>Check a real HTTPS request as well as any CLI <code>php -v<\/code> output. In Plesk File Manager, create a new temporary PHP file in the site\u2019s document root with the following content. Open it in the browser, record the result and delete the file as soon as the check is complete:<\/p>\n<pre><code class=\"language-php\">&lt;?php\nheader('Content-Type: text\/plain; charset=utf-8');\nprintf(\"PHP=%s\\nSAPI=%s\\n\", PHP_VERSION, PHP_SAPI);<\/code><\/pre>\n<p>For the example Apache\/FastCGI configuration, expect <code>PHP=8.3.36<\/code> and <code>SAPI=cgi-fcgi<\/code>. Check application-required PHP extensions and upload limits in PHP Settings too. Preserve existing <code>.htaccess<\/code>, <code>.user.ini<\/code>, <code>php.ini<\/code>, panel-created default files and ownership.<\/p>\n<p>Log into WordPress, upload a sample file through <strong>Media \u2192 Add New<\/strong>, and publish a post in the block editor through <strong>Posts \u2192 Add New<\/strong>. Open the post and original media in an anonymous window, then verify that logout removes admin access. Keep LiteSpeed Cache page caching disabled during this baseline check.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-c468542 elementor-widget elementor-widget-text-editor\" data-id=\"c468542\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>4. Install the official Plesk extension<\/h3>\n<p>You can find LiteSpeed in the <strong>Extensions<\/strong> catalog. During this test the catalog showed 2.4.2-0 while the vendor ZIP was 2.7.0 release 0. This guide uses the official ZIP and Plesk CLI. In a root session, create a fresh private working directory:<\/p>\n<pre><code class=\"language-bash\">umask 077\nFC_PLESK_LS_SETUP=$(mktemp -d \/root\/plesk-litespeed-setup.XXXXXX) || exit 1\ncd \"$FC_PLESK_LS_SETUP\" || exit 1\ncurl --fail --show-error --location --proto '=https' --proto-redir '=https' --output litespeed-plesk.zip https:\/\/www.litespeedtech.com\/packages\/plesk\/litespeed-plesk.zip || exit 1\nunzip -p litespeed-plesk.zip meta.xml || exit 1\nsha256sum litespeed-plesk.zip || exit 1\n(\n    umask 022\n    plesk bin extension --install .\/litespeed-plesk.zip\n)<\/code><\/pre>\n<p>The download directory stays private; only the installer subprocess uses <code>umask 022<\/code>, allowing newly created extension files to be readable by the web server.<\/p>\n<p>Review the version inside the ZIP and record the installed package\u2019s hash. The download URL may serve a newer release over time. After installation, open <strong>Extensions \u2192 My Extensions \u2192 LiteSpeed Extension \u2192 Open<\/strong>. Installing the Plesk extension does not also complete the LiteSpeed Web Server installation.<\/p>\n<p>The official ZIP successfully installed <strong>LiteSpeed Extension 2.7.0 release 0<\/strong> in this setup. LSWS was then installed from the extension screen in the next step.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-1d3b196 elementor-widget elementor-widget-text-editor\" data-id=\"1d3b196\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>5. Install LiteSpeed Web Server through the extension<\/h3>\n<p>Open <strong>Install LiteSpeed Web Server<\/strong> in the extension. Read the agreement and select <strong>I agree<\/strong>. Enter your serial number for a commercial license; for a trial, select <strong>Request a trial license<\/strong> and leave the serial field empty. Do not type <code>TRIAL<\/code> into the GUI serial field.<\/p>\n<p>For a first installation, the following choices keep Apache serving traffic while you check separate ports. Review the checkboxes explicitly; the 2.7.0 screen\u2019s defaults do not all match these choices.<\/p>\n<table><thead><tr><th>Field<\/th><th>First-installation choice<\/th><\/tr><\/thead><tbody>\n<tr><td>Installation directory<\/td><td><code>\/usr\/local\/lsws<\/code><\/td><\/tr>\n<tr><td>Port offset<\/td><td><strong>1000<\/strong>; enter it explicitly instead of the default 0.<\/td><\/tr>\n<tr><td>WebAdmin Console Login<\/td><td>Your own username, strong password and password confirmation; an administrator email you monitor.<\/td><\/tr>\n<tr><td>Switch To LiteSpeed After Install<\/td><td>Off; switch to the normal ports separately.<\/td><\/tr>\n<tr><td>Open LiteSpeed WebAdmin Firewall Port<\/td><td>Off; provide management access through your own restricted firewall rule or SSH tunnel.<\/td><\/tr>\n<tr><td>Open HTTP\/3(QUIC) Connection Firewall Port<\/td><td>Off for this initial check.<\/td><\/tr>\n<tr><td>Set Server\/VH Cache Roots<\/td><td>Off; complete the separate cache-root preparation below after installation.<\/td><\/tr>\n<\/tbody><\/table>\n<p>Select <strong>Install<\/strong>, read the result, then follow <strong>Okay \u2192 Restart LiteSpeed<\/strong>. Check the installed LSWS version and license status in the extension. If installation or licensing fails, keep the existing Apache service working while you resolve the reported cause.<\/p>\n<p>These choices installed <strong>LSWS 6.3.7 (build 7)<\/strong> in the test. The extension displayed <strong>15-Day Trial License<\/strong>, and license verification with <code>\/usr\/local\/lsws\/bin\/lshttpd -V<\/code> returned <code>OK<\/code>. The screen label is not a remaining-days counter.<\/p>\n\n<h4>Prepare cache roots before switching the normal ports<\/h4>\n<p>Open <strong>Cache Root Setup<\/strong> in the Plesk LiteSpeed extension. If it shows <strong>Shared code must be updated to use this feature<\/strong>, complete <strong>Update<\/strong> and reopen the section. The test completed this action with <strong>Shared code updated.<\/strong> and verified shared-code version <strong>1.17.12.0<\/strong>. Then configure the server and virtual-host cache directories; that installation option was left off.<\/p>\n<figure data-fc-tutorial-asset=\"cache-root-entry\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-plesk-cache-root-setup.png\" alt=\"The Cache Root Setup link and its cache-root configuration description in the Plesk LiteSpeed extension.\" width=\"720\" height=\"137\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>Cache Root Setup in the Plesk LiteSpeed extension.<\/figcaption><\/figure>\n<p>If <strong>Server level<\/strong> or <strong>VHost level<\/strong> shows <strong>not set!<\/strong> in <strong>Cache Root Setup<\/strong>, select <strong>Set Missing Cache Roots<\/strong>. Wait for Plesk to finish regenerating the web configuration before starting another operation.<\/p>\n<p>This setup used <code>\/var\/www\/vhosts\/lscache\/<\/code> as the server root and <code>lscache<\/code> relative to each subscription user\u2019s home directory as the virtual-host root. The native action created <code>\/etc\/apache2\/conf-enabled\/lscache.conf<\/code> and the template <code>\/opt\/psa\/admin\/conf\/templates\/custom\/domain\/domainVirtualHost.php<\/code>. Existing PHP\/hosting settings were preserved, and <code>apachectl -t<\/code> passed. Check the resulting paths and file ownership on your server and confirm a valid Apache configuration before switching ports.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fd46fb7 elementor-widget elementor-widget-text-editor\" data-id=\"fd46fb7\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>6. Check listeners and TLS, then switch the actual websites<\/h3>\n<p>With offset 1000, expect Apache on 80\/443 and LiteSpeed on 1080\/1443. The Plesk extension uses WebAdmin port 7088 in this version. Restrict the additional ports to your management addresses:<\/p>\n<pre><code class=\"language-bash\">ss -ltnp '( sport = :80 or sport = :443 or sport = :1080 or sport = :1443 or sport = :7088 )'\nopenssl s_client -connect site.example.com:1443 -servername site.example.com -verify_hostname site.example.com -verify_return_error &lt;\/dev\/null<\/code><\/pre>\n<p>Check the correct certificate and trust chain for each hostname. Then create a new, uniquely named file in the document root using the short PHP example from step 3. Replace the hostname and filename below with your own values, and read the response from port 1443 without following redirects:<\/p>\n<pre><code class=\"language-bash\">curl --fail --show-error --write-out '\\nHTTP %{http_code}\\n' https:\/\/site.example.com:1443\/temporary-php-check.php<\/code><\/pre>\n<p>Both tested subscriptions returned <code>HTTP 200<\/code>, <code>PHP=8.3.36<\/code> and <code>SAPI=litespeed<\/code> with a trusted certificate; the selected website PHP version was preserved. Delete the temporary file as soon as the check is complete. For applications such as WordPress and Magento, also test login, content and caching after switching the normal 80\/443 ports.<\/p>\n<p>Stop new application writes and capture the current database\/file state. Use <strong>Switch to LiteSpeed<\/strong> in the extension. The SSH alternative is:<\/p>\n<pre><code class=\"language-bash\">\/usr\/local\/lsws\/admin\/misc\/cp_switch_ws.sh lsws<\/code><\/pre>\n<figure data-fc-tutorial-asset=\"offset-to-normal-switch-confirmation\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-plesk-switch-confirmation.png\" alt=\"Switch to LiteSpeed confirmation, showing the Apache port offset changing from 1000 to 0 and the action button.\" width=\"1184\" height=\"385\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>The Switch to LiteSpeed confirmation shows the port offset changing from 1000 to 0.<\/figcaption><\/figure>\n<p>Confirm that LiteSpeed owns 80\/443. Do not rely on the service name alone: inspect which executable the listener PID\u2019s <code>\/proc\/PID\/exe<\/code> link identifies. Do not imitate the switch with separate <code>service stop\/start<\/code> commands; the extension\u2019s switch tool performs additional configuration work.<\/p>\n<p><strong>If 80\/443 remain empty after switching:<\/strong> In the test, <strong>Switch to LiteSpeed<\/strong> reported success while the running LSWS process remained on 1080\/1443; the new offset had not yet reached that process. In this situation, run <strong>Restart LiteSpeed<\/strong> once in the extension and check the ports again with <code>ss<\/code>. This additional step moved the actual LSWS listeners to 80\/443 and closed 1080\/1443 in the test. Website certificates and the pre-switch application\/database contents were preserved. Verify the real listeners and HTTPS as well as the extension\u2019s success message.<\/p>\n<figure data-fc-tutorial-asset=\"native-restart-completed\" style=\"margin:1.5rem 0;\"><img loading=\"lazy\" src=\"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-content\/uploads\/2026\/10\/fibacloud-litespeed-plesk-restart-result.png\" alt=\"The Plesk LiteSpeed extension showing offset 0, Apache not running, and LiteSpeed restarted successfully.\" width=\"1184\" height=\"285\"  decoding=\"async\" style=\"display:block;max-width:100%;height:auto;\"><figcaption>The additional native restart completed; the screen shows offset 0 and a successful restart. The 80\/443 listeners were verified separately.<\/figcaption><\/figure>\n<p>Compare the database and files before creating new content. Then test website HTTPS, PHP version, login\/logout, forms and uploads. Expect <code>SAPI=litespeed<\/code> in the web PHP check, with the selected PHP version and application settings preserved.<\/p>\n<p><strong>Verified on the normal ports:<\/strong> The test PHP applications ran over HTTPS with PHP 8.3.36 and <code>SAPI=litespeed<\/code> on two separate subscriptions. Login\/logout, form submission and file upload checks passed, with session and file-access boundaries preserved. An invalid CSRF request was rejected without changing data. Enabling page caching produced MISS \u2192 HIT for public content; authenticated and private content stayed out of the public page cache.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-83ffb34 elementor-widget elementor-widget-text-editor\" data-id=\"83ffb34\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>7. Test WordPress caching and content updates<\/h3>\n<p>In WordPress, open <strong>LiteSpeed Cache \u2192 Cache<\/strong>. Set <strong>Enable Cache<\/strong> to <strong>ON<\/strong>; for this first check, set <strong>Cache Logged-in Users<\/strong>, <strong>Cache REST API<\/strong> and <strong>Cache Login Page<\/strong> to <strong>OFF<\/strong>. Keep Guest Mode, Guest Optimization and Browser Cache off, and save without adding a CDN connection.<\/p>\n<p>View a published test post while logged in. Use <strong>Purge this page &#8211; LSCache<\/strong> in the admin bar\u2019s LiteSpeed menu. Then make two normal GET requests to the same URL without login cookies:<\/p>\n<pre><code class=\"language-bash\">curl -sS -D - -o \/dev\/null https:\/\/site.example.com\/cache-check\/\ncurl -sS -D - -o \/dev\/null https:\/\/site.example.com\/cache-check\/<\/code><\/pre>\n<p>Expect <code>X-LiteSpeed-Cache: miss<\/code> on the first response and <code>hit<\/code> on the second. Do not add random query parameters or a <code>Cache-Control: no-cache<\/code> request header. Next, edit the post in the normal block editor and save. Without another manual purge, open the anonymous URL: the new content should appear, the old content should disappear, and MISS \u2192 HIT should occur again. Check that the original media file remains intact.<\/p>\n<p>Admin, login and personalized pages should not produce a public-page cache HIT. Anonymous pages must not show the admin bar or another user\u2019s data. Test your own cart, checkout and membership flows too.<\/p>\n<p><strong>Observed in this installation:<\/strong> Purging the page from the administrator toolbar produced MISS \u2192 HIT for anonymous requests. After the post was updated and saved in the normal block editor, the new content was served with another MISS \u2192 HIT sequence without a second manual purge. Private pages such as login and administration stayed out of the public page cache; access checks after logout and the original media file were preserved.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-255c0cb elementor-widget elementor-widget-text-editor\" data-id=\"255c0cb\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<h3>8. Return to Apache while preserving the latest data<\/h3>\n<p>During the maintenance window, disable page caching and capture the current database\/file state. Select <strong>Switch to Apache<\/strong> in the LiteSpeed extension or use the same switch tool over SSH:<\/p>\n<pre><code class=\"language-bash\">\/usr\/local\/lsws\/admin\/misc\/cp_switch_ws.sh apache<\/code><\/pre>\n<p>Verify that Apache owns 80\/443. Compare files and data before the first application request, then check HTTPS, FastCGI PHP, login\/logout, the latest WordPress edit and original media. Do not revert application data to an older backup just to switch web servers. Restoring a backup is a separate recovery action that can overwrite newer data.<\/p>\n<p><strong>Issue encountered:<\/strong> One Apache baseline request returned 403 because a newly created <code>.htaccess<\/code> had mode <code>0600<\/code>. After its new-application origin and contents were verified and backed up, only that file\u2019s mode was changed to <code>0644<\/code>. For a similar error, inspect <strong>Domains \u2192 the domain \u2192 Logs<\/strong> and file ownership first; do not apply blanket permission changes to the entire site.<\/p>\n<p><strong>Verified return to Apache:<\/strong> In this installation, <code>\/usr\/sbin\/apache2<\/code> took over ports 80\/443, and LiteSpeed\u2019s 1080\/1443 and 7088 listeners closed. Before the first application request, application files and the current database matched the recorded state exactly; TLS certificates and PHP\/hosting settings were preserved. Session, form and upload checks then passed on both subscriptions with PHP 8.3.36 and <code>SAPI=cgi-fcgi<\/code>. The latest WordPress edit and original media were also verified through Apache, with working login\/logout and private-page access checks. This final WordPress check created no post, edit or media upload, and page caching remained off.<\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Prepare a LiteSpeed Enterprise installation on cPanel or Plesk with trusted downloads, staging checks, cutover and an Apache rollback plan.<\/p>\n","protected":false},"author":1,"featured_media":2541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[210,219,221,217],"class_list":["post-2339","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials-en","tag-cpanel","tag-litespeed","tag-plesk","tag-webserver"],"lang":"en","translations":{"en":2339,"tr":1741},"pll_sync_post":[],"_links":{"self":[{"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/posts\/2339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/comments?post=2339"}],"version-history":[{"count":19,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/posts\/2339\/revisions"}],"predecessor-version":[{"id":2362,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/posts\/2339\/revisions\/2362"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/media\/2541"}],"wp:attachment":[{"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/media?parent=2339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/categories?post=2339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fibacloud.com\/community\/tutorials\/wp-json\/wp\/v2\/tags?post=2339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}