How to install Piwigo on Linuxmint 18.03

To install Piwigo on Linuxmint 18.03
Piwigo is an open source PHP based content management system used for creating gallery focused websites. It supports multiple media formats, integrated blogs, and custom pages. Piwigo is an ideal CMS tool for photographers, designers, filmmakers, and musicians. In this tutorial, we will cover the installation of Piwigo on linuxmint 18.03.

To install LAMP(Apache, MariaDB, and  php7.0)
In MariaDB (create database and user and give privileges to that user )

Php installation with required following modules

add-apt-repository ppa:ondrej/php 
apt-get update 
apt-get install php7.0 php7.0-mysql php7.0-curl php7.0-json php7.0-cgi libapache2-mod-php7.0 php7.0-mcrypt php7.0-xmlrpc php7.0-gd php7.0-mbstring php7.0-common 
php7.0-xmlrpc php7.0-soap  php7.0-xml php7.0-intl  php7.0-cli  php7.0-ldap php7.0-zip php7.0-readline php7.0-imap php7.0-tidy php7.0-recode php7.0-sq php7.0-intl


Download the piwigo package by using wget command.

linuxhelp ~ #  wget
--2018-08-18 03:17:37--
Resolving (
Connecting to (||:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7846445 (7.5M) [application/zip]
Saving to: ‘dlcounter.php?code=latest’

dlcounter.php?code=latest    100%[=============================================>]   7.48M  1.12MB/s    in 7.0s    

2018-08-18 03:17:45 (1.06 MB/s) - ‘dlcounter.php?code=latest’ saved [7846445/7846445]

The downloaded package is a zip file, so we need to unzip the package now.

linuxhelp ~ # unzip dlcounter.php?code=latest
Archive:  dlcounter.php?code=latest
   creating: piwigo/
  inflating: piwigo/.gitignore       
   creating: piwigo/_data/
 extracting: piwigo/_data/dummy.txt  
inflating: piwigo/tools/ws.htm     
  inflating: piwigo/upgrade.php      
  inflating: piwigo/upgrade_feed.php  
   creating: piwigo/upload/
  inflating: piwigo/ws.php  

Change the ownership and permission for piwigo directory

linuxhelp ~ # ls
dlcounter.php?code=latest  piwigo
linuxhelp ~ # chown -R www-data:www-data piwigo/
linuxhelp ~ # chmod -R 775 piwigo/

Move the Piwigo directory into the /html location.

linuxhelp ~ # mv piwigo/ /var/www/html/

Create a virtual host configuration for accessing the piwigo application

linuxhelp ~ # cd /etc/apache2/sites-available/
linuxhelp sites-available # vim piwigo.conf
<VirtualHost *:80>
DocumentRoot /var/www/html/piwigo/
<Directory /var/www/html/piwigo/>
AllowOverride All
allow from all

 Enable the site access.

linuxhelp sites-available # a2ensite web.conf 
Enabling site web.
To activate the new configuration, you need to run:
  service apache2 reload

Make an entry to the host file

linuxhelp sites-available # vim /etc/hosts
<your ip address>     <your domain name>

Then we need to restart the apache2 service

linuxhelp sites-available # systemctl restart apache2.service

Now you can proceed the further installation and configuration from the browser by navigating to the following URL of http://local IP (or) domain name
give domain name or ip

Fill the database details.
database details

Fill the Admin details.
admin details

Now the installation setup is complete to access Piwigo Photo gallery
installation completed

You can see the Piwigo photo gallery as shown here

You can see the Admin dashboard of Piwigo as follows
admin page
with this, the method to install Piwigo on Linux mint 18.03 comes to an end.

Thank you! for using Linux Help.

You find this tutorial helpful? Share with your friends to keep it alive.
For more help topics browse our website
Be the first to comment, we value your suggestions. For further queries please comment below.

Tags: Linux Mint CMS tool
user image Author :  Ethan