TOC
Prerequisites
- Install Apache Web Server
www
group:apache
- restorecon -R
www
- Install MariaDB Relational Database Server
- 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.storage
permissions:775
group:apache
2.application key