404 - Page not found

Post Reply
roonix
Jr. Bludit
Posts: 4
Joined: Tue Oct 15, 2019 11:57 am

Hallo zusammen,
nach der Installation von Bludit auf einer Debian 10 Maschine mit PHP 7.3 bekomme ich nach der Installation einen 404 Server Error.

Hier meine bludit.conf:

Code: Select all

<VirtualHost *:80>
     ServerAdmin japasp@mailbox.org
     DocumentRoot /var/www/html/bludit/
     ServerName www.japasp.de
     #ServerAlias

     <Directory /var/www/html/bludit/>
          Options FollowSymlinks
          AllowOverride All
          Require all granted
     </Directory>

     ErrorLog ${APACHE_LOG_DIR}/error.log
     CustomLog ${APACHE_LOG_DIR}/access.log combined

     <Directory /var/www/html/bludit/>
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*) index.php [PT,L]
    </Directory>

</VirtualHost>
Ich rufe die Adresse aus dem Netzwerk des Servers mit 122.213.123.123/bludit/install.php auf. (IP ist hier fiktiv).
Nach der Installation, wenn ich auf Adminbereich klicken möchte, bekomme ich den 404 Fehler. Wenn ich wieder die Installation aufrufen möchte, bekomme ich gesagt dass sie erfolgreich war.
Und wenn ich die index.php aufrufen möchte, bekomme ich gesagt, dass die Seite nicht gefunden wird.

Ich hoffe ihr könnt mir weiterhelfen!

LG roonix
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Ist mod_rewrite aktiviert?

Ansonsten wäre der Error-Log hilfreich.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
roonix
Jr. Bludit
Posts: 4
Joined: Tue Oct 15, 2019 11:57 am

mod_rewrite ist aktiviert. Hier noch das log:

Code: Select all

root@vm03-wiki:~# less /var/log/apache2/error.log
[Tue Oct 15 10:40:33.466991 2019] [mpm_event:notice] [pid 1178:tid 139623826293888] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:40:33.467041 2019] [core:notice] [pid 1178:tid 139623826293888] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:42:36.513542 2019] [mpm_event:notice] [pid 1178:tid 139623826293888] AH00491: caught SIGTERM, shutting down
[Tue Oct 15 10:42:49.531036 2019] [mpm_event:notice] [pid 398:tid 140149201646720] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:42:49.531090 2019] [core:notice] [pid 398:tid 140149201646720] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:45:37.412100 2019] [mpm_event:notice] [pid 398:tid 140149201646720] AH00491: caught SIGTERM, shutting down
[Tue Oct 15 10:45:37.442346 2019] [mpm_event:notice] [pid 514:tid 140080020468864] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:45:37.442397 2019] [core:notice] [pid 514:tid 140080020468864] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:49:16.034632 2019] [mpm_event:notice] [pid 514:tid 140080020468864] AH00491: caught SIGTERM, shutting down
[Tue Oct 15 10:49:29.551772 2019] [mpm_event:notice] [pid 398:tid 140165189653632] AH00489: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:49:29.551823 2019] [core:notice] [pid 398:tid 140165189653632] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:54:41.300259 2019] [mpm_event:notice] [pid 398:tid 140165189653632] AH00491: caught SIGTERM, shutting down
[Tue Oct 15 10:54:41.329480 2019] [mpm_prefork:notice] [pid 7478] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:54:41.329526 2019] [core:notice] [pid 7478] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:54:41.546109 2019] [mpm_prefork:notice] [pid 7478] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 10:54:41.931426 2019] [mpm_prefork:notice] [pid 7533] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:54:41.931494 2019] [core:notice] [pid 7533] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 10:55:14.323312 2019] [mpm_prefork:notice] [pid 7533] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 10:55:14.360028 2019] [mpm_prefork:notice] [pid 7653] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 10:55:14.360056 2019] [core:notice] [pid 7653] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 11:04:44.160121 2019] [mpm_prefork:notice] [pid 7653] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 11:04:44.208610 2019] [mpm_prefork:notice] [pid 11278] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 11:04:44.208634 2019] [core:notice] [pid 11278] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 11:08:05.750023 2019] [mpm_prefork:notice] [pid 11278] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 11:08:05.800093 2019] [mpm_prefork:notice] [pid 11351] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 11:08:05.800120 2019] [core:notice] [pid 11351] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 11:19:07.180222 2019] [php7:notice] [pid 11410] [client 192.168.223.253:56365] [ERROR] Bludit is already installed ;)
[Tue Oct 15 11:42:28.706951 2019] [mpm_prefork:notice] [pid 11351] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 11:42:28.756950 2019] [mpm_prefork:notice] [pid 11587] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 11:42:28.756975 2019] [core:notice] [pid 11587] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 11:42:34.415422 2019] [core:error] [pid 11590] [client 192.168.223.253:57028] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Tue Oct 15 11:42:42.664581 2019] [core:error] [pid 11591] [client 192.168.223.253:57032] AH00124: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
[Tue Oct 15 11:44:17.712612 2019] [mpm_prefork:notice] [pid 11587] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 11:44:17.762442 2019] [mpm_prefork:notice] [pid 11605] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 11:44:17.762491 2019] [core:notice] [pid 11605] AH00094: Command line: '/usr/sbin/apache2'
[Tue Oct 15 11:44:20.787081 2019] [php7:notice] [pid 11610] [client 192.168.223.253:57071] [ERROR] Bludit is already installed ;)
[Tue Oct 15 11:55:12.952693 2019] [mpm_prefork:notice] [pid 11605] AH00169: caught SIGTERM, shutting down
[Tue Oct 15 11:55:13.002919 2019] [mpm_prefork:notice] [pid 11688] AH00163: Apache/2.4.38 (Debian) configured -- resuming normal operations
[Tue Oct 15 11:55:13.002958 2019] [core:notice] [pid 11688] AH00094: Command line: '/usr/sbin/apache2'
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Wo befindet sich bludit.conf?

Versuche es bitte einmal mit der unveränderten .htaccess von Bludit im Verzeichnis, in dem Bludit installiert ist.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
roonix
Jr. Bludit
Posts: 4
Joined: Tue Oct 15, 2019 11:57 am

die bludit.conf ist in /etc/apache2/sites-available und hat einen link in sites-enabled

Die .htaccess ist die Originale, hab ich nicht angefummelt.
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Woher kommt das:
roonix wrote: Tue Oct 15, 2019 12:02 pm

Code: Select all

     <Directory /var/www/html/bludit/>
            RewriteEngine on
            RewriteBase /
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^(.*) index.php [PT,L]
    </Directory>
Die <Directory>-Direktive enthält eine Art verkürzte .htaccess.
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
roonix
Jr. Bludit
Posts: 4
Joined: Tue Oct 15, 2019 11:57 am

Habe ich aus diesem Tutorial https://websiteforstudents.com/install- ... t-ssl-tls/

Auch wenn ich den Block in der bludit.conf auskommentiere, funktioniert es nicht
User avatar
Edi
Site Admin
Posts: 3121
Joined: Sun Aug 09, 2015 5:01 pm
Location: Zurich
Has thanked: 54 times
Been thanked: 77 times
Contact:

Was ist, wenn Du Bludit gemäss der Anleitung installierst, aber ohne .htaccess, die +/- in bludit.conf enthalten ist?
Clickwork - Websites mit Bludit | Planet Bludit - Tipps und Snippets
User avatar
Torsten_Kelsch
Legend Bludit
Posts: 263
Joined: Thu Aug 27, 2015 10:24 pm
Location: Germany
Has thanked: 4 times
Been thanked: 2 times
Contact:

Wenn du Konfigurations-Dateien in Apache-Verzeichnissen anlegst, musst du die auch in der apache2.conf angeben, damit sie überhaupt eingebunden werden. Ich würde es aber für einfacher halten, Verzeichnisse in den Standard-Dateien mit den Namen 000-default.conf anzugeben.
On Error GoTo Bed
Post Reply