Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How I can install and configure an existing Laravel Project? (Laravel 4)

I need to install and configure an existing Laravel 4 project.

I tried to do, but when I ran composer update or composer install a lot of issues appear.

I have the database too (with data) so I ran the migration but doesn't work because the console show me an issue about the "table doesn't exist".

Can anyone tell me the complete process to configure the App?.

I mean, what its first, second and so and so because maybe in some step I made a mistake

like image 683
Carlos Orellana Avatar asked Mar 16 '15 17:03

Carlos Orellana


People also ask

What is the best way to install Laravel?

Install Laravel Make sure to place the ~/. composer/vendor/bin directory in your PATH so the laravel executable is found when you run the laravel command in your terminal. Once installed, the simple laravel new command will create a fresh Laravel installation in the directory you specify.


2 Answers

To install and configure an existing project, you'd typically

  1. Check out its source code

  2. Run composer install

  3. Run php artisan migrate

  4. Check the README for specific instructions on installing 3rd party assets, or any additional steps you'd need to take

If the above creates errors, its either because of something in your environment (installing over an old project?) or some problem with the way the Laravel developer created their project.

like image 103
Alan Storm Avatar answered Sep 30 '22 06:09

Alan Storm


To install and configure an existing project, you'd typically check those things first :

  1. You should goto app/config/database.php check file and verify username and password.
  2. After check in Project Folder vendor folder and composer.json file exist then remove it (that remove old configuration now we going to fresh configuration).
  3. Then after back to command prompt and fire command composer update and that download some dependent file download.
  4. Now Run php artisan serve

that tricks work for me last time when I migrate another host.

like image 34
Divyesh Kanzariya Avatar answered Sep 30 '22 05:09

Divyesh Kanzariya