Domů | Blogy | Blog uživatele kamilhlavka

Debian 11

apt install mc





PermitRootLogin without-password
PermitRootLogin yes


mysq phpadmin


ip addr
apt install mc
apt update
apt install snapd
snap install core
snap refresh core
snap install --classic certbot
ln -s /snap/bin/certbot /usr/bin/certbot
apt install mysql-server
apt update
apt upgrade
install wget
apt install wget
apt install ./mysql-apt-config_0.8.22-1_all.deb
apt update
install mysql-server
apt install mysql-server
apt -y install php php-common
apt -y install php-cli php-fpm php-json php-pdo php-mysql php-zip php-gd  php-mbstring php-curl php-xml php-pear php-bcmath
apt -y install libapache2-mod-php
php -v
a2enmod php7.*
systemctl restart apache2
apt install php5-mcrypt
apt install mcrypt
apt -y install mcrypt
apt install php7-mcrypt
/etc/init.d/apache2 restart
php7enmod mcrypt
php -m | grep mcrypt
apt install php-dev libmcrypt-dev php-pea
/etc/init.d/apache2 restart
apt-get install php-dev libmcrypt-dev gcc make autoconf libc-dev pkg-config
apt install php7.4-mcrypt
apt install php7.0-mcrypt
pecl install mcrypt-1.0.1
echo "" | sudo tee -a /etc/php/7.4/apache2/conf.d/mcrypt.ini
echo "" | tee -a /etc/php/7.4/apache2/conf.d/mcrypt.ini
/etc/init.d/apache2 restart
php -m | grep mcrypt
/etc/init.d/apache2 restart
apt install intl
apt install php-intl
/etc/init.d/apache2 restart
a2enmod rewrite
/etc/init.d/apache2 restart


Saving debug log to /var/log/letsencrypt/letsencrypt.log
Please enter the domain name(s) you would like on your certificate (comma and/or
space separated) (Enter 'c' to cancel):
Requesting a certificate for

Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/
Key is saved at:         /etc/letsencrypt/live/
This certificate expires on 2023-01-30.
These files will be updated when the certificate renews.
Certbot has set up a scheduled task to automatically renew this certificate in the background.

Deploying certificate
Successfully deployed certificate for to /etc/apache2/sites-available/000-default-le-ssl.conf
Congratulations! You have successfully enabled HTTPS on

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
 * Donating to ISRG / Let's Encrypt:
 * Donating to EFF: