PiGallery 2 is an open source web gallery that enables you to host and browse your digital photos online. In this tutorial, we will guide you on how to install PiGallery 2 on your Windows 11 machine.
Before you begin, make sure you have the following:
WampServer is a Windows web development environment that allows you to create web applications on your local machine. We will use it as our web server to run PiGallery 2. You can download WampServer from the official website at https://www.wampserver.com/en/download-wampserver-64bits/.
Once downloaded, run the installer and follow the on-screen instructions to complete the installation.
Open WampServer by clicking on the icon on your desktop.
Once the app is loaded, click on the green WampServer icon in the taskbar, and make sure that the "Put Online" option is selected.
navigate to https://github.com/bpatrik/pigallery2/releases on your web browser.
Click on the latest release of PiGallery 2.
Download the zip file that is appropriate for your operating system.
Extract the downloaded zip file to any directory of your choice. In this tutorial, we will use the directory C:\pigallery2
.
Open your file manager and navigate to C:\pigallery2\config
.
Rename the config.template.json
file to config.json
.
Open the config.json
file with a text editor such as Notepad.
Locate the baseDirectories
section in the file and replace its value with the directory where your photos are stored.
"baseDirectories": [
{
"dir": "C:/Users/Username/Pictures",
"title": "My Pictures",
"thumbnailSize": 240
}
]
config.json
file.Open your web browser and navigate to http://localhost/pigallery2/
.
PiGallery 2 will start the installation process, and it will create the necessary database tables and check for dependencies.
After the installation process is complete, you will be redirected to the PiGallery 2 dashboard.
Congratulations, you have successfully installed PiGallery 2 on your Windows 11 machine. You can now browse your photos online by visiting http://localhost/pigallery2/
on your web browser.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!