How to Install Piwigo on POP! OS Latest

Piwigo is a free, open-source, and customizable photo management software. With Piwigo, you can organize, share, and protect your photos.

In this tutorial, we will walk you through the steps to install Piwigo on POP! OS Latest.

Prerequisites

Before we start, make sure your system meets the following prerequisites:

Step 1: Install Apache Web Server

Piwigo needs to be hosted on a web server. Start by installing the Apache web server using the following command:

sudo apt install apache2

Once Apache web server is installed, you can start it using the command:

sudo systemctl start apache2

Step 2: Install MySQL Database Server

Piwigo requires a MySQL database server to store its data. You can install the MySQL server by running the following command:

sudo apt install mysql-server

During the installation process, you will be prompted to set the MySQL root user password. Choose a strong password and remember it.

After the installation is complete, start the MySQL server using the command:

sudo systemctl start mysql

Step 3: Install PHP and Required Extensions

Install PHP and the necessary extensions by running the following commands:

sudo apt install php libapache2-mod-php php-mysql php-curl php-gd php-xml php-mbstring

Once installed, restart the Apache web server for the changes to take effect:

sudo systemctl restart apache2

Step 4: Download and Install Piwigo

Download the latest version of Piwigo from its official website using the following command:

wget https://piwigo.org/download/dlcounter.php?code=latest -O piwigo.zip

Extract the downloaded file to the Apache web server's default web directory using the following command:

sudo unzip piwigo.zip -d /var/www/html/

Rename the extracted directory to something simpler like "piwigo":

sudo mv /var/www/html/piwigo*/ /var/www/html/piwigo

For security purposes, change the ownership of the Piwigo directory to the Apache web server's user:

sudo chown -R www-data:www-data /var/www/html/piwigo/

Step 5: Create a MySQL Database and User

Create a MySQL database and user for Piwigo to use. You can do this using the following commands:

sudo mysql -u root -p

Enter your MySQL root user password when prompted.

In the MySQL shell, create a new database named "piwigo" and a new user named "piwigo_user" with a strong password:

CREATE DATABASE piwigo;
CREATE USER 'piwigo_user'@'localhost' IDENTIFIED BY 'your_password_here';
GRANT ALL PRIVILEGES ON piwigo.* TO 'piwigo_user'@'localhost';
FLUSH PRIVILEGES;

Replace "your_password_here" with a strong password of your choice.

Exit the MySQL shell using the command:

exit

Step 6: Complete Piwigo Installation

Open a web browser and navigate to http://localhost/piwigo (if you are installing Piwigo on the same machine where you are running the browser - if not, replace "localhost" with the IP address or domain name of the machine where Piwigo is installed).

Follow the on-screen instructions to complete the Piwigo installation. When prompted, enter the MySQL database name, username, and password that you created in the previous step.

Once the installation is complete, Piwigo will be ready to use. You can log in to the administration panel using the credentials you set during the installation process.

Conclusion

In this tutorial, we showed you how to install Piwigo on POP! OS Latest. With Piwigo, you can easily manage and share your photos on your own web server.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!