This is an old revision of the document!
$ sudo apt update $ sudo apt install apache2
$ sudo apt install software-properties-common ca-certificates lsb-release apt-transport-https gnupg $ sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list' $ wget -qO - https://packages.sury.org/php/apt.gpg | sudo apt-key add - $ sudo apt update $ sudo apt install php8.1 php8.1-mysql php8.1-sqlite3
$ sudo a2enmod rewrite $ sudo a2enmod ssl
/var/log/apache2
if you setup log files for the virtual hosts in sub folders$ sudo crontab -e 35 3 * * 6 certbot renew && /etc/init.d/apache2 restart
$ sudo apt update $ sudo apt install vim $ sudo apt install zip $ sudo apt install rename $ sudo apt install rsync
$ sudo update-alternatives --config editor