C
C
choodo2017-07-23 21:33:25
PHP
choodo, 2017-07-23 21:33:25

Composer on shared hosting?

I configure on virtual hosting (from Timeweb) composer: alias composer='/usr/local/bin/php -d memory_limit=750M /home/l/xxxxx/composer.phar'. After I log in to ssh, the composer command is not found. What needs to be added to prevent this from happening?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Belousov, 2017-07-23
@flygrounder

Write the same in ~/.bashrc, as I understand it, you just entered it in the console, right?
nano ~/.bashrc
add this line
Ctrl+O Ctrl+X - save and exit
bash - start a new session
Now this alias will be determined on every start

S
Sanes, 2017-07-23
@Sanes

php composer.phar

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question