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

J-Guo's avatar
Level 2

How to deploy Laravel Project on Cpanel through Forge

I'm trying to deploy a Laravel Project on Cpanel through Laravel Forge but failed again and again. I also opened SSH connection on Cpanel and tried to install Laravel manually however it didn't work as well.

Is here anyone please can help me solve this problem?

0 likes
6 replies
jekinney's avatar

Never tried such a thing. Screw Cpannel I say.

1 like
J-Guo's avatar
Level 2

@jekinney Thank your reply. Does it mean I can only deploy Laravel Project on AWS , Digital Ocean and etc. except Cpanel? If I want to build project on Cpanel, I cannot use Laravel?

michaeldyrynda's avatar

You can use Laravel on cPanel, you likely won't be able to use Forge. Forge works via SSH, which most cPanel hosts have disabled for security. The assumed directory structure and configuration in cPanel is going to be vastly different to what Forge expects, as well.

If you really must use cPanel, you're going to have to do deployments largely manually, though I'd encourage you to move away from it.

1 like
J-Guo's avatar
Level 2

@deringer Many Thanks to your reply. If I must use cPanel, should I give up Laravel and user other framework or just pure PHP?

michaeldyrynda's avatar

You don't have to give up Laravel, no, but if you're going to use a modern framework, you should probably spend some time learning about hosting it in a modern environment. It's easier than you'd think.

1 like

Please or to participate in this conversation.