Dear All,

Help me :)

I have my drupal site on host

I have installed composer manager drupal module and I have activated it.
In status report section there is a message: "Composer's install command must be run to generate the autoloader and install the required packages.
Refer to the instructions on the Composer Manager project page for installing packages".

I read documentation but there is no example for hosting.
So I have installed module shell to give command Composer's install because I don't have ssh access to my hosting.

But I don't know in what way to do this on drupal shell because I run command but nothing happened!

thank you

Comments

jolly_pils created an issue. See original summary.

jolly_pils’s picture

Assigned: jolly_pils » Unassigned
bojanz’s picture

Status: Active » Fixed

You need shell access to run Composer on the server. Otherwise you'll need to run Composer locally and then commit/upload the result.

bojanz’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

ehowland’s picture

I am also on shared hosting, but I do have shell access.

I too am confused about the "Refer to the instructions on the Composer Manager project page for installing packages" I do not see any instructions for running composers install command on the linked page.

Does composer_manager actually contain composer or am I supposed to install composer someplace like sites/all/libraries? On the assumption that I need to install composer and following the links on the project page:

I did run the instructions on the top of
https://getcomposer.org/download/

I ran them in sites/all/libraries/composer but that does not seem to be what is needed. I am on dreamhost so I also had to reference (https://help.dreamhost.com/hc/en-us/articles/214899037-Installing-Compos...).

I ended up with a composer.phar file in sites/all/libraries/composer so I moved it to a folder in my home directory which I had named bin i.e. ~/bin/composer and then I made an 'alias composer="php ~/bin/composer.phar" ' in my alias - I guess I could have just changed my path.

Now typing "composer" at the command line works.

bojanz’s picture

This module does not install Composer for you, that's your responsibility (or your host's).
Glad you made it work.

n8thanael1900’s picture

Consider this article..
https://www.drupal.org/node/2405805

...don't forget to run the following command by going to sites/default/files/composer
composer install. This technique introduces the least amount of friction with existing workflows and is strongly recommended.

I agree that it was difficult to find.