: 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.