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

nhayder's avatar
Level 13

Deploying laravel on cpanel shared account failed - composer error

Hi,

i'm trying to deploy a laravel 5.8 app on shared hosting account running cpanel, i'm getting a composer error not sure how to fix it

// error found in account log file
[09-May-2019 12:25:07 UTC] PHP Warning:  require(/home/demo/vendor/composer/../../App/Helpers/activeAdminSidebar.php): failed to open stream: No such file or directory in /home/demo/vendor/composer/autoload_real.php on line 66

i made the helper file in /App/Helpers/activeAdminSidebar.php and its the files that is giving me the error,

any ideas on how to fix this error ???

0 likes
2 replies
Nasmed's avatar

Can you connect to the server using SSH?

Try composer install

To import your packages and create the vendor folder, along with the autoload script.

nhayder's avatar
Level 13

packages are already uploaded to the account ?im not sure why i need to install them again ???

can you explain please

Please or to participate in this conversation.