1. Introduction
You can setup a Piwigo site on a Raspberry Pi with Virtualmin, which is a virtual hosting platform having a web based interface preventing the use of Unix commands. The benefit is that you can manage one or more websites on yourย Raspberry Pi 4 or Raspberry Pi 5ย via a web interface.
Piwigo is an open source photo management software to manage, organize and share your photo easily on the web. Your images can be viewed and managed from a common web browser or from Piwigo mobile applications available for Android and Apple devices.
Note: This article has been updated with reference to the Raspberry Pi 5 and textual improvements/corrections. Also tested with installing Piwigo 15.3.
2. Requirements
Before Piwigo is installed it is required to have preferably a Raspberry Pi 4 or 5 with Virtualmin (and Webmin) installed, including a virtual server set-up for the Piwigo site. See our article Hosting multiple websites on a Raspberry Pi 4 with Virtualmin.
3. Setup the database for Piwigo
Before we install Piwigo a database and corresponding user needs to be created. We could use Webmin for this, but in our case we could not get it working correctly as in the database 2 same users were created of which one did not have a password.
Hence we use use phpMyAdmin to setup the database for Piwigo (has been installed when following our article w.r.t. setting up Virtualmin listed under the requirements section).
- Access phpMyAdmin via https://<domain name>/phpmyadmin and login.
- Go to the Databases tab and enter the database name (we used piwigo). Click on the create button.
- Now we need to setup a database user piwigo will use to access the database. Go back to the home page off phpMyAdmin and select the โUser accountsโ tab. Click on โAdd user accountโ.
- Enter the username, set host to localhost and provide a password (you can also use the generate password button).ย Click on the Go button to create the database user.
- On the screen shown click on โDatabaseโ.
- Select the piwigo database and click on the Go button.
- The database privileges screen will be shown. Click on โCheck allโ and then the โGoโ button.
- You can now logout of phpMyAdmin.
4. Install Piwigo
We use the manual installation method as described on the Piwigo.org site.
- Download the latest Piwigo version from the Piwigo.org site to you computer.
- Go to Virtualmin. Make sure the correct virtual server is selected.
If you forgot to create a virtual server see our article w.r.t. installing and configuring Virtualmin and then specific section 8.
- Go to Virtualmin > File Manager and go to directory โpublic_htmlโ in your website home directory.
- Delete the โindex.htmlโ file.
- Select File > Upload to current directory (there is a Download from remote URL option, but that did not work in our case).
- Select the piwigo installation zip-file to be uploaded and select โExtract Compressedโ. Click on the Upload button.
-
The Piwigo files will have been extracted in a subfolder structure looking the same or similar as in screenshot below.
-
We want to have these files in the public_html folder and hence move them with the file manager by selecting the files & folders in the โpwigoโ folder and using cut/paste from the Edit menu. Go back to the piwigo folder and make sure that all files have been moved (in our case they were not!). Remove the empty folders where you moved the files from.
Piwigo is now ready to be configured.
5. Configure Piwigo
Next step is to configure the Piwigo database and administrator. Go to your websites domain name in the browser (https://<domain nam>). Piwigo will see it has not been configured yet and show itโs installation page.
Fill in all the required informaiton. Add your database name, database user and database user password as setup in previous sections. Leave the Host variable set to โlocalhostโ. Click on the โStart installation buttonโ.
If all went well Piwigo will display a similar screen as below.
Piwigo is now ready for use. Further configuration can now be done inside Piwigo.
0 Comments