Hello HESTIA community.
I am facing an issue after installing HESTIA 1.0.5 (amd64) on a Hetzner cloud server with Debian 9.
The problem
After installation, apache2 can not start.
Running journalctl -xe
I see that apche’s 8080 port is already in use:
(98)Address already in use: AH00072: make_sock: could not bind to address [PUBLIC IP HERE]:8080
Running netstat -nlp | grep 8080
I see that nginx is using that port:
tcp 0 0 [PUBLIC IP HERE]:8080 0.0.0.0:* LISTEN 958/nginx: master p
In HESTIA Web UI, I also see that the Web Template list for the default domain is empty. I haven’t added any other domains yet.
I re-imaged the VPS several times and the issue is reproducible 100% of the times. Below are all the steps (even before HESTIA install just in case)
Before HESTIA installation
I ran the commands as root
- Rebuild VPS from Hetzner Cloud Console
- Disable password authentication for ssh and restart ssh daemon
sed -ri 's/#?PasswordAuthentication\s+.*/PasswordAuthentication no/' /etc/ssh/sshd_config && systemctl restart sshd
- Configure local timezone and locale
ln -fs /usr/share/zoneinfo/Europe/Athens /etc/localtime && dpkg-reconfigure -f noninteractive tzdata
- Configure locale
sed -i 's/# el_GR.UTF-8 UTF-8/el_GR.UTF-8 UTF-8/g' /etc/locale.gen && sed -i 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen && update-locale
- Download installer file
wget https://raw.githubusercontent.com/hestiacp/hestiacp/master/install/hst-install.sh
- Run the installer
bash hst-install.sh --nginx yes --apache yes --phpfpm no --multiphp yes --named yes --vsftpd yes --proftpd no --iptables yes --fail2ban yes --quota no --exim yes --dovecot yes --spamassassin no --clamav no --mysql yes --postgresql no --interactive yes --hostname [HOSTNAME HERE] --email [EMAIL HERE] --password [PASSWORD HERE] --port [PORT HERE] --api yes
During installation
WARNING: The following packages are already installed
exim4*It is highly recommended that you remove them before proceeding.
To which a said Yes.
Then:
The following server components will be installed on your system:
- NGINX Web / Proxy Server
- Apache Web Server (as backend)
- PHP-FPM Application Server
- Multi-PHP Environment
- Bind DNS Server
- Exim Mail Server
- Dovecot POP3/IMAP Server
- MariaDB Database Server
- Vsftpd FTP Server
- Firewall (Iptables) + Fail2Ban Access Monitor
====================================================================
Would you like to continue with the installation? [Y/N]: y
Yes to continue.
The last message:
(!) IMPORTANT: You must logout or restart the server before continuing.
Do you want to logout now? [Y/N] y
Yes to logout and then reboot
to reboot the server.
Issues during installation
Below I am quoting only the parts that seem to have issues.
() Configuring Apache Web Server…
hst-install-debian.sh: line 1204: /usr/local/hestia/bin/v-add-web-php: No such file or directory
hst-install-debian.sh: line 1204: /usr/local/hestia/bin/v-add-web-php: No such file or directory
hst-install-debian.sh: line 1204: /usr/local/hestia/bin/v-add-web-php: No such file or directory
hst-install-debian.sh: line 1204: /usr/local/hestia/bin/v-add-web-php: No such file or directory
hst-install-debian.sh: line 1204: /usr/local/hestia/bin/v-add-web-php: No such file or directory
() Configuring PHP-FPM…
hst-install-debian.sh: line 1210: /usr/local/hestia/bin/v-add-web-php: No such file or directory
(*) Configuring fail2ban access monitor…
cat: /usr/local/hestia/data/templates/web/apache2/php-fpm/default.tpl: No such file or directory
hst-install-debian.sh: line 1763: /usr/local/hestia/bin/v-change-sys-theme: No such file or directory
Installation log file here Reading package lists...Building dependency tree...Reading state information - Pastebin.com
I think the problem might be related to –multiphp installation option. Any ideas what is going on and how to fix it?