Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

minhankyaw's avatar

upload laravel project to cPanel and connect with phpmyadmin

Can anyone show me simple to upload laravel project and connect with phpmyadmin. I already try many way but still doesn't work . I have cPanel host. Help me plz.

0 likes
2 replies
nlagdhir's avatar

here are steps to upload projects in cpanel

  1. upload your project.zip file to cpanel directory where your wanted to upload.
  2. extract project there
  3. create database and user from cpanel
  4. add your database and user details in your .env file
  5. select your domain root as xyz.com/public
1 like
sherwinmdev's avatar

@minhankyaw if you must use a shared host, check out this article https://medium.com/laravel-news/the-simple-guide-to-deploy-laravel-5-application-on-shared-hosting-1a8d0aee923e

i don't have much experience with it but i did a quick google and that's what i came up with. be very careful. it can expose certain files if you put the entire project in public_html or www such as your env file.

i see many posts regarding this and i'm not sure why. but you're a dev. get your hands dirty and learn a bit of server infrastructure. learn how to fire up a VPS. if not, use laravel forge - it'll save you time and headache. it cost more money but sometimes you gotta spend money to make money. just my opinion.

1 like

Please or to participate in this conversation.