OLS setup and config

#1
Hello! Is there a way to setup OLS from concole?
I try to makea whole ready site in the docker, so i need to set admin passwd, delete localhost and setup another domain instead.
 

Cold-Egg

Administrator
#2
Hi,

There's no existing CLI yet, so to set a new password for admin user from console, you can try this

Code:
echo "admin:$(/usr/local/lsws/admin/fcgi-bin/admin_php -q /usr/local/lsws/admin/misc/htpasswd.php mypassword)" > /usr/local/lsws/admin/conf/htpasswd;
and create a bash script for new domain creation.

FYI, hope this can give you some ideas, https://github.com/litespeedtech/ols-docker-env

Best,
Eric
 
Top