developercoffeeshop
New Pleskian
Im having an issue creating a domain on plesk, this command works fine when run through cli:
```plesk bin site --create newdomain.com -webspace-name existingdomain.com -www-root /httpdocs```
But when I add the same code above to a bash script (create_domain.sh) and try to run it with:
```sudo bash create_domain.sh```
I get the following error
```An error occurred during domain creation: hosting update is failed: cObject->update() failed: Some fields are empty or contain an improper value. ('www_root' = ')```
Anyone knows why this is happening?
I tried /usr/local/psa/bin/site instead of plesk bin site and I get the same issue
```plesk bin site --create newdomain.com -webspace-name existingdomain.com -www-root /httpdocs```
But when I add the same code above to a bash script (create_domain.sh) and try to run it with:
```sudo bash create_domain.sh```
I get the following error
```An error occurred during domain creation: hosting update is failed: cObject->update() failed: Some fields are empty or contain an improper value. ('www_root' = ')```
Anyone knows why this is happening?
I tried /usr/local/psa/bin/site instead of plesk bin site and I get the same issue