Apache instalacja Pokaż
Instalacja certyfikatu SSL dla Apache z LetsEncrypt HTTP-01 Pokaż
PHP 7.3 instalacja Pokaż
Wiki » Debian konfiguracja usług »
apt -y update apt-get install -y apache2; \ a2enmod ssl; \ a2enmod rewrite; \ a2enmod cgi; \ service apache2 restart; \ mkdir -p /etc/gen/firewall/host\:`ip ad|grep inet|grep eth0|awk '{print $2}'|cut -d/ -f1`/80\:tcp\:http/; \ mkdir -p /etc/gen/firewall/host\:`ip ad|grep inet|grep eth0|awk '{print $2}'|cut -d/ -f1`/443\:tcp\:https/; \ /etc/init.d/ip_firewall restart;
Instalacja certyfikatu SSL dla Apache z LetsEncrypt HTTP-01 PokażUkryj
apt -y update; \ apt-get install -y certbot python3-certbot-apache; \ systemctl restart apache2; \ certbot -m webmaster@justnet.pl --agree-tos; \ systemctl restart apache2; # kiedyś było wymagane: #echo -e "<Directory /var/lib/letsencrypt/http_challenges/>\n\tOrder allow,deny\n\t\tallow from all\n\tRequire all granted\n</Directory>" > /etc/apache2/conf-available/lestencrypt.conf; \ #ln -s /etc/apache2/conf-available/lestencrypt.conf /etc/apache2/conf-enabled/lestencrypt.conf; \
apt -y update apt-get -y install -y php php-mysql libapache2-mod-php php-snmp php-imap php-gd \ php-imagick php-mbstring php-cli php-pspell php-mail php-cgi php-soap; \ service apache2 restart;