Static Pages

Cover Image

TinyCP with Nginx, Debian 12


$ apt-get update --allow-releaseinfo-change -y
$ apt-get upgrade -y
$ apt-get install nano wget curl perl sudo -y
$ sudo apt --purge autoremove -y
$ sudo apt update && sudo apt upgrade -y
$ apt -y purge Apache2* bind* exim* ufw firewalld libapache2-mod-php*

$ sudo apt -y install php software-properties-common libmcrypt-dev libreadline-dev mcrypt
$ sudo apt -y install php-common php-mysql php-xml php-xmlrpc php-curl php-gd php-imagick php-cli php-fpm php-json php-imap 
$ sudo apt -y install php-mbstring php-opcache php-soap php-dev php-cgi php-zip php-intl php-bcmath php-pear
$ sudo apt -y install php8.2 php8.2-fpm php8.2-common php8.2-mysql php8.2-xml php8.2-xmlrpc php8.2-curl php8.2-gd php8.2-cli 
php8.2-dev php8.2-imap php8.2-mbstring php8.2-soap php8.2-zip

$ sudo apt install apt-transport-https dirmngr gnupg ca-certificates
$ sudo apt-key adv --fetch-keys http://repos.tinycp.com/debian/conf/gpg.key
$ sudo echo "deb http://repos.tinycp.com/debian all main" | sudo tee /etc/apt/sources.list.d/tinycp.list
$ sudo apt-get update
$ TINYCP_USER="admin" TINYCP_PASS="secretpass" TINYCP_PORT="55555" apt-get install tinycp
$ nano /etc/nginx/conf.d/whatever.conf    //In case you need rewrite for Nginx

$ curl -o setup-repos.sh https://raw.githubusercontent.com/webmin/webmin/master/setup-repos.sh
$ sh setup-repos.sh
$ apt -y install webmin --install-recommends
( change port: $ sudo nano -w /etc/webmin/miniserv.conf )