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

mitismirza's avatar

how to install laravel package on cpanel

hey guys.

i deployed my laravel project on cpanel shared hosting. and i'm still developing it and uploading my changes. but now i add a package to my project and upload my package and its dependencies in vendor also updated the composer.json , composer.lock.json and autoload.php in vendor but in config/app.php when i call the provider and alliases my whole site is down.

what do you think should i do instead of upload entire the project?

thanks.

0 likes
5 replies
Sergiu17's avatar

Hi, after updating the composer.json file, you need to run composer update

But, usually when you need a new package, you run

composer install vendor/package // 'vendor/package' - is a placeholder

and this command automatically updates composer.json file and installs the package

mitismirza's avatar

thanks , i know that but on cpanel , how can i do that?

musa11971's avatar
Level 2

@SERGIU17 - I think OP is unable to run system commands, as he indicates that he's using cPanel to manage his application.

@mitismirza - I know of no solution for your problem, but I'd really look into switching over to a VPS, or a simpler solution like Forge (which has a more similar experience to cPanel).

Deploying/updating your application is going to be a pain when you're unable to run system commands...

Sergiu17's avatar

@mitismirza @musa11971 The easiest way would be to download composer.phar file and place it into the root of the project, then ssh into your server, and run

php composer.phar install vendor/package
// or
php composer.phar update
1 like

Please or to participate in this conversation.