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.
There are some required programs for Piwigo to function in Ubuntu. This tutorial will assume the following steps are already taken.
- The hardware and software of an Ubuntu 14.04 computer is setup.
- A LAMP web server is setup in Ubuntu.
- A public web address is setup (optional)
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
- In the Ubuntu Server, open a web browser and navigate to Piwigo’s website (http://piwigo.org).
- Click on the orange “Download Piwigo” button.
- 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.
- When the browser prompts for what to do with the downloaded file, select “Open in Archive Manager.”
- Once the file is finished downloading, the archive manager will open. Click on the “piwigo” folder and click the “Extract” button.
- Save the folder to your “Home” directory. Click “Home” in the left sidebar (A) and then click the “Extract” button (B).
NOTE: Opening the file explorer will display the piwigo folder beside other user folders.
- Launch the “Terminal” program and type the following command to move the piwigo folder to the web server.
sudo mv piwigo /var/www/html
- 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
Create Database in MySQL
- Still in terminal, launch the MySQL shell.
mysql -u root -p
- create the database table titled “piwigo” and exit MySQL.
create database piwigo;
Complete Piwigo Installation
- In a web browser, navigate to your server. The default will be http://yourserveraddress/piwigo.
- 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).
- The next screen will confirm the installation. Click the orange “Visit the gallery” button.
- The next screen will offer to launch a tour to familiarize yourself with Piwigo Photo Gallery. Click the orange “Start the Tour” button.
- 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.
- Click the “Update All” button and then click “OK” in the popup.
- Click the “Visit the Gallery” link in the header menu to view the photo 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.
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!