me
christin
2018/05/10 @ Laravel

Install Laravel 5 on Fedora

Prerequisites

  1. Install Apache Web Server
    • wwwgroup:apache
    • restorecon -R www
  2. Install MariaDB Relational Database Server
  3. Install PHP

Installation

Install PHP Extensions

# Laravel required PHP extensions.
$ sudo dnf install php php-common php-cli php-pdo php-mbstring php-zip php-xml
# Restart Apache
$ sudo systemctl restart httpd

Install Composer

We will need composer to install laravel and it’s dependencies

$ curl -sS https://getcomposer.org/installer | php
$ sudo mv composer.phar /usr/local/bin/composer
$ chmod +x /usr/local/bin/composer
$ composer -V

Install laravel installer

$ composer global require "laravel/installer"
# Place the ~/.config/composer/vendor/bin directory in your PATH so the laravel
# executable can be located by your system.
$ echo 'export PATH="$PATH:$HOME/.config/composer/vendor/bin"' >> ~/.bashrc

Restart Terminal. Now you can create a laravel project with the commands

$ laravel new ProjectName

Setup

$ cd ProjectName
$ cp .env.example .env
$ nano .env

Edit the .env file with DB_* lines with the correct info

DB_HOST=localhost
DB_DATABASE=laravel_equals_winning
DB_USERNAME=Chur
DB_PASSWORD=Chur1

Serve

$ php artisan serve
# Laravel development server started on http://localhost:PORT/

More Problems

1.storagepermissions:775 group:apache 2.application key