Skip to main content

Installing BookStack

  • Downloading CMS
cd /var/www/
mkdir bookstack
git clone https://github.com/BookStackApp/BookStack.git --branch release --single-branch bookstack
cd bookstack/
composer install --no-dev
  • Setting up an APP_URL, DB connection details and language
# Application URL
# This must be the root URL that you want to host BookStack on.
# All URLs in BookStack will be generated using this value
# to ensure URLs generated are consistent and secure.
# If you change this in the future you may need to run a command
# to update stored URLs in the database. Command example:
# php artisan bookstack:update-url https://old.example.com https://new.example.com
APP_URL=http://null.somedomain.name

# Sets application language to English
# https://www.bookstackapp.com/docs/admin/language-config/
APP_LANG=en
APP_AUTO_LANG_PUBLIC=false

# Database details
DB_HOST=localhost
DB_DATABASE=bookstack
DB_USERNAME=bookstack
DB_PASSWORD=DB_PASSWORD
  • Setting the file system permissions
chown -R root:www-data /var/www/bookstack
chmod -R 755 /var/www/bookstack
chmod -R 775 /var/www/bookstack/storage /var/www/bookstack/bootstrap/cache /var/www/bookstack/public/uploads
chmod 640 /var/www/bookstack/.env
  • Generating encryption key
php artisan key:generate
  • Installing
php artisan migrate