CMS Installation · 7 min read · Dec 20, 2025
So installieren Sie Flatpress CMS mit Let's Encrypt SSL auf Ubuntu 22.04

FlatPress ist ein kostenloses und Open-Source-Content-Management-System und das schnellste seiner Art. Es ist in PHP geschrieben und ein großartiges Werkzeug für alle, die keinen Datenbankzugang haben. Es ist eine leichte, einfach einzurichtende Blogging-Engine und hervorragend in der Kategorie Soziale & Kommunikation. Es unterstützt mehrere Sprachen, Plugins, Themes, Widgets und vieles mehr.
In diesem Tutorial werde ich erklären, wie man FlatPress auf einem Ubuntu 22.04-Server installiert.
Anforderungen
- Ein Server, der Ubuntu 22.04 ausführt.
- Ein Nicht-Root-Benutzer mit Sudo-Rechten.
Apache und PHP installieren
Standardmäßig ist PHP 8.1 die Standard-PHP-Version in Ubuntu 22.04. Aber FlatPress unterstützt nur die PHP-Version 8.0. Daher müssen Sie das PHP-Repository zu Ihrem System hinzufügen. Sie können dies mit dem folgenden Befehl tun:
apt install software-properties-common -y
add-apt-repository ppa:ondrej/phpSobald das Repository hinzugefügt wurde, installieren Sie Apache, PHP und alle erforderlichen PHP-Erweiterungen, indem Sie den folgenden Befehl ausführen:
apt-get install apache2 php8.0 php8.0-mysql php8.0-curl php8.0-cgi libapache2-mod-php8.0 php8.0-mcrypt php8.0-xmlrpc php8.0-gd php8.0-mbstring php8.0 php8.0-common php8.0-xmlrpc php8.0-soap php8.0-xml php8.0-intl php8.0-cli php8.0-ldap php8.0-zip php8.0-readline php8.0-imap php8.0-tidy php8.0-sql php8.0-intl wget unzip -yNachdem Sie alle Pakete installiert haben, starten Sie den Apache-Dienst und aktivieren Sie ihn, damit er beim Booten gestartet wird, mit dem folgenden Befehl:
systemctl start apache2
systemctl enable apache2Sobald Sie fertig sind, können Sie mit dem nächsten Schritt fortfahren.
FlatPress installieren
Zuerst besuchen Sie das FlatPress-Git-Repository und laden die neueste Version mit dem folgenden Befehl herunter:
wget https://github.com/flatpressblog/flatpress/archive/1.2.1.zipAls nächstes entpacken Sie die heruntergeladene Datei mit dem folgenden Befehl:
unzip 1.2.1.zipKopieren Sie dann das extrahierte Verzeichnis in das Apache-Stammverzeichnis und geben Sie die richtigen Berechtigungen mit dem folgenden Befehl:
cp -r flatpress-1.2.1 /var/www/html/flatpresschown -R www-data.www-data /var/www/html/flatpress
chmod -R 775 /var/www/html/flatpressApache für FlatPress konfigurieren
Als nächstes müssen Sie eine Apache-virtuelle Hostdatei für FlatPress erstellen. Sie können dies mit dem folgenden Befehl tun:
nano /etc/apache2/sites-available/flatpress.confFügen Sie die folgenden Zeilen hinzu:
ServerAdmin [email protected]
DocumentRoot /var/www/html/flatpress
ServerName flatpress.example.com
AllowOverride All
Require all granted
ErrorLog ${APACHE_LOG_DIR}/flatpress_error.log
CustomLog ${APACHE_LOG_DIR}/flatpress_access.log combined
Speichern und schließen Sie die Datei. Aktivieren Sie dann den virtuellen Host mit dem folgenden Befehl:
a2ensite flatpressAktivieren Sie als nächstes das Apache-Rewrite-Modul und laden Sie den Apache-Dienst mit dem folgenden Befehl neu:
a2enmod rewrite
systemctl restart apache2Sie können auch den Apache-Status mit dem folgenden Befehl überprüfen:
systemctl status apache2Sie sollten die folgende Ausgabe sehen:
? apache2.service - Der Apache HTTP Server
Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2022-11-20 11:37:30 UTC; 6s ago
Docs: https://httpd.apache.org/docs/2.4/
Process: 100768 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS)
Main PID: 100772 (apache2)
Tasks: 6 (limit: 2242)
Memory: 14.3M
CPU: 85ms
CGroup: /system.slice/apache2.service
??100772 /usr/sbin/apache2 -k start
??100773 /usr/sbin/apache2 -k start
??100774 /usr/sbin/apache2 -k start
??100775 /usr/sbin/apache2 -k start
??100776 /usr/sbin/apache2 -k start
??100777 /usr/sbin/apache2 -k start
Nov 20 11:37:30 ubuntu2204 systemd[1]: Starting The Apache HTTP Server...
Sobald Sie fertig sind, können Sie mit dem nächsten Schritt fortfahren.
FlatPress mit Let’s Encrypt SSL sichern
Es ist eine gute Idee, Ihre FlatPress-Website mit einem Let’s Encrypt SSL-Zertifikat zu sichern. Dazu müssen Sie den Certbot-Client in Ihrem System installieren. Certbot ist ein Client-Paket, das Ihnen hilft, SSL-Zertifikate auf Ihrer Website herunterzuladen und zu verwalten.
Sie können den Certbot mit dem folgenden Befehl installieren:
apt-get install certbot python3-certbot-apache -ySobald der Certbot-Client erfolgreich installiert wurde, führen Sie den folgenden Befehl aus, um das Let’s Encrypt SSL für Ihre Website zu installieren:
certbot --apache -d flatpress.example.comSie werden aufgefordert, Ihre gültige E-Mail-Adresse anzugeben und den Nutzungsbedingungen zuzustimmen, wie unten gezeigt:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator apache, Installer apache
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): [email protected]
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for flatpress.example.com
Enabled Apache rewrite module
Waiting for verification...
Cleaning up challenges
Created an SSL vhost at /etc/apache2/sites-available/flatpress-le-ssl.conf
Enabled Apache socache_shmcb module
Enabled Apache ssl module
Deploying Certificate to VirtualHost /etc/apache2/sites-available/flatpress-le-ssl.conf
Enabling available site: /etc/apache2/sites-available/flatpress-le-ssl.conf
Wählen Sie als Nächstes, ob Sie den HTTP-Verkehr auf HTTPS umleiten möchten oder Nginx so konfigurieren möchten, dass der gesamte Verkehr auf den sicheren HTTPS-Zugang umgeleitet wird, wie in der folgenden Ausgabe gezeigt:
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Geben Sie 2 ein und drücken Sie die Eingabetaste, um den Prozess zu starten. Sobald die Installation abgeschlossen ist, sollten Sie die folgende Ausgabe erhalten:
Enabled Apache rewrite module
Redirecting vhost in /etc/apache2/sites-enabled/flatpress.conf to ssl vhost in /etc/apache2/sites-available/flatpress-le-ssl.conf
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://flatpress.example.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=flatpress.example.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/flatpress.example.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/flatpress.example.com/privkey.pem
Your cert will expire on 2023-02-20. 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"
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le
An diesem Punkt ist Ihre FlatPress-Website mit Let’s Encrypt SSL gesichert. Sie können jetzt sicher auf Ihre Website zugreifen, indem Sie das HTTPS-Protokoll verwenden.
Zugriff auf FlatPress CMS
Öffnen Sie jetzt Ihren Webbrowser und geben Sie die URL https://flatpress.example.com. ein. Sie werden zur FlatPress-Installationsseite weitergeleitet:

Klicken Sie nun auf die Schaltfläche Weiter. Sie sollten die Seite zur Erstellung des Admin-Benutzers sehen:

Geben Sie hier Ihren Admin-Benutzernamen, Ihr Passwort, Ihre E-Mail-Adresse ein und klicken Sie auf die Schaltfläche Weiter. Sie sollten die folgende Seite sehen:

Klicken Sie auf die Schaltfläche Jetzt anmelden. Sie sollten die folgende Seite sehen:

Geben Sie Ihren Admin-Benutzernamen, Ihr Passwort ein und klicken Sie auf die Schaltfläche Anmelden. Sie sollten die folgende Seite sehen:

Fazit
Dieses Tutorial erklärte, wie man FlatPress mit Apache und Let’s Encrypt SSL auf Ubuntu 22.04 installiert. Sie können jetzt eine einfache und schnelle Website und einen Blog mit dem FlatPress CMS erstellen. Zögern Sie nicht, mich zu fragen, wenn Sie Fragen haben.
Erhalte neue Beiträge in deinem Posteingang.
Kein Spam. Jederzeit abmelden.