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:
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.
XAMPP Setup¶
Installing XAMPP¶
- Download XAMPP.
- For LK v2, select PHP 8.1.
- For LK v3.0 or above, select PHP 8.2.
- 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".
- Click the "Next" button. You will then see this screen. We just want the defaults -- click "Next" again.
- Install XAMPP directly onto your C: drive. A good location is
C:\xampp, which should also be the default. Then, click "Next".
- Select your preferred language. This doesn't matter -- pick what's best for you.
- Click "Next" on the following screen.
- XAMPP should now begin to install. This may take some time -- be patient!
- Once XAMPP has installed, check the box to start the control panel immediately (if it is not checked by default) and click "Finish".
- Congrats! You now have XAMPP installed. Click "Start" next to 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.
Configuring XAMPP¶
- Next, we need to update the config files. Click "Config" next to Apache, and select
php.ini.
- 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 to5M(five megabytes).
- 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 of10M.
-
Save your changes and close this file. We are going to edit one more config file.
-
Go back to XAMPP, click "Config", and select
httpd.conf.
- Another file should open up in Notepad. We are going to change one value this time. Change whatever value is currently in
DocumentRootand the followingDirectoryline toC:/xampp/htdocs/lorekeeper/public.
- Save your changes and close this file. Then, click the "Stop" button next to Apache. After it fully shuts downs, click "Start" again.
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.
- Next, we are going to make one more change in anticipation of installing Lorekeeper. Click the "Admin" button next to MySQL.
- 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".
- Type in
lorekeeperor any other easy to remember name, then click "Create".
- 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¶
- 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...
..and then this link.
- After the file is done downloading, run it. You will see this screen. Press "Next".
-
You may see a screen asking about a start menu folder. The default location (often "Git") is acceptable. Press "Next".
-
Make sure the highlighted fields are selected. Press "Next".
- This next option is up to you. Notepad++ (if you have it installed) or Notepad are both valid options.
- For maximum compatibility with Lorekeeper, you will want to make sure you check "Override" and type in
main.
- You will then see this screen. Select the middle/"recommended" option.
- Select "OpenSSH".
- Leave this option as whatever your computer detects as default.
- Select "Checkout Windows-style, commit Unix-style line endings".
- Select "MinTTY".
- This one is important. Select "fast-forward or merge".
- Select "Git Credential Manager".
- Enable both file-system caching and symbolic links.
- You may be prompted with this screen. If so, close all other windows on your computer and then click "Install".
- Git will then begin to install. Be patient while it completes!
- Congratulations! Git is now installed. Check "finish".
- 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.
- Go to SourceGit's website and click the download button in the top right.
- Scroll down to the list of files. You want the version ending with win-x64.zip.
- Open your Downloads folder (or wherever you downloaded this file) in File Explorer. Right click the file and select "Extract all."
- Extract this file somewhere easy to remember, such as
C:/sourcegit.
- Navigate to this folder in your File Explorer. It will contain a folder named "SourceGit". Open that folder.
- Run the file SourceGit.exe.
SmartScreen Warning
You may receive a popup from Windows warning you about the file. This file is safe.
- You should be presented with a relatively blank page:
- 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".
- Click on the "Git" tab.
- 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.
- 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.





