install "minimized server" *** after install: *** # sudo -s *** on proxmox *** # apt-get install -y qemu-guest-agent && systemctl start qemu-guest-agent && systemctl enable qemu-guest-agent # apt-get -y update && apt-get -y upgrade # apt purge -y cloud-init && rm -rf /etc/cloud && apt purge -y unattended-upgrades && rm -rf /var/log/unattended-upgrades && apt autoremove -y # apt remove snapd -y && apt autoremove -y # systemctl disable snapd.service && systemctl disable snapd.socket && systemctl disable snapd.seeded.service && systemctl mask snapd.service && rm -rf /var/cache/snapd/ && apt autoremove --purge snapd -y && rm -rf ~/snap ### apt install -y netplan.io isc-dhcp-client mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales git # apt install -y mc net-tools iputils-ping inetutils-traceroute htop ca-certificates apt-utils aptitude locales git iproute2 # aptitude install console-cyrillic # dpkg-reconfigure locales select [392] ru_RU.UTF-8 UTF-8 # mv /etc/netplan/50-cloud-init.yaml /etc/netplan/00-installer-config.yaml # This is the network config written by 'subiquity' network: version: 2 ethernets: [NET_DEVICE_ID]: dhcp4: no addresses: - [IP]/24 nameservers: addresses: [IP_NAMESERVER] routes: - to: default via: [IP_GATEWAY] # chmod 600 /etc/netplan/00-installer-config.yaml # netplan try # netplan apply # systemctl restart systemd-networkd # reboot # sudo su - *** HESTIACP *** # wget https://raw.githubusercontent.com/hestiacp/hestiacp/release/install/hst-install.sh # bash hst-install.sh --lang 'ru' -username 'webmaster' --hostname '[HOSTNAME]' --email '[EMAIL]' --password '[PASSWORD]' --multiphp '8.2' --postgresql yes --dovecot no --clamav no --spamassassin no # reboot *** login as 'root' # usermod -aG sudo admin # apt-get install -y memcached php-memcached php8.2-memcached # v-change-user-package admin default # v-change-user-shell admin bash # v-add-database admin rfclass_pg rfclass_pg [DB_PASSWORD] pgsql localhost # v-add-database admin eis_pg eis_pg [DB_PASSWORD] pgsql localhost # v-add-domain admin [DOMAIN] *** relogin as 'admin' # cd /home/admin/web/[DOMAIN]/public_html/ # rm /home/admin/web/[DOMAIN]/public_html/index.html # rm /home/admin/web/[DOMAIN]/public_html/robots.txt # git clone https://git.kosenka.ru/kosenka/[DOMAIN].git . # php composer.phar install # sudo su - # v-change-web-domain-docroot admin [DOMAIN] [DOMAIN] /web # exit *** install odbc-driver ** Add the signature to trust the Microsoft repo ** For Ubuntu versions < 24.04 # curl https://packages.microsoft.com/keys/microsoft.asc | sudo tee /etc/apt/trusted.gpg.d/microsoft.asc ** For Ubuntu versions >= 24.04 ** curl https://packages.microsoft.com/keys/microsoft.asc | sudo gpg --dearmor -o /usr/share/keyrings/microsoft-prod.gpg ** Add repo to apt sources curl https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/prod.list | sudo tee /etc/apt/sources.list.d/mssql-release.list ** Install the driver # sudo apt-get update # sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 ** optional: for bcp and sqlcmd # sudo ACCEPT_EULA=Y apt-get install -y mssql-tools18 # echo 'export PATH="$PATH:/opt/mssql-tools18/bin"' >> ~/.bashrc # source ~/.bashrc ** optional: for unixODBC development headers sudo apt-get install -y unixodbc-dev # apt-get install -y php8.2-odbc *** copy archive *** *** restore database: admin_rfclass_pg # grep -Eo "PASSWORD='[a-zA-Z0-9]+'" /usr/local/hestia/conf/pgsql.conf | awk -F "PASSWORD=" '{print $2}' | awk -F "'" '{print $2}' # exit # cd /home/admin/web/[SITE]/public_html # php composer.phar install