Results 1 to 7 of 7

Thread: Move Contao via FTP

  1. #1
    User
    Join Date
    05-21-18.
    Posts
    122

    Default Move Contao via FTP

    I tried to move instalation via FTP but after moving to host error 500 is shown(drag and drop via filezilla). I saw that symlinks doesnt work (they are shown as folders)if filezilla or similar ftp programs are used. Logs are empty when trying to access page. Am i something doing wrong? How should files be moved to server via FTP? Thanks

  2. #2
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,112

    Default

    https://erdmann-freunde.de/logbuch/contao-4-4-umziehen/

    It's in German though, but you can translate it.
    Contao Community Moderator
    → Support options

  3. #3
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    485

    Default

    In short:

    Code:
    Copy DB
    Install C4
    
    Download and Upload (if available) of
      composer.json
      .env // APP_DEV_ACCESSKEY https://contao.ninja/contao-4-login-fuer-app_dev-php-setzen.html
      .htaccess
      favicon.ico
      files/
      templates/
      system\config\init.php
      system\config\localconfig.php
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  4. #4
    User
    Join Date
    05-21-18.
    Posts
    122

    Default

    Quote Originally Posted by Andreas View Post
    In short:

    Code:
    Copy DB
    Install C4
    
    Download and Upload (if available) of
      composer.json
      .env // APP_DEV_ACCESSKEY https://contao.ninja/contao-4-login-fuer-app_dev-php-setzen.html
      .htaccess
      favicon.ico
      files/
      templates/
      system\config\init.php
      system\config\localconfig.php

    Can you explan me what is this "contao ninja" part? Why to set user nad password for app_dev?

  5. #5
    Community-Moderator xchs's Avatar
    Join Date
    06-19-09.
    Posts
    1,112

    Default

    The dev mode is protected by a username and a password. Thus, you have to set these credentials either with the Contao Manager (for Contao > 4.5) or by running the following command line:

    Code:
    vendor/bin/contao-console contao:install-web-dir --user=rawelja --password
    Contao Community Moderator
    → Support options

  6. #6
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    485

    Default

    ... or by creating an .env file manually.
    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

  7. #7
    User
    Join Date
    06-19-09.
    Posts
    326

    Default

    Quote Originally Posted by rawelja View Post
    I tried to move instalation via FTP but after moving to host error 500 is shown(drag and drop via filezilla). I saw that symlinks doesnt work (they are shown as folders)if filezilla or similar ftp programs are used. Logs are empty when trying to access page. Am i something doing wrong? How should files be moved to server via FTP? Thanks
    (please be sure to have a backup somewhere before following these steps)

    - run the contao install (i.e. http://example.com/contao/install)
    - the installer will warn you that some folders are not symlinks
    - delete those folders
    - delete /var/cache/prod
    - delete /var/cache/env
    - run the contao install again
    Consulenza Contao CMS https://www.intco.it

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •