Hst-install.sh: illegal option -- -

Hi

When I try to run HestiaCP install with the following options, it fails with message: illegal option – -. I only want to install nginx and mariadb for hestiacp, dns (ns2) and email components. the panel and dns (ns1) are already installed, configured and working on another server. I hope someone can shed some light and correct where I am going wrong.

bash hst-install.sh --hostname ‘isp120.homelab.africa’ --email ‘[email protected]’ --username ‘ispAdmin’ --password ‘aw132$EH#’ --apache no --nginx yes --phpfpm no --multiphp no --vsftpd no --proftpd no --named yes --mariadb yes --mysql no --postgresql no --exim yes --dovecot yes --sieve yes --clamav yes --spamassassin yes --ptables yes --fail2ban yes --quota yes --api yes –interactive no --force

Do I need to install php/fpm? I wont be hosting on this server, but maybe hestiacp needs it? All options have – - (double dash) when I run it. Not sure how to format it here.

Thanx in advance
Les

Hi,

That should be --api yes --interactive no

Hi sahsanu
Thank you for your response. It was a typo on here. On my server I do run the command as:
–api yes –interactive no (corrected it in previous)
I re-checked and it still fails. Its on a freshly-installed Ubuntu 24.04 server.
Thanx again

Then post exactly the line you are using, once pasted, select it and Ctrl-E or click on button </> to format it correctly here in the forum.

Thanx @sahsanu. Got it working. I went back to the installation page on the website, filled in my requirements, copied the code, made a few modifications for my requirements and it worked.
The only two differences I could see between my initial command and the one that worked were:
–with-debs no (was not there previously); –mariadb yes (now absent)
Still not sure what else, or what made it to work/not work. I’m in the panel and I’m loving it.
Thank you

1 Like