With this easy trick you can install your dependencies.
First of all download p0wny-shell and upload it to your web hosting root. All the commands must be sent using this webshell
Then download the latest composer.phar from Composer website via wget
$ wget https://getcomposer.org/composer.phar
In order to install the dependencies of the package you are trying to build you have to run composer via PHP. Simply run the following commands.
First of all move composer into the library directory and get in
$ mv ./composer.phar /path/to/lib/ $ cd /path/to/lib/
Composer needs an home path to run. Let’s export it and run our script:
$ export COMPOSER_HOME=/home/myuser && php ./composer.phar
If you are not sure of your username (“myuser”) run the following command:
If your php binary isn’t linked in the standard path, you can try to locate it in the root of the system or in other paths or try to run:
$ locate php
In my case, due to my web hosting configuration, I had to run all the commands exporting always the COMPOSER_HOME env variable.
Obviously remember to REMOVE THE WEB SHELL at the end of installation…security first!
Hope this will help.
This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.