Migrating a Laravel site

Discussion in 'General' started by Turgut Kalfaoglu, Jan 5, 2025.

  1. Turgut Kalfaoglu

    Turgut Kalfaoglu Member HowtoForge Supporter

    I have a large Laravel site at a PLESK server that I attempted moving yesterday.
    It just will not run - I did the usual stuff -- used the migration tool, changed the database and paths configuration at the site's config/database.php.
    The site gives an error 500, complaining that it cannot find a variable that's defined in the bootstrap/cache/config.php, osconfig.json, and in other places in resources/views/backend/ files.
    This is odd because I copied it identically yet it doesn't work. Is there any special trick to get Laravel apps to work at the destination server?
    Many thanks, -t
     
  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    This had been discussed and resolved several times which concluded that one needs to use directives tab to change document root for that site, so please search on this.
     
    Last edited: Jan 6, 2025
    Turgut Kalfaoglu likes this.

Share This Page