Skip to content

01 Setup (no Docker)

sec77 edited this page Jul 8, 2024 · 11 revisions

Setup

Just put the content of the perlite directory in your web root directory, your notes should resident as a subfolder of perlite.

  1. You need to define your vault root directory in perlite, best way is to use a php environment variable, you need to add this variable to your fpm config. For example add this line
env[NOTES_PATH] = MyVault

to your /etc/php/7.4/fpm/pool.d/www.conf to define MyVault as your vault folder, per default this is set to Demo. Alternative you can adjust the $rootDir = 'Demo'; in the helper.php to you vault folder name.

  1. follow the Required Obsidian Settings
  2. follow the Graph Setup

you can also follow this tutorial for a step by step solution: https://blog.nihilism.network/selfhosting/perlite/index.html


Server Requirements

  • NGINX or Apache
  • PHP 7.4 or 8.X

also make sure you have installed the necessary PHP modules

  • PHP module mb_strings for the parsedown (apt install php-mbstring)
  • PHP module yaml_parse for the metadata (apt install php-yaml)
Clone this wiki locally