Photography is my hobby so I have DSLR camera, prior to which I had 2-3 point and shoot camera’s and almost had 7-8 smart phones. Now all these devices left me with GB’s of photos which are difficult to manage and search when required. My requirement was to have web based application similar to google photos or apple photos and apps for iOS and Android so that I can edit or download them on other devices.  Another primary requirement was to have entire setup with portable apps so that I do not need redo the things if I reinstall OS or move my disk to another system.

There are several gallery software’s out of which Piwigo looked promising as it is open-source and actively developed. When it comes to web-server I always use WAMP, but my requirement was to have portable server. I tried several portable servers but finally chose XAMPP as basic setup like starting Apache and MySQL servers went smoothly. It also provides support for few additional software like Filezilla, WordPress etc. which can be installed and enable if required.


Steps to install and configure XAMPP and database

  1. Download XAMPP from here.
  2. Start XAMPP installation, download in step one to folder d:\piwigo_server\xampp
  3. Once installation is over, it would start Control Panel or same can be started from d:\piwigo_server\xampp\xampp_control.exe
  4. Start Apache and MySql serverWhile starting these server you may get Firewall messages, click on “Allow access” button.
  5. Click on “Config” button and allow Apache and MySQL to start whenever control panel is started.
  6. In web-browser, navigate to URL http://localhost/dashboard/ to verify if everything is working good.
  7. In web-browser, click on PhpMyadmin menu or navigate to URL http://localhost/phpmyadmin/
  8. Click on link “New” in left side panel, enter database name “piwigo” in right side pane and click on “Create” button to create a new database “piwigo


Steps to install and configure Piwigo

  1. Download Piwigo package from here 
  2. Extract piwigo-<version>.zip file to d:\piwigo_server\xampp\htdocs\piwigo directory
  3. In web-browser, navigate to http://localhost/piwigo
  4. Fill required parameter as shown in image and click on “Start Installation” button 
  5. Click on “Visit the gallery” button once installation is successful


You may skip following step if you don’t want to change default Piwigo storage directory

Step to configure Piwigo upload directory

Piwigo uploads all images to d:\piwigo_server\xampp\htdocs\piwigo\upload so in future if you accidentally delete XAMPP installation it may  delete your collection. To avoid this create upload directory somewhere else on the drive and create soft-link inside Piwigo installation.

  1. Create d:\piwigo_albums\ directory
  2. Move d:\piwigo_server\xampp\htdocs\piwigo\upload directory to d:\piwigo_albums\ directory
  3. Execute following command to soft-link of d:\piwigo_albums\upload directory

          mklink /D d:\piwigo_albums\upload d:\piwigo_server\xampp\htdocs\piwigo\upload

Steps to create Piwigo Album

Once everything is setup properly you can start creating Piwigo albums

  1. In web-browser, navigate to http://localhost/piwigo and login credentials were provided during installation
  2. Navigate to Alubms->Manage-> Create a new album
  3. Provide album name and click on create
  4. Navigate to Photos -> Add -> Add Photos and select some photos.


How to fix XAMPP and Piwigo when disk is mounted to other drive

  1. Start XAMPP control panel and click on Apache ->  config
  2. Click on httpd.conf to open httpd.conf file
  3. Replace all occurrences of d: with new drive letter
  4. Repeat same procedure for  httpd-ssl.conf, httpd-xampp.conf, php.ini and file
  5. Click on MySQL -> config 
  6. Click on my.ini to open file my.ini
  7. Replace all occurrences of d: with new drive letter
  8. Delete <new drive>:\piwigo_server\xampp\htdocs\piwigo\upload directory
  9. Execute following command “mklink /D <new drive>:\piwigo_albums\upload <new drive>:\piwigo_server\xampp\htdocs\piwigo\upload” to recreate upload soft link
  10. Start Apache and MySQL


How to fix Piwigo PHP warnings

Below warnings may occur as latest XAMPP v3.2.2 has PHP 7.2.1

Deprecated: Function create_function() is deprecated in d:\piwigo_server\xampp\htdocs\piwigo\include\ on line 2165

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in d:\piwigo_server\xampp\htdocs\piwigo\include\template.class.php on line 293

to fix these warning edit file d:\piwigo_server\xampp\htdocs\piwigo\include\ and change

$conf[‘show_php_errors’] = E_ALL;
$conf[‘show_php_errors’] = E_ERROR;

Leave a Reply

Your email address will not be published. Required fields are marked *