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

tisuchi's avatar

Hosting Laravel project in CPanel

I have developed a small project with Laravel. Now I am planning to up this project in one of my folder of my existing hosting that is cPanel (Shared hosting in Bluehost). For example, my url will be example.com/laraproject. After uploading, its not working.

Any suggesting how to run my project in cPanel?

0 likes
4 replies
liamvictor's avatar

Cpanel normally has a public_html folder rather than a public. In your developed application you could change it to reflect upon the structure of your server.

You'll need to update .gitignore, and the server.php but everything else should just work as a path to the root public folder isn't declared.

The app / vendor etc etc all reside above the public_html.

Also see this approach http://www.hightechredneckwoman.com/2016/03/03/deploying-a-laravel-application/ by @hightechredneckwoman that you may find useful.

tisuchi's avatar

Thank you for your replay @liamvictor .

But the things is that, my project will be lost in one of the sub directory in my hosting. In that hosting, I hosted other projects developed by wordpress.

I am afraid, if I change the structure of my server, the rest of my project won't work... !

1 like

Please or to participate in this conversation.