A Laravel application.
- Install Composer https://getcomposer.org/download/
- Install Laravel 5.2 framework https://laravel.com/docs/5.2
- Install LAMP stack
- Run
php composer.phar install. - Run
cp .env.example .envand edit.envaccordingly. - Run
php artisan key:generate. - Check that the generated key is present in
.env. - Create the database
DB_DATABASE(as specified in.env) in MySQL. - Run
php artisan migrate. If you get an access denied error, runsudo php artisan migrate.
- Run
php artisan serve &. - Go to http://localhost:8000/.
- Add role_viewer and role_editor rights in users table.
- Add cron job entry
* * * * * php /path/to/artisan schedule:run >> /dev/null 2>&1to call Laravel scheduler every minute