Ubuntu installs Laravel with composer

Source: Internet
Author: User

1. Install composer first

(The recommended path, not needed.)

cd /usr/local/bin

(install)

 sudo curl-s https:  //getcomposer.org/installer | sudo php   

(Add Execute permissions.)

sudo chmod a+x composer.phar

(This step isn't necessary.) If needed, you can use the this script to update Composer.)

sudo composer.phar self-update
mv  composer.phar /usr/bin/composer

要有这一步,否则不能直接使用composer命令

  进入到www目录   

composer create- project Laravel / laravel -- prefer- Dist  

Ubuntu installs Laravel with composer

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.