modified: .env

modified:   README.md
	modified:   bin/database.sh
This commit is contained in:
Code-Egg
2024-01-03 15:32:23 +08:00
parent 3ee0c984ac
commit 5d2435e066
3 changed files with 12 additions and 8 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
TimeZone=America/New_York
OLS_VERSION=1.7.16
OLS_VERSION=1.7.18
PHP_VERSION=lsphp81
MYSQL_DATABASE=wordpress
MYSQL_ROOT_PASSWORD=password
+6 -1
View File
@@ -32,13 +32,14 @@ The docker image installs the following packages on your system:
|Component|Version|
| :-------------: | :-------------: |
|Linux|Ubuntu 22.04|
|OpenLiteSpeed|[Latest version](https://openlitespeed.org/downloads/)|
|OpenLiteSpeed|[Latest version](https://hub.docker.com/r/litespeedtech/openlitespeed)|
|MariaDB|[Stable version: 10.5](https://hub.docker.com/_/mariadb)|
|PHP|[Latest version](http://rpms.litespeedtech.com/debian/)|
|LiteSpeed Cache|[Latest from WordPress.org](https://wordpress.org/plugins/litespeed-cache/)|
|ACME|[Latest from ACME official](https://github.com/acmesh-official/get.acme.sh)|
|WordPress|[Latest from WordPress](https://wordpress.org/download/)|
|phpMyAdmin|[Latest from dockerhub](https://hub.docker.com/r/bitnami/phpmyadmin/)|
|Redis|[Latest from dockerhub](https://hub.docker.com/_/redis/)|
## Data Structure
Cloned project
@@ -128,6 +129,10 @@ To preconfigure the `wp-config` file, run the `database.sh` script for your doma
```
./bin/appinstall.sh [-A, --app] wordpress [-D, --domain] example.com
```
### Connecting to Redis
Go to [WordPress > LSCache Plugin > Cache > Object](https://docs.litespeedtech.com/lscache/lscwp/cache/#object-tab), select **Redis** method and input `redis` to the Host field.
### Install ACME
We need to run the ACME installation command the **first time only**.
With email notification:
+5 -6
View File
@@ -20,13 +20,13 @@ help_message(){
echo -e "\033[1mOPTIONS\033[0m"
echow '-D, --domain [DOMAIN_NAME]'
echo "${EPACE}${EPACE}Example: database.sh -D example.com"
echo "${EPACE}${EPACE}Will auto generate Database/username/password for the domain"
echo "${EPACE}${EPACE}Will auto-generate Database/username/password for the domain"
echow '-D, --domain [DOMAIN_NAME] -U, --user [xxx] -P, --password [xxx] -DB, --database [xxx]'
echo "${EPACE}${EPACE}Example: database.sh -D example.com -U USERNAME -P PASSWORD -DB DATABASENAME"
echo "${EPACE}${EPACE}Will create Database/username/password by given"
echow '-r, --delete [DOMAIN_NAME] -DB, --database [xxx] -U, --user [xxx]'
echo "${EPACE}${EPACE}Example: database.sh -r example.com -DB DATABASENAME -U USERNAME"
echo "${EPACE}${EPACE}Will delete database (require) and username (optional) by given"
echow '-R, --delete -DB, --database [xxx] -U, --user [xxx]'
echo "${EPACE}${EPACE}Example: database.sh -r -DB DATABASENAME -U USERNAME"
echo "${EPACE}${EPACE}Will delete the database (require) and username (optional) by given"
echow '-H, --help'
echo "${EPACE}${EPACE}Display help and exit."
exit 0
@@ -181,8 +181,7 @@ while [ ! -z "${1}" ]; do
-db | -DB | -database| --database) shift
SQL_DB="${1}"
;;
-[rR] | -del | --del | --delete) shift
DOMAIN="${1}"
-[rR] | -del | --del | --delete)
METHOD=1
;;
*)