Page 1 of 1

404 - Page not found

Posted: Tue Oct 15, 2019 12:02 pm
by roonix
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

Re: 404 - Page not found

Posted: Tue Oct 15, 2019 12:30 pm
by Edi
Ist mod_rewrite aktiviert?

Ansonsten wäre der Error-Log hilfreich.

Re: 404 - Page not found

Posted: Tue Oct 15, 2019 1:33 pm
by roonix
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'

Re: 404 - Page not found

Posted: Tue Oct 15, 2019 5:25 pm
by Edi
Wo befindet sich bludit.conf?

Versuche es bitte einmal mit der unveränderten .htaccess von Bludit im Verzeichnis, in dem Bludit installiert ist.

Re: 404 - Page not found

Posted: Tue Oct 15, 2019 5:33 pm
by roonix
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.

Re: 404 - Page not found

Posted: Tue Oct 15, 2019 11:33 pm
by Edi
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.

Re: 404 - Page not found

Posted: Wed Oct 16, 2019 9:16 am
by roonix
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

Re: 404 - Page not found

Posted: Thu Oct 17, 2019 9:16 pm
by Edi
Was ist, wenn Du Bludit gemäss der Anleitung installierst, aber ohne .htaccess, die +/- in bludit.conf enthalten ist?

Re: 404 - Page not found

Posted: Fri Nov 08, 2019 5:38 pm
by Torsten_Kelsch
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.