Support the ongoing development of Laravel.io →
Installation Configuration

Firstly, I have deployed a Laravel project from Windows to server by copying everything in my Laravel folder and upload them to server, after configuring .htaccess, it ran successfully.

And then, I added a new package named "dompdf" by using command line, and it ran successfully in my Windows local. But I don't know how to deploy this package to linux server. I have tried but it failed.

Do I have to install composer on the Linux server?

Do I need to re-install again on the Linux server?

Last updated 2 years ago.
0

Do I have to install composer on the Linux server? sure, you must run composer install on server rather than uploading your vendor directory.

Do I need to re-install again on the Linux server? You do need to install using composer.

0

Thank for your suggestion. But currently, I cannot have SSH access. Is there another way?

0

Are you sure that I have to do this? I do not need to install composer on Linux server or anything. And It ran successfully after I uploaded some new components in the folder vendor that the "dompdf" depends on.

0

Why not just uploading the files of dompdf like your own files? Should still work.

0

You could use something like:

https://www.deployhq.com/ http://beanstalkapp.com/

I've used both of them in the past, they're pretty handy

0

Yes it should work even if you upload the vendor folder, but is not the recommended approach, what you need to do is download composer on linux server and running composer install, if you don't have ssh access you could use a php shell like script that runs composer, eg. using shell_exec().

Last updated 10 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.