Entering Commands for the Hestia Panel

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

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 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.

Should work

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?

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.

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

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.

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…

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.