### Start Demo Site Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Start a demo WordPress site. By default, it can be accessed at http://localhost. ```bash bash bin/demosite.sh ``` -------------------------------- ### Start Docker Compose Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Start the Docker containers for the OpenLiteSpeed WordPress environment. ```bash docker compose up ``` -------------------------------- ### Custom Dockerfile Example Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Extends the base Litespeed Docker image to install additional packages like lsphp83-pspell. This involves creating a custom Dockerfile and updating docker-compose. ```dockerfile FROM litespeedtech/openlitespeed:latest RUN apt-get update && apt-get install lsphp83-pspell -y ``` ```yaml litespeed: image: litespeedtech/openlitespeed:${OLS_VERSION}-${PHP_VERSION} build: ./custom ``` ```bash docker compose up --build ``` -------------------------------- ### Install WordPress Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Installs WordPress for a given domain after preconfiguring the wp-config file using the database script. ```bash bash bin/appinstall.sh [-A, --app] wordpress [-D, --domain] example.com ``` -------------------------------- ### Install mkcert for Local Development SSL Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Installs mkcert using Chocolatey on Windows and creates a local Certificate Authority (CA) trusted by the system. ```bash bash bin/mkcert.sh --install ``` -------------------------------- ### Install ACME with Email Notification Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Installs ACME for the first time, requiring an email address for notifications. This command should only be run once. ```bash bash bin/acme.sh [-I, --install] [-E, --email] EMAIL_ADDR ``` -------------------------------- ### Start Docker Compose in Detached Mode Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Start the Docker containers in detached mode, running them in the background. ```bash docker compose up -d ``` -------------------------------- ### Create Domain and Virtual Host Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Add a new domain and create a corresponding virtual host configuration. Replace 'example.com' with your desired domain. ```bash bash bin/domain.sh [-A, --add] example.com ``` -------------------------------- ### Create Database with Specified Credentials Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Use this command to specify your own database username, password, and database name. Replace placeholders with your desired values. ```bash bash bin/database.sh [-D, --domain] example.com [-U, --user] USER_NAME [-P, --password] MY_PASS [-DB, --database] DATABASE_NAME ``` -------------------------------- ### Generate Local SSL Certificate with mkcert Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Generates SSL certificates for a local domain, configures it for HTTPS, and restarts the web server. The domain must be added to the environment first. ```bash bash bin/mkcert.sh [-D, --domain] example.test ``` -------------------------------- ### Create Database with Auto-Generated Credentials Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Use this command to automatically generate database user, password, and name. It requires the domain name as an argument. ```bash bash bin/database.sh [-D, --domain] example.com ``` -------------------------------- ### Delete Domain and Virtual Host Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Remove a domain and its associated virtual host configuration. Replace 'example.com' with the domain to be deleted. ```bash bash bin/domain.sh [-D, --del] example.com ``` -------------------------------- ### Update Web Server to Latest Stable Version Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Runs a script to upgrade the web server to its latest stable version. ```bash bash bin/webadmin.sh [-U, --upgrade] ``` -------------------------------- ### Clone the Repository Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Clone the OpenLiteSpeed WordPress Docker environment repository to your local machine. ```bash git clone https://github.com/litespeedtech/ols-docker-env.git ``` -------------------------------- ### Apply Let's Encrypt Certificate Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Automatically applies a Let's Encrypt certificate for the specified root domain, handling both with and without 'www'. ```bash bash bin/acme.sh [-D, --domain] example.com ``` -------------------------------- ### Enable OWASP ModSecurity Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Enables the OWASP ModSecurity module on the web server. ModSecurity warnings may occur if some rules are not supported. ```bash bash bin/webadmin.sh [-M, --mod-secure] enable ``` -------------------------------- ### Remove Local SSL Certificate with mkcert Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Removes the SSL certificate for a local domain, reverts it to HTTP, and cleans up related files and configurations. ```bash bash bin/mkcert.sh [-R, --remove] [-D, --domain] example.test ``` -------------------------------- ### Set WebAdmin Password Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Set a personal password for the OpenLiteSpeed WebAdmin interface. This is a recommended security step. ```bash bash bin/webadmin.sh my_password ``` -------------------------------- ### Stop Docker Compose Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Stop the running Docker containers for the OpenLiteSpeed WordPress environment. ```bash docker compose stop ``` -------------------------------- ### Remove Docker Compose Containers Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Stop and remove all Docker containers, networks, and volumes created by Docker Compose. ```bash docker compose down ``` -------------------------------- ### Disable OWASP ModSecurity Source: https://github.com/litespeedtech/ols-docker-env/blob/master/README.md Disables the OWASP ModSecurity module on the web server. ```bash bash bin/webadmin.sh [-M, --mod-secure] disable ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.