mirror of
https://github.com/10h30/ols-docker-env.git
synced 2026-05-12 15:21:24 +09:00
add lsup
This commit is contained in:
@@ -1,7 +1,8 @@
|
|||||||
# OpenLiteSpeed WordPress Docker Container (Beta)
|
# OpenLiteSpeed WordPress Docker Container (Beta)
|
||||||
[](https://hub.docker.com/r/litespeedtech/openlitespeed)
|
[](https://hub.docker.com/r/litespeedtech/openlitespeed)
|
||||||
[](https://hub.docker.com/r/litespeedtech/openlitespeed)
|
[](https://hub.docker.com/r/litespeedtech/openlitespeed)
|
||||||
[](https://hub.docker.com/r/litespeedtech/openlitespeed-beta)
|
[](https://hub.docker.com/r/litespeedtech/openlitespeed)
|
||||||
|
[](https://hub.docker.com/r/litespeedtech/openlitespeed-beta)
|
||||||
|
|
||||||
Install a Lightweight WordPress container with OpenLiteSpeed 1.6.5+ & PHP 7.3+ based on Ubuntu 18.04 Linux.
|
Install a Lightweight WordPress container with OpenLiteSpeed 1.6.5+ & PHP 7.3+ based on Ubuntu 18.04 Linux.
|
||||||
|
|
||||||
@@ -109,6 +110,11 @@ Use the root domain in this command, and it will check for a certificate and aut
|
|||||||
```
|
```
|
||||||
./bin/cert.sh example.com
|
./bin/cert.sh example.com
|
||||||
```
|
```
|
||||||
|
### Update Web Server
|
||||||
|
To upgrade web server to latest stable version, run
|
||||||
|
```
|
||||||
|
bash bin/webadmin.sh -lsup
|
||||||
|
```
|
||||||
|
|
||||||
### Accessing the Database
|
### Accessing the Database
|
||||||
After installation, you can use Adminer (formerly phpMinAdmin) to access the database by visiting http://127.0.0.1:8080. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
After installation, you can use Adminer (formerly phpMinAdmin) to access the database by visiting http://127.0.0.1:8080. The default username is `root`, and the password is the same as the one you supplied in the `.env` file.
|
||||||
|
|||||||
@@ -9,6 +9,9 @@ help_message(){
|
|||||||
echo 'Will restart LiteSpeed Web Server'
|
echo 'Will restart LiteSpeed Web Server'
|
||||||
echo 'Command [-modsec] [enable|disable]'
|
echo 'Command [-modsec] [enable|disable]'
|
||||||
echo 'Example: webadmin -modsec enable'
|
echo 'Example: webadmin -modsec enable'
|
||||||
|
echo 'Command [-lsup]'
|
||||||
|
echo 'Example: webadmin.sh -lsup'
|
||||||
|
echo 'Will upgrade to latest stable version'
|
||||||
exit 0
|
exit 0
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,6 +38,10 @@ mod_secure(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ls_upgrade(){
|
||||||
|
docker-compose exec ${CONT_NAME} su -c '/usr/local/lsws/admin/misc/lsup.sh 2>/dev/null'
|
||||||
|
}
|
||||||
|
|
||||||
set_web_admin(){
|
set_web_admin(){
|
||||||
docker-compose exec ${CONT_NAME} su -s /bin/bash lsadm -c \
|
docker-compose exec ${CONT_NAME} su -s /bin/bash lsadm -c \
|
||||||
'echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php '${1}')" > /usr/local/lsws/admin/conf/htpasswd';
|
'echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php* -q /usr/local/lsws/admin/misc/htpasswd.php '${1}')" > /usr/local/lsws/admin/conf/htpasswd';
|
||||||
@@ -56,6 +63,9 @@ while [ ! -z "${1}" ]; do
|
|||||||
-modsec | -sec| --sec) shift
|
-modsec | -sec| --sec) shift
|
||||||
mod_secure ${1}
|
mod_secure ${1}
|
||||||
;;
|
;;
|
||||||
|
-lsup | -upgrade) shift
|
||||||
|
ls_upgrade
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
main ${1}
|
main ${1}
|
||||||
;;
|
;;
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.4.tgz && \
|
|||||||
RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \
|
RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \
|
||||||
lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y
|
lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y
|
||||||
|
|
||||||
|
RUN wget -O /usr/local/lsws/admin/misc/lsup.sh \
|
||||||
|
https://raw.githubusercontent.com/litespeedtech/openlitespeed/master/dist/admin/misc/lsup.sh && \
|
||||||
|
chmod +x /usr/local/lsws/admin/misc/lsup.sh
|
||||||
|
|
||||||
EXPOSE 7080
|
EXPOSE 7080
|
||||||
|
|
||||||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
||||||
|
|||||||
@@ -9,6 +9,10 @@ RUN wget https://openlitespeed.org/preuse/openlitespeed-1.6.5.tgz && \
|
|||||||
RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \
|
RUN apt-get install mysql-client lsphp73 lsphp73-common lsphp73-mysql lsphp73-opcache \
|
||||||
lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y
|
lsphp73-curl lsphp73-json lsphp73-imagick lsphp73-redis lsphp73-memcached -y
|
||||||
|
|
||||||
|
RUN wget -O /usr/local/lsws/admin/misc/lsup.sh \
|
||||||
|
https://raw.githubusercontent.com/litespeedtech/openlitespeed/master/dist/admin/misc/lsup.sh && \
|
||||||
|
chmod +x /usr/local/lsws/admin/misc/lsup.sh
|
||||||
|
|
||||||
EXPOSE 7080
|
EXPOSE 7080
|
||||||
|
|
||||||
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
RUN curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar && \
|
||||||
|
|||||||
Reference in New Issue
Block a user