22

I have been working on a laravel5 project on a computer , but now I want to continue on an other, but don't know how :(

I'm using wampserver and the project is in the "www" folder, this is the error I'm getting when trying to open the project: " Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request"

C.elkhadir
  • 323
  • 1
  • 2
  • 5
  • after moving files to other computer, you need to use `composer update` – Sid Sep 21 '15 at 14:58
  • Use git to push or pull the code. How to setup git visit https://stackoverflow.com/questions/315911/git-for-beginners-the-definitive-practical-guide?answertab=votes#tab-top – Ranjan Chaurasia Dec 28 '17 at 13:33
  • WampServer or wampserver, it does not matter on windows. Windows is case insesitive, while other systems are case sensitive, that was - for me - a reason why a Laravel project worked on one server but not on an other. – PaulH Jun 02 '19 at 13:08

5 Answers5

34

Your error message is very vague, so it is hard to pinpoint the cause. I assume you just copy pasted all of the project files

Try these steps:

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

  7. Run php artisan cache:clear from command line

    http://php.net/manual/en/install.windows.commandline.php
    
  8. Make sure your webserver is serving pages from project/public folder.

If laravel is failing, check the log file to see the cause

your_project/storage/logs/laravel.log
Patrick Artner
  • 50,409
  • 9
  • 43
  • 69
LeChiffre
  • 596
  • 5
  • 7
23

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

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

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

UPDATE: If you're getting

Whoops, looks like something went wrong

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

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

If you're getting the error

No supported encrypter found. The cipher and/or key length are invalid

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

Two
  • 512
  • 4
  • 17
anand
  • 370
  • 2
  • 5
3

You would also have to create new storage link, because Laravel uses absolute path inside it.

php artisan storage:link
Max Sysoev
  • 33
  • 1
  • 4
0

https://stackoverflow.com/a/32722141/3982831 Please follow this to resolve your problems. All people forget about permissions on folders.

Community
  • 1
  • 1
0

After you have done as Ademord answer, you might need to use refresh to your WAMP, XAMP or any other development stack you are using. I had the same issue plus changes were not reflecting in the front end. For example new routes in the web.php were not updating.