Moving Laravel 5.6 from local machine to live server/cPanel

You are here:
Estimated reading time: < 1 min
  1. Zip your laravel app files.
    Laravel default installation has over 6000 files, it’s recommended that you zip your files
    then unzip it in your Cpanel Web Explorer.
  2. Export your app’s database then set it up on your server.
  3. After you have uploaded your laravel app files, open the .env file found in the root
    directory of your laravel app.
    Update the database credentials and the APP_URL.
  4. Open your .htaccess file, then add the following line just below:
  5. <IfModule mode_rewrite.c>
    Option +FollowSymLinks
    RewriteEngine on
    RewriteCond %{REQUEST_URI} !^public
    RewriteRule ^(.*)$ public/$1 [L]
    </IfModule>
  6. That’s it!, now check your live site.
  7. If you are getting 403 Forbidden Access or 500 Internal Server message, try changing
    the permissions of your storage folder found on the root directory of your laravel app.
    Set the permission to 0777.
  8. If you are still having issues, contact your hosting.
Was this article helpful?
Dislike 0

Author

Joshua

Web Hosting Geek Technical Support Staff G Online Sites