Benutzer-Werkzeuge

Webseiten-Werkzeuge


anwendungen:wordpress_unter_debian_installieren

Grundinstallation

apt update
apt upgrade -y
apt dist-upgrade -y
apt install -y vim-nox sudo screen python3 apache2 libapache2-mod-php php-mysql php-curl php-gd php-mbstring php-zip php-imagick

### SSL aktivieren und Certbot (Let´s Encrypt) installieren:

a2enmod ssl
systemctl restart apache2
apt install -y python3-certbot-apache

⇒ Fragen beantworten und Auswahl bestätigen

- Congratulations! Your certificate and chain have been saved at:

 /etc/letsencrypt/live/waidmannsruh.loxstedt.net/fullchain.pem
 Your key file has been saved at:
 /etc/letsencrypt/live/waidmannsruh.loxstedt.net/privkey.pem
 Your certificate will expire on 2022-02-01. To obtain a new or
 tweaked version of this certificate in the future, simply run
 certbot again with the "certonly" option. To non-interactively
 renew *all* of your certificates, run "certbot renew"
cd /var/www
wget https://de.wordpress.org/latest-de_DE.tar.gz 
tar -xzf latest-de_DE.tar.gz 
rm -r html
mv wordpress html
chown -R www-data html

DB-installieren

apt install mariadb-server
# mysql
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 44
Server version: 10.5.12-MariaDB-0+deb11u1 Debian 11

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]>
CREATE DATABASE wp;
GRANT ALL PRIVILEGES ON wp.* TO wpadmin@localhost IDENTIFIED BY 'sehrlang3spassw0rt';

Basiseinrichtung WP-Config

cd /var/www/html 
cp wp-config-sample.php wp-config.php
vim wp-config.php

Hier die Daten eintragen für die MySQL DB. Dann auch die Daten im Abschnitt Sicherheitsschlüssel ändern!!

Endeinrichtung

Webseite öffnen und die Installation online vervollständigen. In Plugins gehen und updaten, wo nötig.

anwendungen/wordpress_unter_debian_installieren.txt · Zuletzt geändert: 2021/11/05 17:48 von caba

Seiten-Werkzeuge