Closed KHerzberg closed 3 years ago
/contao/install
is a route, not a physical folder. You need to make sure that your Apache is configured to process .htaccess
files (AllowOverride All
), so that the .htaccess
provided by Contao is taken into account and thus the request gets processed by PHP.
You are of course right, /contao/install should not be a directory. However, /contao/ should be a directory, right? This will not be created. Even if you mean a symbolic link with route, it does not exist. See the following image, which is the directory after Contao manager created the folders.
Also Apache is already configured so that it should execute the .htaccess of Contao. For this I attach the apache2.conf (extended by .txt because of github). apache2.conf.txt Instead of /var/www by
<Directory /var/www>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>
I had also tried /var/www/html, /var/www/html, /var/www/html/web and /var/www/contao-manager also in combinations to each other but without success.
You are of course right, /contao/install should not be a directory. However, /contao/ should be a directory, right?
No, that's also a route.
Even if you mean a symbolic link with route, it does not exist.
No, that's not what a route is. A "route" in this context refers to an URL path that is handled by a controller within the application.
Also Apache is already configured so that it should execute the .htaccess of Contao.
Try opening https://example.com/app.php/contao/install instead of https://example.com/contao/install
Ah, it's running. Thanks
If it works with app.php
then it means the .htaccess
is not taken into account.
Yes, you should also enable the RewriteEngine and not just install it.
As root a2enmod rewrite && a2enmod actions && systemctl restart apache2
.
Three simple commands and it runs.
mysql Ver 8.0.23-0ubuntu0.20.04.1 for Linux on x86_64 ((Ubuntu))
. Den Rest zeige ich euch nun in Form von Bildern und Konsolen-Ausgabe:Klicke ich nun auf
Datenbank aktualisieren
kommt der oben beschriebene Fehler