Install laravel51 on Cloud9

Source: Internet
Author: User
: This article describes how to install laravel51 on Cloud9. For more information about PHP tutorials, see. 1. First, create your own Cloud9 application workspace and select the php environment
2. delete the generated files,

rm README.md php.ini hello-world.php

3. install composer

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

4. move composer. phar to the bin directory for global use

sudo mv composer.phar /usr/local/bin/composer 

5. create a laravel project

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

6. move the child files of the generated laravel project to the previous directory, and then delete the generated laravel project files.

Shopt-s dotglob
Mv laravel/*./# laravel refers to the generation of all files in the laravel project and move them to the previous directory.
Rm-rf laravel # Delete the generated aravel project

7. specify public in apache in Cloud9

Sudo nano/etc/apache2/sites-enabled/001-cloud9.conf

// Change this lineDocumentRoot/home/ubuntu/workspace To the following format: // To followingDocumentRoot/home/ubuntu/workspace/public

Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.

The above describes how to install laravel51 on Cloud9, including some content. I hope that some friends who are interested in the PHP Tutorial can help me.

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.