Ergebnis 1 bis 7 von 7

Thema: [solved] /contao/install returns 404 error under local installation in Ubuntu 20.04.

  1. #1
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    109
    Contao-Projekt unterstützen

    Support Contao

    Frage [solved] /contao/install returns 404 error under local installation in Ubuntu 20.04.

    Hi everyone,

    I want to install a dev environment on my Ubuntu 20.04 desktop. I've activated Apache2, php 7.4.3 and MySQL from official Ubuntu repos.

    I've created a first vhost to test Contao installation.
    1st. I must chmod 775 -R on my vhost directory for composer installation to work.
    2nd. Some composer dependencies asked for php > 7.4.7. I had to add a ppa to update to 7.4.30.
    2nd. At the end of installation, when clicking on "Update database", I got a 404 error : "url not found".

    What's wrong with my installation ?

    Thanks for help.
    Geändert von Charled (16.07.2022 um 08:07 Uhr)

  2. #2
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    35.517
    Partner-ID
    10107

    Standard

    Contao provides an .htaccess file in the document root which directs all requests to the index.php. In order for Apache to process .htaccess files you need the directive AllowOverride All in your VirtualHost. May be that is still missing?
    Geändert von Spooky (15.07.2022 um 12:53 Uhr)
    » sponsor me via GitHub or PayPal or Revolut

  3. #3
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    109
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Hi Spooky,

    Thanks for your answer.

    I just tried an install from scratch (Contao 4.9). But still the same error 404 when trying to reach myvhost/contao/install for updating database.

    If I compare with a fresh installation on my shared hosting, in /myvhosts/ :
    - the .htaccess is well in /var/vhosts/myvhost/web/
    - all directories and files created by contao-manager are owner:www-data (read write), group:www-data(access to files) other(acces to files) unless the /web directory I have created.
    - /config and /config/parameters.yml are missing.

    It seems like the installation didn't finish...
    Geändert von Charled (15.07.2022 um 21:45 Uhr)

  4. #4
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    35.517
    Partner-ID
    10107

    Standard

    No, everything is correct, that file will be created once you enter the database credentials in the Install Tool.

    Did you make sure that AllowOverride All is enabled for your VirtualHost?
    » sponsor me via GitHub or PayPal or Revolut

  5. #5
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    109
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Yes, AllowOverride All is enabled.

    Here is my vhost conf file :
    Code:
    <VirtualHost *:80>
      ServerAdmin jltest@free.fr
      DocumentRoot "/var/vhosts/terea.test/web"
      ServerName terea.test
      ServerAlias www.terea.test
      <Directory "/var/vhosts/terea.test">
        Options -Indexes +FollowSymlinks
        AllowOverride All
        Require all granted
      </Directory>
      ErrorLog "/var/log/apache2/error.terea.test.log"
      CustomLog "/var/log/apache2/access.terea.test.log" combined
    </VirtualHost>
    Geändert von Charled (15.07.2022 um 22:47 Uhr)

  6. #6
    Community-Moderator
    Wandelndes Contao-Lexikon
    Avatar von Spooky
    Registriert seit
    12.04.2012.
    Ort
    Scotland
    Beiträge
    35.517
    Partner-ID
    10107

    Standard

    Did you enable mod_rewrite and mod_alias in Apache?
    » sponsor me via GitHub or PayPal or Revolut

  7. #7
    Contao-Nutzer
    Registriert seit
    07.11.2012.
    Beiträge
    109
    Contao-Projekt unterstützen

    Support Contao

    HTML

    That's it ! mod_rewrite wasn't enabled. Thanks for your help.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •