Friday, August 9, 2024

Steps to install Laravel 11 project

 

Ubuntu 22.04, Apache

  • PHP >= 8.2
  • MySQL or other database server
  • Composer
  • NodeJS
  •  sudo apt-get install php8.2-mysql
     sudo apt-get install php8.2-xml
  •  sudo apt-get install php8.2-mbstring  
  • sudo apt-get install php8.2-curl

How to Install

  1. Clone the project
  2. Go to the project root directory and run composer install and npm install
  3. Create .env file and copy content from .env.example
  4. Run php artisan key:generate from terminal
  5. Change database information in .env
  6. Run migrations by executing php artisan migrate , Then Run php artisan db:seed if you want use faker database records,
  7. Start the project by running php artisan serve
  8. Run in another commandline npm run dev
 REFERENCES:
 
  1. https://github.com/YasserElgammal/blog-cms

php artisan storage:link

No comments:

Post a Comment