Contao-Camp 2024
Ergebnis 1 bis 6 von 6

Thema: Installation with Contao Manager

  1. #1
    Contao-Nutzer
    Registriert seit
    04.11.2019.
    Beiträge
    3

    Beitrag Installation with Contao Manager

    Hello,

    I am trying to install Contao with the Contao Manager.
    Installation on localhost running Bitnami Wamp.
    This is a completely new installation

    The installation results:
    ERROR 500 Unknown installation status
    Some files were found on your server but no known Contao version could be detected.
    You must either manually repair your application or remove the following files and folders to install Contao:
    - 503.html
    - applications.html
    - bitnami.css
    - favicon.ico
    - img
    - index.html

    After deleting the files, the Contao Manager reports "ERROR 500 Unknown installation status"
    Thanks and regards

  2. #2
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    Hi Acmiron,
    welcome to the Contao forum!

    It looks like there are some files in the folder above /web, where you put the contao-manager.phar.php.
    Maybe these files were prepared by your hoster, so it was ok to delete them. But your first installation attempt left some files too. Perhaps it is easiest to just start from scratch again .

    BTW: the recommended directory structure is discussed here: https://community.contao.org/de/show...l=1#post513884

    In your case the document_root must point to
    <folder provided by hoster>/<yourProject>/web

    Put the conato-manager-phar.php in the /web folder.
    Since <yourProject> is initially empty, the installer will not complain.

  3. #3
    Contao-Nutzer
    Registriert seit
    04.11.2019.
    Beiträge
    3

    Beitrag Installation with Contao Manager

    Hey folkfreund,

    thanks for the information.

    Today I have deleted all the files and made other attempts to install Contao, without success.

    On localhost a directory was created named: G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu/web/contao-manager.phar.php
    Started Mozilla with address 127.0.0.1/testing.eu/web/contao-manager.phar.php and the installation starts as shown in the screenshot

    Contao_manager.JPG

    I did "Run Composer".

    A new windows appears with:
    Installing Composer dependencies …
    G:/bitnami/wampstack-7.2.22-0/php/php.exe -q G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu/web/contao-manager.phar.php composer install --prefer-dist --no-dev --no-progress --no-suggest --no-ansi --no-interaction --optimize-autoloader

    After about 45 minutes "canceled". Started a completely new fresh installation under G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/public_html/testing.eu/web/contao-manager.phar.php with the same result.

    I want to setup a website on localhost and after completion transfer it to my domain with either Akeeba or Putty.

    Regards

  4. #4
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    Ah, you are working locally on windows...

    I think you will have to setup a virtual host in your apache. This must point a virtual domain on the /web folder of your installation. So the URL of the contao-manager will not be 127.0.0.1/testing.eu/web/contao-manager.phar.php but
    testing.eu/contao-manager.phar.php

    I assume that you setup a vhost for local domain "testing.eu" similar to this:
    (Note: I do not use a Windows system, so maybe this is not totally correct.
    Please search the forum for "Windows XAMPP vhost" or just google for "apache2 vhost configuration" for more info.)
    Code:
    <VirtualHost *:80>
        # The ServerName directive sets the request scheme, hostname and port that
        # the server uses to identify itself. This is used when creating
        # redirection URLs. In the context of virtual hosts, the ServerName
        # specifies what hostname must appear in the request's Host: header to
        # match this virtual host. For the default virtual host (this file) this
        # value is not decisive as it is used as a last resort host regardless.
        # However, you must set it for any further virtual host explicitly.
        #ServerName www.example.com
    
        ServerAdmin you@home.de
        ServerName testing.eu
        ServerAlias www.testing.eu
        DocumentRoot G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu/web
    
        <Directory G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu/web/>
            AllowOverride All
            Order Allow,Deny
            Allow from All
    
            <IfModule mod_rewrite.c>
                Options -MultiViews
                RewriteEngine On
                RewriteCond %{REQUEST_FILENAME} !-f
                RewriteRule ^(.*)$ app.php [QSA,L]
            </IfModule>
        </Directory>
    
        # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
        # error, crit, alert, emerg.
        # It is also possible to configure the loglevel for particular
        # modules, e.g.
        #LogLevel info ssl:warn
    
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
    
        # For most configuration files from conf-available/, which are
        # enabled or disabled at a global level, it is possible to
        # include a line for only one particular virtual host. For example the
        # following line enables the CGI configuration for this host only
        # after it has been globally disabled with "a2disconf".
        #Include conf-available/serve-cgi-bin.conf
    </VirtualHost>

  5. #5
    Contao-Nutzer
    Registriert seit
    04.11.2019.
    Beiträge
    3

    Standard Installation with Contao Manager

    Did the following to install contao.

    In windows hosts:
    127.0.0.1 localhost # phpMyAdmin access to the Database MySQL
    127.0.0.1 testing.eu # Contao installation
    127.0.0.1 myjoom.eu # Joomla trial installation to check hosts are working

    In G:/Bitnami/wampstack-7.2.22-0/apache2/conf/httpd.conf added
    <VirtualHost *:81>
    ServerName testing.eu
    ServerAlias www.testing.eu
    DocumentRoot "G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu"
    </VirtualHost>
    <VirtualHost *:81>
    ServerName myjoom.eu
    ServerAlias www.myjoom.eu
    DocumentRoot "G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/myjoom.eu"
    </VirtualHost>


    created two directories, named testing.eu and myjoom.eu under
    G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu and thereunder the subdirectory /web
    In this directory contao-manager.phar was placed and renamed to contao-manager.phar.php

    The second directory is: G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/myjoom.eu

    Entered in Mozilla:
    127.0.0.1:81/web/contao-manager.phar.php --> URL not found
    127.0.0.1:81/testing.eu/web/contao-manager.phar.php --> It defaults to 127.0.0.1:81/contao-manager.phar.php --> URL not found
    Entered again 127.0.0.1:81/testing.eu/web/contao-manager.phar.php and the installation process starts up to Installing Dependencies and thereafter nothing happens.

    Also changed DocumentRoot to "G:/Bitnami/wampstack-7.2.22-0/apache2/htdocs/testing.eu/web" with the same result.

    In the second directory myjoom.eu Joomla is installed without problems. I can also install in another VirtualHost container an application.

    Something I am doing wrong but have no idea

    Regards

  6. #6
    Contao-Urgestein Avatar von folkfreund
    Registriert seit
    09.04.2010.
    Beiträge
    1.928

    Standard

    As I told you in my example above, for Contao it is essential that DocumentRoot points to the /web folder of your Contao installation! And you will need the section
    Code:
    AllowOverride All
    Order Allow,Deny
    Allow from All
    
    <IfModule mod_rewrite.c>
        Options -MultiViews
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ app.php [QSA,L]
    </IfModule>
    from my example for the routes to work properly.

    Contao 4 uses the Symphony framework, so maybe the requirements are different from those of Joomla.

    Another note: if you are using Windows, there might be issues with symbolic links required by Contao installation. Please search the forum for "symbolic links windows". I'm not familiar with this, sorry.

Aktive Benutzer

Aktive Benutzer

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

Lesezeichen

Lesezeichen

Berechtigungen

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