Skip to content

Instantly share code, notes, and snippets.

@marcosarce
Last active August 29, 2015 14:25
Show Gist options
  • Save marcosarce/d17b810ba973c78f09cf to your computer and use it in GitHub Desktop.
Save marcosarce/d17b810ba973c78f09cf to your computer and use it in GitHub Desktop.
Laravel 5 install and public_html directory setup for cPanel account
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