4 steps to get Laravel framework up and running…

  • Setup vhost entry- root directory need to point to public in my vhosts setting would be something link below:


<VirtualHost *:80>

# Admin email, Server Name (domain name) and any aliases

ServerAdmin [email protected]

ServerName xyz.com

ServerAlias www.xyz.com

ServerAlias qa.xyz.com

ServerAlias dev.xyz.com

ServerAlias local.xyz.com

# Index file and Document Root (where the public files are located)

DirectoryIndex index.php

DocumentRoot /var/www/vhosts/xya.com/htdocs/public

<Directory /var/www/vhosts/xyz.com/htdocs/public>

Options -Indexes ExecCGI FollowSymLinks

AllowOverride All


# Custom log file locations

LogLevel warn

ErrorLog /var/www/vhosts/xyz.com/logs/error.log

CustomLog /var/www/vhosts/xyz.com/logs/access.log combined



  • Change storage directory permission

[code]chmod -R 775 storage [/code]

  • Remove application.php key
  • Generate new key automatically!

[code]php artisan key:generate[/code]

  • Done!