Ubuntu 26.04

Apache2 : Photo Gallery : Piwigo2026/05/26

 

Install Photo Gallery System, Piwigo.

[1]

Configure PHP + PHP-FPM, refer to here.

[2]

Install MariaDB, refer to here.

[3] Install other required PHP modules.
root@www:~#
apt -y install php-common php-gd php-pdo php-mysql php-curl php-imagick php-zip php-intl php-enchant hunspell unzip

root@www:~#
vi /etc/php/8.5/fpm/pool.d/www.conf
;; add to last line
;; maybe you need to configure parameters below for your usage
php_value[max_execution_time] = 600
php_value[memory_limit] = 2G
php_value[post_max_size] = 2G
php_value[upload_max_filesize] = 2G
php_value[max_input_time] = 600
php_value[max_input_vars] = 2000
php_value[date.timezone] = Asia/Tokyo

root@www:~#
systemctl reload php8.5-fpm

[4] Create a User and Database on MariaDB for Piwigo.
root@www:~#
mariadb

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 108
Server version: 11.8.6-MariaDB-5 from Ubuntu -- Please help get to 10k stars at https://github.com/MariaDB/Server

Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> create database piwigo; 
Query OK, 1 row affected (0.00 sec)

MariaDB [(none)]> grant all privileges on piwigo.* to piwigo@'localhost' identified by 'password'; 
Query OK, 0 rows affected (0.00 sec)

MariaDB [(none)]> exit 
Bye
[5] Configure Apache httpd for Piwigo.
root@www:~#
wget http://piwigo.org/download/dlcounter.php?code=latest -O piwigo.zip

root@www:~#
unzip piwigo.zip -d /var/www

root@www:~#
chown -R www-data:www-data /var/www/piwigo

root@www:~#
vi /etc/apache2/conf-available/piwigo.conf
Timeout 600
ProxyTimeout 600

Alias /piwigo "/var/www/piwigo/"
<Directory "/var/www/piwigo">
    Options FollowSymLinks
    AllowOverride All
    Require all granted
    <FilesMatch \.(php|phar)$>
        SetHandler "proxy:unix:/var/run/php/php8.5-fpm.sock|fcgi://localhost/"
    </FilesMatch>
</Directory>

root@www:~#
a2enconf piwigo

Enabling conf piwigo.
To activate the new configuration, you need to run:
  systemctl reload apache2

root@www:~#
systemctl reload apache2

[6] Access to the URL [https://(Server's Hostname or IP address)/piwigo/] with Web browser on any Client, then following screen is displayed. Input settings and Click [Start installation] button.
[7] After successfully setup, following screen is shown.
[8] After initial setup, wshen access to the Piwigo site, default index page is displayed.
To manage your photos, login as administrative user you did setup, click [Login] button on upper-right.
[9] After login, click [Admin] button to move to management dashboard.
Matched Content