How to Install Piwigo on Manjaro

Piwigo is a free and open-source photo gallery software that allows users to upload, organize, and share their photos. In this tutorial, we will walk you through the installation process of Piwigo on Manjaro.

Prerequisites

Before proceeding with Piwigo installation, make sure the following requirements are met:

Step 1: Install Required PHP Extensions

Piwigo requires several PHP extensions to run correctly. Open a terminal and run the following command to install them:

sudo pacman -S php-gd php-xml php-intl php-zip php-mysqli

Step 2: Download and Extract Piwigo

Next, we need to download and extract the Piwigo package. Run the following commands in the terminal:

cd /var/www/html
sudo wget https://piwigo.org/download/dlcounter.php?code=latest -O piwigo-latest.zip
sudo unzip piwigo-latest.zip
sudo mv piwigo/* ./

Step 3: Configure Apache

Now we need to create a Virtual Host configuration file for Piwigo. Run the following command in the terminal:

sudo nano /etc/httpd/conf/extra/piwigo.conf

Then paste the following configuration:

<VirtualHost *:80>
 ServerName yourdomain.com
 DocumentRoot /var/www/html/
 <Directory /var/www/html/>
  Options FollowSymlinks
  AllowOverride All
  Require all granted
 </Directory>
 <Directory /var/www/html/galleries/>
  Options +Indexes
  IndexOptions FancyIndexing
  Require all granted
 </Directory>
</VirtualHost>

Make sure to replace yourdomain.com with your actual domain name. Save and close the file.

Next, enable the newly created configuration file:

sudo nano /etc/httpd/conf/httpd.conf

Add the following line at the end of the file:

Include conf/extra/piwigo.conf

Save and close the file.

Step 4: Create a Database

Piwigo uses a database to store information about photos and albums. Run the following commands in the terminal to create a new database:

mysql -u root -p
CREATE DATABASE piwigo;
GRANT ALL PRIVILEGES ON piwigo.* TO 'piwigo'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT;

Make sure to replace password with a strong password of your choice.

Step 5: Install and Configure Piwigo

Now we are ready to install Piwigo. Open a web browser and navigate to your server's IP address or domain name. You will see the Piwigo installation page.

Choose your language and click on the "Start installation" button. Follow the on-screen instructions to complete the installation process.

When prompted, enter the database information, including the database name, username, password, and database host. Make sure to select "MySQL/MariaDB" as the driver.

Once the installation is complete, Piwigo will ask you to create an admin account. Make sure to choose a strong password.

Finally, Piwigo will ask you to configure the gallery settings. You can customize the album hierarchy, photo privacy, and other options.

Step 6: Access Piwigo

Once the configuration is complete, you can access Piwigo by navigating to your server's IP address or domain name in a web browser. You will be prompted to log in with your admin account.

Congratulations, you have successfully installed Piwigo on Manjaro Linux! Now you can upload, organize, and share your photos using Piwigo.

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!