Piwigo is a free and open-source photo gallery software that allows you to manage and share your photos with ease. In this tutorial, we will show you how to install Piwigo on Elementary OS Latest.
To follow this tutorial, you will need:
Before installing Piwigo, it is necessary to update your system to the latest version. Open a terminal and run the following command:
sudo apt-get update && sudo apt-get upgrade -y
Piwigo requires a web server to run. In this tutorial, we will use the Apache web server. To install Apache, run the following command:
sudo apt-get install apache2 -y
Once it is installed, start the Apache service by running:
systemctl start apache2
You can verify if Apache is running by visiting http://localhost
in your web browser.
Piwigo is developed in PHP language, so we need to install PHP and its required modules. Run the following command to install PHP and its required modules:
sudo apt-get install php php-gd php-mysql php-mbstring php-curl -y
Once the installation is complete, restart the Apache service:
systemctl restart apache2
Now, we can install Piwigo. Visit the Piwigo download page and copy the download link for the latest version of Piwigo.
In the terminal, navigate to the Apache web root directory:
cd /var/www/html
Download the Piwigo installation package using the following command:
sudo wget <download link>
Extract the downloaded package:
sudo tar -xzvf piwigo-<version>.tar.gz
Rename the extracted directory:
sudo mv piwigo-<version> piwigo
Set the correct permissions on the piwigo directory:
sudo chown www-data:www-data -R piwigo/
sudo chmod -R 755 piwigo/
Piwigo requires a database to store its data. We will use the MySQL database server for this. If you don't have MySQL installed, install it by running the following command:
sudo apt-get install mysql-server -y
Log in to the MySQL server as the root user:
sudo mysql -u root -p
Create a new database for the Piwigo installation:
CREATE DATABASE piwigo;
Create a new user and grant them full access to the database:
GRANT ALL ON piwigo.* TO 'username'@'localhost' IDENTIFIED BY 'password';
Replace 'username' and 'password' with your desired values.
Flush the privileges and exit the MySQL server:
FLUSH PRIVILEGES;
EXIT;
Now that we have prepared our server, we can start the web-based installation wizard.
Open your web browser and navigate to http://localhost/piwigo
. Piwigo will detect that it has not been installed yet and will redirect you to the installation page.
Follow the on-screen instructions to complete the installation. For the database configuration, use the same database name, username, and password as you configured in step 5.
Once the installation is complete, delete the install
directory to secure your Piwigo installation:
sudo rm -rf /var/www/html/piwigo/install
Restart the Apache web server:
sudo systemctl restart apache2
Congratulations! You have successfully installed Piwigo on your Elementary OS Latest system. You can now upload your photos to your Piwigo installation and start organizing and sharing them with your friends and family.
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!
Alternatively, for the best virtual desktop, try Shells!