How to create startup under the suppliers directory for php rabbitmq

I am new to php and rabbitmq to debian (Linux). I installed xampp, rabbitmq, and also installed composer.phar in the project directory using the command

/opt/lampp/htdocs/rabbitmq_demo# curl -s https://getcomposer.org/installer | /opt/lampp/bin/php

Now I use Composer to install project dependencies using the following command

composer.phar install

but he made a mistake as shown below

bash: php: command not found

I preferred the link https://getcomposer.org/doc/00-intro.md

I want to prepare autoload.php. Please help me create autoload in the vendor directory.

+4
source share
2 answers

php cli, , $PATH. PHP $PATH.

composer.phar install . , composer.json. , `` vendor/autoload.php`. script, .

+1

PHP (CLI) XAMPP bash. ( , !)

XAMPP PHP CLI Debian /opt/lampp/bin/php

/opt/lampp/bin $PATH.

. , , PHP.

  • /etc/login.defs
  • / ../
  • / ../
  • ~/.bashrc

:

PATH=$PATH:/opt/lampp/bin

.

0

Source: https://habr.com/ru/post/1568599/


All Articles