DEV Community

joukhar
joukhar

Posted on

How to Deploy a Laravel Project to Namecheap Shared Hosting 🚀

Hey developers! Ready to take your Laravel project live on Namecheap Shared Hosting? Follow these steps:

  1. Prepare your Laravel project by removing unnecessary dependencies and setting file permissions.

  2. Compress your project into a zip archive.

  3. Access Namecheap cPanel and upload the zip file to the public_html directory.

  4. Create a new MySQL database and update the .env file with the database details.

  5. Run composer install to install dependencies.

  6. Generate a new application key and clear the cache using artisan commands.

  7. Update the url key in config/app.php to match your domain name.

  8. Test your deployment by visiting your domain.

For the full guide, check out builtbybuilder.com/blog/laravel-deployment-on-namecheap.

Happy coding! 🚀

Top comments (0)