This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Written by: cPFence Team / https://cpfence.app/ | |
# | |
# Description: | |
# This script is designed to automate the optimization and configuration of OpenLiteSpeed | |
# running inside a Docker container or directly on the host. It backs up the existing | |
# configuration file, applies updates to critical server settings such as worker processes, | |
# CPU affinity, memory buffer sizes, and external application configurations for PHP-LSAPI. | |
# MD5 checksum validation is added to detect changes and prevent redundant updates. |