Ubuntu uses composer to install laravel

Source: Internet
Author: User
Ubuntu uses composer to install laravel 1. first install composer

(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 is not necessary. If needed, you can use this script to update Composer .)

Sudo composer. phar self-update
Mv composer. phar/usr/bin/composer

This step is required. Otherwise, the composer command cannot be used directly.

Go to the www Directory

Composer create-project laravel/laravel -- prefer-dist

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.