Neuinstallation: The requested URL was not found on this server

Hallo, habe meinen Shop neu installiert mit Demodaten.
(Community 6.0.2)
Startseite: http://localhost:8888/oxid/source/
Die Adminseite geht auch.
Klicke ich auf Kiteboarding bekomme ich einen Fehler.
The requested URL /oxid/source/Kiteboarding/ was not found on this server.
Apache/2.4.29 (Ubuntu) Server at localhost Port 8888

mod_rewrite läuft nicht :wink:

Apache:
root@user-VirtualBox:/var/www/html/oxid/source#
a2enmod rewrite
Module rewrite already enabled

.htaccess

Options +FollowSymLinks
AllowOverride FileInfo
RewriteEngine On
RewriteBase /oxid/source

RewriteCond %{REQUEST_URI}     config\.inc\.php [NC]
RewriteRule ^config\.inc\.php  index\.php       [R=301,L]

drwxr-xr-x 2 root root 4096 Mai 31 09:56 .
drwxr-xr-x 8 root root 4096 Jun 1 14:50 …
lrwxrwxrwx 1 root root 35 Mai 31 09:56 000-default.conf -> …/sites-available/000-default.conf
root@user-VirtualBox:/var/www/html/oxid/source# cat /etc/apache2/sites-enabled/default
cat: /etc/apache2/sites-enabled/default: No such file or directory
root@user-VirtualBox:/var/www/html/oxid/source#

config.inc.php
$this->dbType = ‘pdo_mysql’;
$this->dbHost = ‘localhost’; // database host name
$this->dbPort = 3306; // tcp port to which the database is bound
$this->dbName = ‘oxid’; // database name
$this->dbUser = ‘root’; // database user name
$this->dbPwd = ‘password’; // database user password
$this->sShopURL = ‘http://localhost:8888/oxid/source’; // eShop base url, required
$this->sSSLShopURL = null; // eShop SSL url, optional
$this->sAdminSSLURL = null; // eShop Admin SSL url, optional
$this->sShopDir = ‘/var/www/html/oxid/source’;
$this->sCompileDir = ‘/var/www/html/oxid/source/tmp’;

Jetzt habe ich folgenden Eintrag gemacht und die URL geht.
root@user-VirtualBox:/etc/apache2# vim apache2.conf

<Directory /var/www/html/oxid/source/>
AllowOverride All
Require all granted

Danach den Server neu starten!
sudo /etc/init.d/apache2 restart

Ja, eine sehr hinterhältige Option: Das Apache-Modul an sich läuft, jedoch ist diese Einstellung per Default so gesetzt, dass mod_rewrite nicht funktionieren kann. Ich hatte das mal hier dokumentiert: https://marco-steinhaeuser.de/setting-up-oxid-eshop-on-lamp-system-linuxmint.html

Das stimmt!

Danke für Eure Unterstützung!

1 Like

Nach dem Umzug ist das mod_rewrite Modul noch rot. Die Verzeichnisrechte sind gesetzt. Die Änderungen in Apache, wie hier beschrieben sind gemacht. Das Rewrite Modul arbeitet korrekt lt. Test. Siehe Bildanhang.!

Oxid 4.10.7, MariaDB 10.3.11, PHP 7.0

Was willst du wissen? Und welcher Umzug? Am besten du machst dafür einen eigenen Thread auf.