Home > Linux > FC23: Install Laravel

FC23: Install Laravel

Laravel suatu framework web development yang cukup populer. Berikut ini adalah langkah-langkah dalam instalasi laravel di fedora 23.

1. Install Composer

# dnf install composer

2. Install Laravel

$ composer global require "laravel/installer=~1.1"

3. Setting PATH, edit di /home/user/.bashrc (tambahkan)

COMPOSER_PATH=~/.config/composer/vendor/bin
PATH=$COMPOSER_PATH:$PATH
export PATH

4. Create sebuah Laravel Project (contoh di direktori web berikut)

$ laravel new /home/user/public_html/web

5. Setting Apache httpd berikut, kemudian restart Apache

<VirtualHost *:80>
    ServerAdmin eddys2007@yahoo.com
    DocumentRoot /home/user/public_html/web/public
    ServerName www.yellow-highlight.com
    <Directory /home/user/public_html/web/public>
       AllowOverride ALL
       <IfModule mod_rewrite.c>
          Options -MultiViews
          RewriteEngine On
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteRule ^ index.php [L]
       </IfModule>
    </Directory>
</VirtualHost>

6. Rubah permission untuk direktori storage

$ chmod -R 775 /home/user/public_html/web/storage
# chcon -R -t httpd_sys_rw_content_t storage

Woaaa, logo Laravel akan muncul…🙂

Categories: Linux
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: