MyVesta

$ sudo dpkg --configure -a
$ sudo nano /etc/hosts
$ sudo hostnamectl set-hostname new-one
$ newgrp
1 ========== Prerequisite===========================
$ apt-get update --allow-releaseinfo-change
$ apt-get install --reinstall ca-certificates
$ apt-get upgrade -y
$ apt-get install nano wget curl perl sudo -y

$ sudo apt dist-upgrade
$ sudo apt --purge autoremove
$ sudo apt update && sudo apt upgrade
$ apt -y purge Apache2* bind* exim* ufw* firewalld* libapache2-mod-php*
$ curl -O http://c.myvestacp.com/vst-install-debian.sh
$ sudo bash vst-install-debian.sh --apache no --nginx yes --phpfpm yes --vsftpd no --proftpd no --named no
--mysql yes --mysql8 no --postgresql no --exim no --dovecot no --clamav no --spamassassin no --iptables no
--fail2ban no --quota no --force no --interactive yes --port 8083 --hostname hostname.com --email
jangseo@hotmail.com --password PASSWORD --lang en

Change passwd:  $ passwd admin

Remove apps
$ sudo service nginx stop
$ apt-get purge remove exim4* exim4-base exim4-config exim4-daemon-light clamav* phpmyadmin* fail2ban bind9
$ sudo rm -rf /usr/share/phpmyadmin
$ sudo rm -rf /etc/phpMyAdmin
$ sudo rm -rf /etc/fail2ban /var/run/fail2ban /var/lib/fail2ban
$ sudo rm -r /var/log/exim4/
$ sudo rm -r /var/spool/exim4/
$ sudo rm -R /usr/share/roundcube
$ sudo rm -R /etc/roundcube
$ sudo service nginx restart
$ sudo apt-get autoremove && sudo apt-get autoclean

$ nano /usr/local/vesta/conf/vesta.conf
    FIREWALL_SYSTEM=''
    FIREWALL_EXTENSION=''
    DNS_SYSTEM=''
    MAIL_SYSTEM=''
$ service vesta restart

===========================================================
1. Remove Clamav
systemctl stop clamav-daemon.service
systemctl disable clamav-daemon.service
systemctl stop clamav-freshclam.service
systemctl disable clamav-freshclam.service
apt-get purge clamav* -y
sed -i "s/^CLAMD =/#CLAMD =/g" /etc/exim4/exim4.conf.template
systemctl restart exim4
sed -i "s/ANTIVIRUS.*/ANTIVIRUS_SYSTEM=''/g" /usr/local/vesta/conf/vesta.conf

2. remove phpmyadmin
sudo apt-get purge phpmyadmin*
sudo rm -rf /usr/share/phpmyadmin
sudo rm -rf /etc/phpMyAdmin
sudo apt-get autoremove && sudo apt-get autoclean
sudo service nginx restart
sudo service httpd restart

3. remove fail2ban
sudo systemctl stop fail2ban
sudo apt purge fail2ban
sudo rm -rf /etc/fail2ban /var/run/fail2ban /var/lib/fail2ban
sudo systemctl status fail2ban
nano /usr/local/vesta/conf/vesta.conf
    FIREWALL_SYSTEM=''
    FIREWALL_EXTENSION=''

4. remove bind
systemctl stop bind9
systemctl disable bind9
apt-get remove --purge bind9
nano /usr/local/vesta/conf/vesta.conf
  DNS_SYSTEM=''

5. remove exim
apt-get purge remove exim4 exim4-base exim4-config exim4-daemon-light
rm -r /var/log/exim4/
rm -r /var/spool/exim4/
nano /usr/local/vesta/conf/vesta.conf
    MAIL_SYSTEM=''

6. Remove Roundcube
sudo rm -R /usr/share/roundcube
sudo rm -R /etc/roundcube

service vesta restart

Softavulous

go to Vesta Server at top
domain->configure->Softaculous->yes
and then go to ssh;
$ curl -O http://c.myvestacp.com/tools/install-softaculous.sh
$ bash install-softaculous.sh
log out from the myVesta panel, and login again.



Posted : Sunday 14th of September 2025 @ 03:40 AM— Tags : mycestacp