Switching Webserver Kind

You can switch the web server type that an Application role uses without requiring any configuration changes. Here's how:

  1. Navigate to Servers
    In the left sidebar, click Servers.

  2. Select the Server
    Choose the server where you want to change the webserver type.

  3. Access Roles Section
    Scroll down to the Roles section and select the Application tab.

  4. Edit Web Server

    • Click Web Server to open the settings.
    • When the page loads, click Edit.
  5. Choose New Web Server Kind
    Select the new web server type from the available options.

  6. 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.

Was this answer helpful? 0 Users Found This Useful (0 Votes)