Ich kenne Ubuntu nicht aber ich hoffe, daß die Verzeichnisse und Dateien weitestgehend mit meinem OpenSUSE übereinstimmen.
Als erstes würde ich versuchsweise legolas in localhost umbenennen.
Dann würde ich mir in /var/log/apache2 die letzten Einträge der access_log und der error_log ansehen.
In /etc/apache2/sysconfig.d würde ich in der global.conf schauen was als ServerName eingetragen ist.
In der loadmodule.conf würde ich nachsehen ob ein Eintrag LoadModule php_module vorhanden ist, ebenso in der /etc/apache2/loadmodule_conf.
Falls die Einträge fehlen, müßten sie in der /etc/sysconfig/apache2 in der Spalte APACHE_MODULES= eingetragen werden. Das ist die Spalte unter # your settings.
Falls Einträge in der php.ini geändert werden müssen, sollte das in der /etc/php8/apache2/php.ini gemacht werden.
Ich hoffe daß diese Tips bei der Fehlersuche helfen.
Gruß gindi
Alles anzeigen
Unter Ubuntu sind die Pfade schon etwas anders.
Dort gibt es eine apache2.conf - wo der hostname "legolas" korrekt eingetragen ist.
Modul: Unter /etc/apache2/mod-enabled gibt es die Dateien php8.1.conf und php8.1.load
Die sehen inhaltlich für mich gut aus.
Auch in den logs konnte ich nichts sehen. Hänge sie hier mal an ...
error-log:
.............................................................................................................................
[Sat May 04 11:22:49.693738 2024] [ssl:warn] [pid 900] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 11:22:50.747305 2024] [ssl:warn] [pid 1196] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 11:22:50.776839 2024] [mpm_prefork:notice] [pid 1196] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sat May 04 11:22:50.776971 2024] [core:notice] [pid 1196] AH00094: Command line: '/usr/sbin/apache2'
[Sat May 04 14:49:45.040701 2024] [mpm_prefork:notice] [pid 1196] AH00170: caught SIGWINCH, shutting down gracefully
[Sat May 04 14:49:45.257876 2024] [ssl:warn] [pid 3797] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 14:49:45.357816 2024] [ssl:warn] [pid 3798] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 14:49:45.380989 2024] [mpm_prefork:notice] [pid 3798] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sat May 04 14:49:45.381124 2024] [core:notice] [pid 3798] AH00094: Command line: '/usr/sbin/apache2'
[Sat May 04 14:51:11.537987 2024] [mpm_prefork:notice] [pid 3798] AH00170: caught SIGWINCH, shutting down gracefully
[Sat May 04 14:51:11.773543 2024] [ssl:warn] [pid 3851] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 14:51:11.874938 2024] [ssl:warn] [pid 3852] AH01909: legolas:443:0 server certificate does NOT include an ID which matches the server name
[Sat May 04 14:51:11.898282 2024] [mpm_prefork:notice] [pid 3852] AH00163: Apache/2.4.52 (Ubuntu) OpenSSL/3.0.2 configured -- resuming normal operations
[Sat May 04 14:51:11.898407 2024] [core:notice] [pid 3852] AH00094: Command line: '/usr/sbin/apache2'
.............................................................................................................................
access.log
.............................................................................................................................
192.168.0.106 - - [04/May/2024:14:31:04 +0200] "GET / HTTP/1.1" 200 3460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/12 5.0"
192.168.0.106 - - [04/May/2024:14:31:04 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 200 3607 "http://legolas/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64;
rv:125.0) Gecko/20100101 Firefox/125.0"
192.168.0.106 - - [04/May/2024:14:31:04 +0200] "GET /favicon.ico HTTP/1.1" 404 485 "http://legolas/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) G
ecko/20100101 Firefox/125.0"
192.168.0.106 - - [04/May/2024:14:31:09 +0200] "GET /j5 HTTP/1.1" 301 554 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/1
25.0"
192.168.0.106 - - [04/May/2024:14:31:09 +0200] "GET /j5/ HTTP/1.1" 302 257 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/
125.0"
192.168.0.106 - - [04/May/2024:14:31:09 +0200] "GET /j5/installation/index.php HTTP/1.1" 500 21313 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0)
Gecko/20100101 Firefox/125.0"
192.168.0.106 - - [04/May/2024:14:50:15 +0200] "GET /j5/ HTTP/1.1" 302 258 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/
125.0"
192.168.0.106 - - [04/May/2024:14:50:15 +0200] "GET /j5/installation/index.php HTTP/1.1" 500 21313 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0)
Gecko/20100101 Firefox/125.0"
127.0.0.1 - - [04/May/2024:14:54:10 +0200] "GET / HTTP/1.1" 200 3460 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0"
127.0.0.1 - - [04/May/2024:14:54:11 +0200] "GET /icons/ubuntu-logo.png HTTP/1.1" 200 3607 "http://localhost/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv
:121.0) Gecko/20100101 Firefox/121.0"
127.0.0.1 - - [04/May/2024:14:54:11 +0200] "GET /favicon.ico HTTP/1.1" 404 487 "http://localhost/" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gec
ko/20100101 Firefox/121.0"
127.0.0.1 - - [04/May/2024:14:54:20 +0200] "GET /j5 HTTP/1.1" 301 560 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0
"
127.0.0.1 - - [04/May/2024:14:54:22 +0200] "GET /j5/ HTTP/1.1" 302 259 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.
0"
127.0.0.1 - - [04/May/2024:14:54:23 +0200] "GET /j5/installation/index.php HTTP/1.1" 500 21313 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gec
ko/20100101 Firefox/121.0"
.............................................................................................................................
j5-access.log
.............................................................................................................................
192.168.0.106 - - [04/May/2024:14:30:15 +0200] "GET / HTTP/1.1" 302 261 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125
.0"
192.168.0.106 - - [04/May/2024:14:30:17 +0200] "GET /installation/index.php HTTP/1.1" 500 21313 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:125.0) Ge
cko/20100101 Firefox/125.0"
192.168.0.106 - - [04/May/2024:14:30:18 +0200] "GET /favicon.ico HTTP/1.1" 404 492 "http://mylegolastest/installation/index.php" "Mozilla/5.0 (X11; Ubunt
u; Linux x86_64; rv:125.0) Gecko/20100101 Firefox/125.0"
.............................................................................................................................