Last active
August 29, 2015 14:25
-
-
Save marcosarce/d17b810ba973c78f09cf to your computer and use it in GitHub Desktop.
Laravel 5 install and public_html directory setup for cPanel account
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cd /home/<username> | |
| # install composer | |
| curl -sS https://getcomposer.org/installer | php -- --install-dir=bin --filename=composer | |
| # get laravel using composer | |
| php bin/composer create-project laravel/laravel --prefer-dist | |
| # remove cPanel user's default public_html directory | |
| rm -rf public_html | |
| # create a symlink to the laravel application's public directory | |
| sudo -u <username> ln -s laravel/public public_html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment