Moving a Laravel project between computers

I am working on a laravel5 project on a computer, but now I want to continue working on another, but I donโ€™t know how :(

I use wampserver and the project is located in the www folder, this is the error I get when I try to open the project: "Internal server error

The server detected an internal error or incorrect configuration and could not complete your request "

+13
source share
5 answers

Your error message is very vague, so itโ€™s difficult to determine the cause. I assume that you just copied and pasted all the project files

Try the following:

  1. Make sure you copy all project files, including hidden ones (.env).
  2. Prepare the target computer, as in http://laravel.com/docs/
  3. Make sure you have all the necessary PHP extensions available in php.ini as described in the link requirements above. Also, keep an eye on your version of PHP!
  4. Install composer https://getcomposer.org/doc/00-intro.md
  5. After copying, go to the destination folder and run composer install .
  6. Run php artisan key: generate from the command line.

  7. Run php artisan cache: clean from command line

     http://php.net/manual/en/install.windows.commandline.php 
  8. Make sure your web server serves pages from the shared / project folder.

If laravel does not work, check the log file to see the reason

 your_project/storage/logs/laravel.log 
+23
source

Copy the project folder and go to terminal / cmd just run the following commands.

Create a database and place the same name in the .env file in the laravel project folder

 1.composer install 2.php artisan key:generate 3.php artisan cache:clear 4.php artisan migrate 

UPDATE: If you get

Oops, it seems like something went wrong

in app/config/app.php , set for debugging as true :

 'debug' => env('APP_DEBUG', true)' 

If you get an error message

No supported encrpyter found. The pedal and / or key length is invalid.

for some people, it worked to make cp .env.example .env before (2).

+16
source

fooobar.com/questions/994518 / ... Please follow the instructions below to solve your problems. All people forget about folder permissions.

0
source

After you answered as Ademord, you may need to update the WAMP file, XAMP or any other development stack you use. I had the same problem, plus the changes were not reflected in the interface. For example, new routes in web.php were not updated.

0
source

You also need to create a new repository link, since Laravel uses an absolute path in it.

 php artisan storage:link 
0
source

All Articles