Switching Webserver Kind
You can switch the web server type that an Application role uses without requiring any configuration changes. Here's how:
-
Navigate to Servers
In the left sidebar, click Servers. -
Select the Server
Choose the server where you want to change the webserver type. -
Access Roles Section
Scroll down to the Roles section and select the Application tab. -
Edit Web Server
- Click Web Server to open the settings.
- When the page loads, click Edit.
-
Choose New Web Server Kind
Select the new web server type from the available options. -
Save Changes
Click Save to apply the changes.
Important Considerations
- Switching to LiteSpeed:
- If you switch to LiteSpeed, Apache will automatically shut down, and the official LS Docker image will run on the default HTTP and HTTPS ports.
- If you're switching from Apache, all PHP-FPM containers will stop and restart as LSPhp containers.
- Downtime can range from 30 seconds to 10 minutes, depending on server load and the number of hosted websites.
CLI Recovery Option
- If the web server cannot start after switching, you can use the CLI to revert to Apache by running:
appcd-cli 127.0.0.1 change-webserver apache
This allows you to easily change the web server without significant downtime or reconfiguration.