Install laravel and composer on Debian 6

I want to use laravel, so firstly, I need to install the composer, I downloaded laravel to the "laravel" folder, now I go to the folder, and I do it

curl -sS https://getcomposer.org/installer | php 

according to the composer's site ...

So now, according to laravel, I have to do this

 composer create-project laravel/laravel 

but returns "composer command not found

When I finished installing the composer, I get this. Use it: php composer.phar

So, I will try php composer.phar create-project laravel/laravel

and it works, but it remains like Installing Dependencies (including inv-dev) for a long time.

My environment is Debian 6 and its cloud server, so the internet should not be a problem. Is it just that, any idea what I'm doing wrong? How to solve this problem and run it?

thanks

+6
source share
1 answer
 $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer # if you're installing as root or privileged account, don't leave the permissions on default 777 $ chmod 755 /usr/local/bin/composer $ composer install 
+12
source

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


All Articles