Search found 928 matches

by myVesta
Mon Aug 14, 2023 1:35 pm
Forum: CLI
Topic: How to list all website domains and subdomains on server
Replies: 0
Views: 1358

How to list all website domains and subdomains on server

Code: Select all

for user in $(grep '@' /etc/passwd |cut -f1 -d:); do
    if [ ! -f "/usr/local/vesta/data/users/$user/user.conf" ]; then
        continue;
    fi
    for domain in $(/usr/local/vesta/bin/v-list-web-domains $user plain |cut -f 1); do
        echo $domain
    done
done
by myVesta
Wed Aug 09, 2023 4:58 pm
Forum: Update
Topic: Upgrade Debian 11 to 12
Replies: 5
Views: 5565

Upgrade Debian 11 to 12

# Get latest Debian 11 updates cp /etc/apt/sources.list /root/sources.list.bullseye-backup apt-get update apt-get -y upgrade apt-get -y dist-upgrade # Prepare for Debian 12 echo "deb http://deb.debian.org/debian bookworm main contrib non-free-firmware non-free" > /etc/apt/sources.list ech...
by myVesta
Wed Aug 09, 2023 10:48 am
Forum: General discussion
Topic: if i restore backup
Replies: 3
Views: 459

Re: if i restore backup

Restoring do what the name says - just restoring. Files will be overwritten, DB tables too - in case the backup HAS those files and tables. But, if the backup has no some new file/table - those files/tables would not be overwritten. So, if you need to ensure all data is deleted (before backup restor...
by myVesta
Mon Aug 07, 2023 11:21 pm
Forum: Installation
Topic: Debian 11 install error: /sbin/iptables-save: No such file or director
Replies: 1
Views: 997

Re: Debian 11 install error: /sbin/iptables-save: No such file or director

In line before, in the installer, add:

Code: Select all

ln -s /usr/sbin/iptables-save /sbin/iptables-save
We will see to fix it in the installer soon.
by myVesta
Mon Aug 07, 2023 3:20 pm
Forum: nginx templates
Topic: How to install rate-limit nginx templates
Replies: 10
Views: 55620

Re: How to install rate-limit nginx templates

Solution for different rate-limit for different IP addresses and optionally different folders: /etc/nginx/nginx.conf part should look like this: geo $limited_ip { default 0; 123.123.123.123/24 1; 234.234.234.234/24 2; } map $limited_ip $limited_ip_key0 { 0 $binary_remote_addr; 1 ''; 2 ''; } map $lim...
by myVesta
Sun Aug 06, 2023 6:12 pm
Forum: General discussion
Topic: New myVesta style only for debian 11?
Replies: 1
Views: 245

Re: New myVesta style only for debian 11?

Hi! I noticed my servers with Debian 11 all got the latest myVesta update with the new style (Love it, btw!), whereas my Debian 10 server didn't get the update. Is it only available to Debian 11? I tried manually updating in vesta dashboard > Updates, but can't seem to upgrade. See https://forum.my...
by myVesta
Sat Aug 05, 2023 10:52 pm
Forum: Update
Topic: Upgrade Debian 10 to 11
Replies: 0
Views: 4366

Upgrade Debian 10 to 11

# Get latest Debian 10 updates cp /etc/apt/sources.list /root/sources.list.buster-backup apt-get update apt-get -y upgrade apt-get -y dist-upgrade # Prepare for Debian 11 echo "deb http://deb.debian.org/debian bullseye main contrib non-free" > /etc/apt/sources.list echo "deb http://d...
by myVesta
Sat Jul 29, 2023 3:53 pm
Forum: Update
Topic: Upgrade Debian 8 to 9
Replies: 0
Views: 3315

Upgrade Debian 8 to 9

# Get latest Debian 8 updates mv /etc/apt/sources.list /root/sources.list.old-jessie-backup echo "deb http://deb.freexian.com/extended-lts jessie main contrib non-free" > /etc/apt/sources.list wget http://deb.freexian.com/extended-lts/archive-key.gpg -O /etc/apt/trusted.gpg.d/freexian-arc...
by myVesta
Fri Jul 21, 2023 4:17 pm
Forum: General discussion
Topic: Error establishing a database connection
Replies: 7
Views: 453

Re: Error establishing a database connection

Pretty hard... you need first to remove mysql8 totally, then to install mariadb as vst-installer-debian.sh would install it... then to rebuild all databases, and finally to import databases dump you made before deleting mysql8.