Where and how should I enter commands for the hestia panel ?
I tried ssh commands:
to enable
v-add-web-domain-allow-users user domain.com
to disable
v-delete-web-domain-allow-users user domain.com
But I get: -bash: v-delete-web-domain-allow-users: command not found
eris
January 25, 2022, 2:27pm
2
Use full path.
/usr/local/hestia/bin/v-add-web-domain-allow-users user domain.com
I entered the command, I didn’t get an error, but I didn’t get a result either.
/usr/local/hestia/bin/v-delete-web-domain-allow-users user domain.com
I did a reboot of apache, frm, nginx
If there is no output, the script worked as expected.
But I still can’t create a subdomain with another user?
Have you disabled the security policy? Also try in webinterface, if all works well go over to cli.
I have successfully created a domain with a new user.
I successfully create a subdomain for this user.
But having created another user, I can no longer create a subdomain in it, if the domain is owned by another user.
I inevitably get the error:
Error: Web domain site.com exists
I follow the directions: Server setting / Config — Hestia Control Panel documentation
In Hestia 1.3.5 and Vesta it was possible for “User Bob” to create an subdomain (bob.alice.com ) of alice.com even the User Alice is a different user. This could cause “Security” issues and therefor we have decided to add a policy to disable / enable this behaviour. By default the policy is enabled.
To turn the the policy off for only one domain. For example that has been used for “testing”
to enable
v-add-web-domain-allow-users user domain.com
to disable
v-delete-web-domain-allow-users user domain.com
But I am not getting any result.
I still get an error when creating a subdomain with another user.
I tried systemctl restart hestia. But it did not help.
When I apply:
v-add-web-domain-allow-users user domain.com
I get an error:
Error: Web domain folder for domain.com should not exist
When I apply:
v-delete-web-domain-allow-users user domain.com
I get an error:
Error: Web domain domain.com exists
You cannot delete because the domain has not been erased. Can you just delete the folder and retry to delete the domain?
Also…
Are you trying to delete the domain or the subdomain?
edpol27
January 25, 2022, 3:59pm
11
I have successfully created a domain with a new user.
I successfully create a subdomain for this user.
But having created another user, I can no longer create a subdomain in it, if the domain is owned by another user.
I inevitably get the error:
Error: Web domain site.com exists
I tried to solve this problem as the documentation suggests: Server setting / Config — Hestia Control Panel documentation
But I don’t get a positive result.
eris
January 25, 2022, 4:10pm
12
v-add-web-domain-allow-user user domain.com
Where the user is the current domain owner…
Or just disable the option:
Enforce subdomain ownership in the settings
edpol27
January 25, 2022, 4:19pm
13
The subdomain ownership in the settings function is equivalent to commands:
to enable
v-add-web-domain-allow-users user domain.com
to disable
v-delete-web-domain-allow-users user domain.com
I am getting the same errors.
I created a domain for user 1
But I can’t create a subdomain for user 2 if the main domain is for user 1
I am getting the above errors.
eris
January 25, 2022, 4:26pm
14
Are you sure you don’t run: v-add-web-domain and not v-add-web-domain-allow-users
The last command doesn’t contain the check…
edpol27
January 25, 2022, 4:39pm
15
I run # to disable - v-delete-web-domain-allow-users
According to documentation. It doesn’t work.
I removed forced ownership of the domain in the settings.
I reinstalled the domain for user 1 without a ssl certificate.
Only then I was able to create a subdomain for user 2.
system
Closed
February 24, 2022, 4:39pm
16
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.