Hello everyone,
I’ve been using Hestia CP for a while, and I think I know the panel quite well, especially the documentation, but I’m having difficulty activating demo mode.
I was following this documentation CLI Reference | Hestia Control Panel
unfortunately without success. I haven’t found any other documentation on the matter.
Can someone please help me and describe the exact steps to activate the demo mode?
Thanks so much in advance for your help.
eris
April 30, 2024, 12:42pm
2
v-change-sys-demo-mode yes
But suggest not using it unless you want to provide somebody a demo like we do…
1 Like
Thank you very much for the reply!
“yes” to activate and I suppose “no” to deactivate demo mode, correct?
I made a dedicated “demo” installation for some of my customers. So yes, I only need it for demo mode.
eris
April 30, 2024, 1:00pm
4
v-change-sys-demo-mode no doesn’t work due to the demo check use:
sed -i "s|^DEMO_MODE=.*'|DEMO_MODE='no'|g" $HESTIA/conf/hestia.conf
Instead
We use the follow hooks in /etc/hestiacp/hooks to “prepare” the demo server after each update
1 Like
Perfect! Everything works. Thank you very much.
The last question: why aren’t the access data automatically filled in? I mean user and automatic password generation?
Is it possible to activate the function as on the Hestia website? The password is automatically filled in.
eris
April 30, 2024, 1:21pm
6
In post_install.sh we have:
# Update templates to enable default username
sed -i "s|autofocus|autofocus value=\"admin\"|g" $HESTIA/web/templates/pages/login/login.php
# Update templates to enable default password
sed -i "s|autofocus|autofocus value=\"StrongSecurePassword\"|g" $HESTIA/web/templates/pages/login/login_1.php
That should do the trick…
1 Like
I do not know how to thank you…
You helped me a lot. Thanks again!
system
Closed
May 30, 2024, 1:33pm
8
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.