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.

Revisions

  1. marcosarce renamed this gist Jul 23, 2015. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. marcosarce created this gist Jul 23, 2015.
    13 changes: 13 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,13 @@
    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