Menu

Manual Installation

Prerequisites

Installation

  • git clone https://github.com/fr0tt/benotes

    download files version-controlled

  • composer install

    install dependencies accordingly to your php version

  • cp .env.example .env

    copy configuration file

  • create a database
  • also edit DB_DATABASE , DB_USERNAME and DB_PASSWORD in .env file accordingly. If you use something else than MySQL you need to adjust DB_CONNECTION and most likely DB_PORT as well. DATABASE_URL is also supported if you want to you use that instead.

    in order to be able to connect to your database

DB_CONNECTION=mysql
DB_HOST=localhostOrYourDatabaseIpAddress
DB_PORT=3306
DB_DATABASE=yourDatabaseName
DB_USERNAME=yourDatabaseUsername
DB_PASSWORD=yourDatabasePassword
DB_CONNECTION=pgsql
DB_HOST=localhostOrYourDatabaseIpAddress
DB_PORT=5432
DB_DATABASE=yourDatabaseName
DB_USERNAME=yourDatabaseUsername
DB_PASSWORD=yourDatabasePassword

DB_CONNECTION=sqlite
DB_DATABASE=/absolute/path/to/your/storage/database.sqlite
          
  • php artisan install

    amongst other: create database tables and fill them. Type yes if asked

  • ln -sfn ../storage/app/public/ public/storage

    create symlink for storage

  • chown -R :www-data storage && chmod -R 774 storage

    make storage directory writable for webserver if your webserver runs as user www-data

  • if you wish to use it on a production server change in your .env file APP_ENV from local to production
  • configure your webserver to point to the public directory or use for testing purposes php artisan serve

Upgrade

  • git pull

    upgrade files

  • composer install

    upgrade dependencies

  • php artisan migrate

    upgrade database schemas

  • php artisan cache:clear

    clear cache