Custom port does not take effect with a new installation

Running a new hestiacp installation with sudo bash hst-install.sh --apache yes --phpfpm yes --multiphp no --vsftpd no --proftpd no --named no --mysql yes --postgresql no --exim no --dovecot no --sieve no --clamav no --spamassassin no --quota yes --api no --interactive yes --with-debs no --port 8443 --hostname {hestiacp.domain.com} --email {email-address} --password {passphrase} --lang en --force, the custom port does not take effect. There are firewall rules for port 8443.

The /usr/local/hestia/nginx/conf/nginx.conf still has displays:

 server {
        listen          8083 ssl;
        server_name     _;
        root            /usr/local/hestia/web;

Changing listen 8083 ssl; to listen 8443 ssl; and restarting hestiacp makes no difference. Similarly running v-change-sys-port 8443 returns:

/usr/local/hestia/func/main.sh: line 1378: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1378: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
grep: /usr/local/hestia/conf/hestia.conf: Permission denied
/usr/local/hestia/func/main.sh: line 1408: /usr/local/hestia/conf/hestia.conf: Permission denied
sort: cannot read: /usr/local/hestia/conf/hestia.conf: Permission denied
mv: failed to access '/usr/local/hestia/conf/hestia.conf.bak': Permission denied
mv: failed to access '/usr/local/hestia/conf/hestia.conf': Permission denied
rm: cannot remove '/usr/local/hestia/conf/hestia.conf.bak': Permission denied
/usr/local/hestia/func/main.sh: line 1378: /usr/local/hestia/conf/hestia.conf: Permission denied
touch: cannot touch '/usr/local/hestia/data/users/admin/system.log': Permission denied
grep: /usr/local/hestia/data/users/admin/system.log: Permission denied
/usr/local/hestia/func/main.sh: line 142: /usr/local/hestia/data/users/admin/system.log: Permission denied
/usr/local/hestia/func/main.sh: line 97: /usr/local/hestia/log/system.log: Permission denied
sed: couldn't open temporary file /usr/local/hestia/nginx/conf/sedLPVAXU: Permission denied
sed: couldn't open temporary file /usr/local/hestia/data/firewall/sedu6Yct2: Permission denied
sed: can't read /usr/local/hestia/data/firewall/chains.conf: Permission denied

When the command is run as root, it returns v-change-sys-port: command not found

The control panel is accessible when using port 8083.

sudo /usr/local/hestia/bin/v-change-sys-port

1 Like

Port 8443 is allready in use by Apache2. So can’t be used again

Also make sure you run the command by root or with sudo command

Thanks @eris. Can any of the following ports be used?

  • 2053
  • 2083
  • 2087
  • 2096

2083 should be fine

1 Like

Thanks @potap. It may be helpful for others if /usr/local/hestia/bin/v-change-sys-port is added to the documentation in case they run into a similar issue.

Thanks @eris. Be great if the installation presented back a message to change the port if it’s already in use e.g. 8443. Happy to raise it a feature request if it helps.