Creating a Home Server Part 8 (Finale): How to Install Piwigo Photo Gallery on Ubuntu 14.04

Piwigo is a free and open source online photo gallery software. It is simple to use and has many extensions and plugins to customize Piwigo. One of my favorite features of Piwigo is that ability to make some photo albums public and others private to specific users. In addition, albums can be created through folder/directory structure instead of creating them individually. Continue reading to learn how to install Piwigo Photo Gallery on Ubuntu 14.04.

Video Tutorial

Prerequisites

There are some required programs for Piwigo to function in Ubuntu. This tutorial will assume the following steps are already taken.

  1. The hardware and software of an Ubuntu 14.04 computer is setup.
  2. A LAMP web server is setup in Ubuntu.
  3. A public web address is setup (optional)

Install Dependencies

Piwigo only has one dependency needed to properly run: an imaging package. It recommends one of two different packages, Imagemagick or GD. We will install GD.

sudo apt-get install php5-gd

Install Piwigo Photo Gallery

  1. In the Ubuntu Server, open a web browser and navigate to Piwigo’s website (http://piwigo.org).
  2. Click on the orange “Download Piwigo” button.01-Download
  3. The next screen will provide two methods of installing Piwigo. Since we are installing directly from the server, the manual installation is easier. Click the orange “Download Package” button. 02-packageDownload
  4. When the browser prompts for what to do with the downloaded file, select “Open in Archive Manager.”03-selectExtract
  5. Once the file is finished downloading, the archive manager will open. Click on the “piwigo” folder and click the “Extract” button. 04-clickExtract
  6. Save the folder to your “Home” directory. Click “Home” in the left sidebar (A) and then click the “Extract” button (B).05-extratToHome
    NOTE: Opening the file explorer will display the piwigo folder beside other user folders.06-extractInhome
  7. Launch the “Terminal” program and type the following command to move the piwigo folder to the web server.
    sudo mv piwigo /var/www/html

    07-mvPiwigo

  8. Change the permissions of the piwigo folder to the web-server’s user ID.
    sudo chown www-data:www-data -R /var/www/html/piwigo

    08-chownPiwigo

Create Database in MySQL

  1. Still in terminal, launch the MySQL shell.
    mysql -u root -p

    09-mysqlLogin

  2. create the database table titled “piwigo” and exit MySQL.
    create database piwigo;
    exit

    11-exitMysql

Complete Piwigo Installation

  1. In a web browser, navigate to your server. The default will be http://yourserveraddress/piwigo.
  2. Select the appropriate Language (A), complete the fields for the MySQL database (B), and create the first user (C). Once complete, click the orange “start installation” button (D).
    11-netInstall12-netInstall2
  3. The next screen will confirm the installation. Click the orange “Visit the gallery” button.
    13-visitGallery
  4. The next screen will offer to launch a tour to familiarize yourself with Piwigo Photo Gallery. Click the orange “Start the Tour” button.14-takeTour
  5. Once the tour is complete, click on the “Administration” link in the left sidebar. There may be an orange warning banner stating that there are some additional upgrades to installed extensions. If so, click the “Some upgrades are available for extensions” link. 15-updateExt
  6. Click the “Update All” button and then click “OK” in the popup.16-updateAll17-areYouSure
  7. Click the “Visit the Gallery” link in the header menu to view the photo gallery.
    18-Gallery

Final Words and What’s Next

Piwigo Photo Gallery’s simplicity allows for an easy to use online photo gallery alternative to services such as Facebook, Google+, Instagram or Tumblr. Not only do you exclusively control your photos, but you can choose who can and cannot see specific photos, allowing you to be in control with your data. While this concludes the home server series, new installations tutorials will continue. (The new series will most likely be called Home Server Extras). These tutorials will include web applications that may be similar to ones already installed to provide a variety of online tools your can install on your server. Til then, keep teching on.


Support Us!

Thank you for reading this article. If you found it useful, please consider buying us a coffee, subscribing to the YouTube Channel, and/or changing your Amazon bookmark to our affiliate link (CAN, USA, UK). We do this out of general interests and to help others. Thanks!