Skip to content

Local Software Setup - Windows

Overview

  • This guide assumes you are on Windows. Mac and Linux have different methods.
  • Please read every step of this guide carefully. It is highly recommend doing a full read-through before you even get started.

Within this guide, we will be installing the following software:

  • XAMPP for the local webserver and database
  • SourceGit for our graphical git client

Windows Firewall Pop-ups

At any point in time while installing the below software, you may see a pop-up like this. Click "Allow" to allow the software to finish installing. All of the recommended software is safe.

Windows Firewall pop-up

XAMPP Setup

Installing XAMPP

  1. Download XAMPP.
  • For LK v2, select PHP 8.1.
  • For LK v3.0 or above, select PHP 8.2.
Downloading XAMPP
  1. Run the XAMPP .exe file. If you see this warning, as long as you follow this guide, you can ignore it and just hit "OK".
XAMPP UAC Error
  1. Click the "Next" button. You will then see this screen. We just want the defaults -- click "Next" again.
XAMPP Installation Default Settings
  1. Install XAMPP directly onto your C: drive. A good location is C:\xampp, which should also be the default. Then, click "Next".
XAMPP Installation Directory
  1. Select your preferred language. This doesn't matter -- pick what's best for you.
XAMPP Installation Language
  1. Click "Next" on the following screen.
XAMPP Installation Ready to Install Screen
  1. XAMPP should now begin to install. This may take some time -- be patient!
XAMPP Installating
  1. Once XAMPP has installed, check the box to start the control panel immediately (if it is not checked by default) and click "Finish".
XAMPP Installation Finished
  1. Congrats! You now have XAMPP installed. Click "Start" next to Apache and MySQL.
Starting Apache and MySQL

Windows Defender Firewall Alert

If you are presented with a window like this for either application: Check both "Private" and "Public", then click "Allow Access".

This software is safe. You may need to click "Show More" to see these options.

Starting Apache and MySQL

Configuring XAMPP

  1. Next, we need to update the config files. Click "Config" next to Apache, and select php.ini.
Opening the PHP.ini in XAMPP
  1. A file should open up in Notepad. We are going to change two values. First, use the search feature (Ctrl + F) or simply scroll down until you see post_max_size. This controls how large the files are that you can upload. Change this to a number similar to what you'll use on your live website. If you don't know yet, change it to 5M (five megabytes).
Editing the post_max_size variable

alt text

  1. The next value we change is upload_max_filesize. I like to change this to abnormally high on my local, but make it whatever feels right for you. To change it to 10 megabytes, for example, put a value of 10M.
Editing the upload_max_size variable
  1. Save your changes and close this file. We are going to edit one more config file.

  2. Go back to XAMPP, click "Config", and select httpd.conf.

Selecting the http.conf file
  1. Another file should open up in Notepad. We are going to change one value this time. Change whatever value is currently in DocumentRoot and the following Directory line to C:/xampp/htdocs/lorekeeper/public.
Updating the DocumentRoot value
  1. Save your changes and close this file. Then, click the "Stop" button next to Apache. After it fully shuts downs, click "Start" again.
Stopping and starting XAMPP

Info

Apache may fail to start if the folder C:/xampp/htdocs/lorekeeper/public does not exist. This is OK. Continue with this guide, and Apache will start after you have cloned LK.

  1. Next, we are going to make one more change in anticipation of installing Lorekeeper. Click the "Admin" button next to MySQL.
pressing the mysql admin button
  1. This will open a window similar to this in your browser. This is PHPMyAdmin, and it is where we control how most of the data is stored for Lorekeeper. Click "New".
phpmyadmin front page
  1. Type in lorekeeper or any other easy to remember name, then click "Create".
creating a database in phpmyadmin
  1. Congratulations! We're done here for now. Next, we will install the Git software needed to manage our Lorekeeper files.

Installing Git Software

Historically, the software used for managing Git was Sourcetree, but I will be using SourceGit as it is more stable and frequently updated.

Installing Git

  1. First, we need to install Git itself. Git is a tool used to manage files and file history for coding projects. Go here to download the latest copy of Git.

Click this button...

downloading git from the website

..and then this link.

clicking the second download link for git
  1. After the file is done downloading, run it. You will see this screen. Press "Next".
git gnu license agreement
  1. You may see a screen asking about a start menu folder. The default location (often "Git") is acceptable. Press "Next".

  2. Make sure the highlighted fields are selected. Press "Next".

a checklist of installation settings for git
  1. This next option is up to you. Notepad++ (if you have it installed) or Notepad are both valid options.
selecting your default text editor for git
  1. For maximum compatibility with Lorekeeper, you will want to make sure you check "Override" and type in main.
selecting your default branch name for git
  1. You will then see this screen. Select the middle/"recommended" option.
command line installation options for git
  1. Select "OpenSSH".
selecting default ssh option for git
  1. Leave this option as whatever your computer detects as default.
selecting how to handle SSL connections for git
  1. Select "Checkout Windows-style, commit Unix-style line endings".
selecting line ending conversion settings for git
  1. Select "MinTTY".
selecting the terminal editor for git
  1. This one is important. Select "fast-forward or merge".
selecting the terminal editor for git
  1. Select "Git Credential Manager".
alt text
  1. Enable both file-system caching and symbolic links.
alt text
  1. You may be prompted with this screen. If so, close all other windows on your computer and then click "Install".
alt text
  1. Git will then begin to install. Be patient while it completes!
alt text
  1. Congratulations! Git is now installed. Check "finish".
alt text
  1. Reboot your entire computer. Certain things we installed with Git will only take effect after our computer has restarted. So do that, and then come back!

Installing SourceGit

You can use Git purely from the command line, but it's not reccomended for beginners. To make things easier, we will be using a tool called SourceGit.

  1. Go to SourceGit's website and click the download button in the top right.
alt text
  1. Scroll down to the list of files. You want the version ending with win-x64.zip.
alt text
  1. Open your Downloads folder (or wherever you downloaded this file) in File Explorer. Right click the file and select "Extract all."
alt text
  1. Extract this file somewhere easy to remember, such as C:/sourcegit.
alt text
  1. Navigate to this folder in your File Explorer. It will contain a folder named "SourceGit". Open that folder.
alt text
  1. Run the file SourceGit.exe.
alt text

SmartScreen Warning

You may receive a popup from Windows warning you about the file. This file is safe.

Click "More Info":

clicking more info on the smartscreen popup

And then "Run Anyway" to start SourceGit:

click run anyway on the smartscreen popup

  1. You should be presented with a relatively blank page:
alt text
  1. There's one final thing we need to configure, and that is the username and email that Git will use. Click the three bars in the top right, and then click "Preferences".
alt text
  1. Click on the "Git" tab.
alt text
  1. In the User Name and User Email fields, put in information that is accurate, but you are OK with potentially being made public to anyone who works on your code.
alt text

Customizing Appearance

If you want, you can also swap to Dark Mode from the "Appearance" tab.

alt text

  1. Close the Preferences window, and it will save automatically.

Setup Complete

You have installed a local webserver and the software needed to handling Lorekeeper's code. You can now move onto setting up your local copy of Lorekeeper.