how to deploy laravel 10 to namecheap

William
Jun 19, 2021
  1. open your cpanel
  2. select php version to 7.4
  3. open domain, add /public to your web root path
  4. turn on ssh
  5. login ssh on your terminal
  6. open your web root folder on terminal
  7. set storage to 777
  8. run “composer install”
  9. run “php artisan key:generate”
  10. run “composer install”
  11. Done

With Database

  1. set up db, user, access right on cpanel
  2. edit .env
  3. run “php artisan migrate”
  4. if show “unique key is too long, even if specified”, please refer:
    https://stackoverflow.com/questions/23786359/laravel-migration-unique-key-is-too-long-even-if-specified
  5. Done

Uncheck opcache on “Select PHP Version”

Please Uncheck “opcache” on “Select PHP Version”

--

--