1. Debian 12 chior.
Se instalează timeshift
apt update
apt install timeshift
Salvezi la diferite momente sistemul.
/usr/bin/timeshift
timeshift --create --comments "Primul backup" --tags D
wget http://software.virtualmin.com/gpl/scripts/install.sh
/bin/sh install.sh
timeshift --create --comments "Backup dup instalare Virtualmin" --tags D
timeshift --create --comments "Backup dupa configurare s156 virtual" --tags D
apt-get -y install apt-transport-https lsb-release ca-certificates curl && curl -sSL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-debian-php-$(lsb_release -sc).list' && apt-get update
apt-get install php5.6-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
apt-get install php7.3-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,curl,xml,zip}
for php in $(ls /etc/php); do sudo apt-get install -y "php$php-"{curl,intl}; done
Activezi FCGI mode in virtualmin. Lets encrypt se instalează singur.
Instalare script virtualmin (include si webmin):
wget http://software.virtualmin.com/gpl/scripts/install.sh
Debianul ăsta foloseste firewalld. Install-ul isi setează singur zonele.
//Se adauga in iptables linia
//Se reporneste iptables, se acceseaza cu https://...:10000
Se creaza seerverul virtual, se lasă sa se genereze certificatul pentru el cu Lets encrypt
Se bifeaza pentru serverul virual in configuratie MariaDB
Pentru php multiplu:
https://www.virtualmin.com/documentation/web/multiplephp/
noul debian - se adauga reposytory etc/apt/sources.list.d/php.list
apt-get install apt-transport-https lsb-release ca-certificates
wget -O /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg
#!/bin/sh
# To add this repository please do:
if [ "$(whoami)" != "root" ]; then
SUDO=sudo
fi
${SUDO} apt-get update
${SUDO} apt-get -y install lsb-release ca-certificates curl
${SUDO} curl -sSLo /tmp/debsuryorg-archive-keyring.deb https://packages.sury.org/debsuryorg-archive-keyring.deb
${SUDO} dpkg -i /tmp/debsuryorg-archive-keyring.deb
${SUDO} sh -c 'echo "deb [signed-by=/usr/share/keyrings/deb.sury.org-php.gpg] https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
${SUDO} apt-get update
apt-get update
apt-get install php5.6 - cu sudo in fata
Installing on Debian
Enable sury/php repository
apt-get -y install apt-transport-https lsb-release ca-certificates curl && curl -sSL -o /etc/apt/trusted.gpg.d/php.gpg https://packages.sury.org/php/apt.gpg && sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/sury-debian-php-$(lsb_release -sc).list' && apt-get update
Install additional PHP packages
apt-get install php*-{cgi,cli,fpm,pdo,gd,mbstring,mysqlnd,opcache,xml,zip}
Note: php* should be replaced with a specific PHP version, i.e. php7.4, unless you really need to install all available additional PHP versions.
In Virtualmin - Server configuration - php options