I
I
Ivan Ivanov2018-12-08 13:53:58
Composer
Ivan Ivanov, 2018-12-08 13:53:58

What user should I run composer as?

There is a debian server with VestaCP. I installed composer under root according to the instructions on the site. Now I'm doing

php composer.phar -V
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer version 1.8.0 2018-12-03 10:31:16

If I try under admin, then
composer.phar -V
bash: composer.phar: command not found

How to be? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2018-12-08
@romalu

No need to install composer as root. Set from the user from which php is launched. Php then access these files

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question