From 51026ae832ae390948b145154050bb64d19a7f0b Mon Sep 17 00:00:00 2001 From: Cold-Egg Date: Wed, 12 Feb 2020 16:09:02 -0500 Subject: [PATCH] avoid uid too small, update xml conf --- bin/demosite.sh | 5 +++++ lsws/{ => conf}/httpd_config.xml | 6 ++++++ 2 files changed, 11 insertions(+) rename lsws/{ => conf}/httpd_config.xml (97%) diff --git a/bin/demosite.sh b/bin/demosite.sh index 3d95aa3..d5e0e5b 100755 --- a/bin/demosite.sh +++ b/bin/demosite.sh @@ -35,9 +35,14 @@ app_download(){ docker-compose exec ${CONT_NAME} su -c "appinstallctl.sh -app ${1} -domain ${2} -vhname ${DEMO_VH}" } +lsws_restart(){ + docker-compose exec ${CONT_NAME} su -c '/usr/local/lsws/bin/lswsctrl restart >/dev/null' +} + main(){ store_credential ${DEMO_VH} app_download ${APP_NAME} ${DOMAIN} + lsws_restart } while [ ! -z "${1}" ]; do diff --git a/lsws/httpd_config.xml b/lsws/conf/httpd_config.xml similarity index 97% rename from lsws/httpd_config.xml rename to lsws/conf/httpd_config.xml index 4e97392..dd67049 100644 --- a/lsws/httpd_config.xml +++ b/lsws/conf/httpd_config.xml @@ -146,6 +146,12 @@ lsphp7 + + 7 + + /var/www/lscache/ + + 35 PHP_LSAPI_CHILDREN=35