Skip to main content

Setup

Setup theme and server

Run demo on localhost

  • Unzip files on local server root folder
  • Start a server with MAMP, XAMPP, WAMPP, or php -S localhost:8000 kirby/router.php on terminal
  • Visit localhost:8000/panel with your browser
  • Register as admin
  • Explore demo and settings

Run blank theme on remote server

  • Make sure your live sever meets minimum requirements
  • Check existence of .env file on live server (if applicable)
  • Locally delete demo content from:
    • content/*
    • media/*
    • site/cache/*
    • site/accounts/*
    • site/sessions/*
  • Locally open file site/config/config.php
    • Add 'panel' => ['install' => true]
  • Upload files to server (don't forget .htaccess)
  • Visit www.website.com/panel
  • Register as admin
    • Add site name
    • Add home page
    • Add error page
  • Locally open file site/config/config.php
    • Delete line 'panel' => ['install' => true]
    • Set 'debug' => false
  • Upload all changes to server
  • Setup languages before populating content
  • Create multi-environment setup:
    • site/config/config.php (don't modify this file, use it as template)
    • site/config/config.localhost.php
    • site/config/config.example.com.php
    • site/config/config.www.example.com.php
  • Config files support .env variables
    • create a .env file in your live server (where Kirby is installed)
    • use env('variableName') to call env variables from config files
  • Reference: https://getkirby.com/docs/guide/configuration#multi-environment-setup

🤖 Privacy Policy

We use cookies to improve your experience. Find out more in our privacy page.