Ubuntu 24.04, LEMP, Wordpress. Nach der Installation und Einrichtung von WordPress erhalte ich die Meldung „Fehler beim MySql

MySQL DBMS-Forum
Anonymous
 Ubuntu 24.04, LEMP, Wordpress. Nach der Installation und Einrichtung von WordPress erhalte ich die Meldung „Fehler beim

Post by Anonymous »

Nachdem ich gefühlt alles ausprobiert und in den letzten Wochen 20 Mal VPS gelöscht/erstellt habe, brauche ich etwas Hilfe
Problem: Nach der Installation/Einrichtung von WordPress erhalte ich „Fehler beim Herstellen einer Datenbankverbindung“
Mein Setup:
Ubuntu 24.04, Nginx 1.28.0, PHP 8.4 / PHP-fpm, Mysql 8.4, Wordpress 6.9, http/3, ufw, fail2ban
Berechtigungen, Besitzer, hinzugefügter Nginx-Benutzer (www-data zum Besitzer der Websitefiles-Gruppe)
/var/www/html/wpfiles
sudo chown -R myuser:myuser /var/www/html/wpfiles
sudo chmod -R u=rwX,g=rX,o= /var/www/html/wpfiles
sudo usermod -a -G myuser www-data
Änderungen, die ich in www.conf vorgenommen habe
/etc/php/8.4/fpm/pool.d/www.conf

Code: Select all

user myuser

group myuser

listen.owner myuser

listen.group myuser
Protokolle
/var/log/nginx/error.log

Code: Select all

2026/01/10 14:23:10 \[error\] 19910#19910: \*121 directory index of "/var/www/html/" is forbidden, client: xxx.xxx.xxx.xxx, server: mydomainname, request: "GET / HTTP/1.1", host: "mydomainname"

2026/01/10 14:23:12 \[error\] 19910#19910: \*122 directory index of "/var/www/html/" is forbidden, client: xxx.xxx.xxx.xxx, server: mydomainname, request: "GET / HTTP/1.1", host: "mydomainname"

2026/01/10 14:24:08 \[error\] 19910#19910: \*139 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/mydomainname/public/wp-includes/functions.php on line 6344" while reading response header\>

2026/01/10 14:24:09 \[error\] 19910#19910: \*141 FastCGI sent in stderr: "PHP message: PHP Warning:  Undefined array key "HTTP_HOST" in /var/www/html/mydomainname/public/wp-includes/functions.php on line 6344; PHP message: PHP Warning:  Un\>
/var/log/mysql/error.log

Code: Select all

2026-01-11T13:21:29.456623Z 1 \[System\] \[MY-013577\] \[InnoDB\] InnoDB initialization has ended.

2026-01-11T13:21:29.579362Z 0 \[Warning\] \[MY-010068\] \[Server\] CA certificate ca.pem is self signed.

2026-01-11T13:21:29.579385Z 0 \[System\] \[MY-013602\] \[Server\] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.

2026-01-11T13:21:29.597484Z 0 \[System\] \[MY-011323\] \[Server\] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock
/var/log/php8.4-fpm.log

Code: Select all

\[11-Jan-2026 13:21:28\] NOTICE: fpm is running, pid 809

\[11-Jan-2026 13:21:28\] NOTICE: ready to handle connections

\[11-Jan-2026 13:21:28\] NOTICE: systemd monitor interval set to 10000ms
Welche Informationen benötigen Sie, um mir den richtigen Weg zu weisen?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post