Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| services:piwigo [2024/03/12 14:30] – willy | services:piwigo [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Piwigo ====== | ||
| - | |||
| - | [[https:// | ||
| - | |||
| - | There are also mobile apps associated to Piwigo that can take care of backup and mobile editing. | ||
| - | |||
| - | ===== Installation ===== | ||
| - | |||
| - | Piwigo is PHP based, so you need to follow [[gentoo: | ||
| - | |||
| - | ==== Prerequisites · setup ==== | ||
| - | |||
| - | Ensure you have PHP emerged with **gd**, **mysqli** and **fpm**, if you don't have it already, emerge it again: | ||
| - | <code bash> | ||
| - | echo dev-lang/ | ||
| - | emerge -vp php | ||
| - | emerge -vp dev-php/ | ||
| - | </ | ||
| - | Also emerge **pecl-imagick** to add ImageMagick support. | ||
| - | |||
| - | ==== Initial setup ==== | ||
| - | |||
| - | Now, create the usual service user that i will call **piwigo**. This user should be member of the **photos** group: | ||
| - | <code bash> | ||
| - | useradd -d / | ||
| - | </ | ||
| - | |||
| - | The full Piwigo installation guides are [[https:// | ||
| - | |||
| - | You need to download and unpack Piwigo latest release: | ||
| - | <code bash> | ||
| - | su - piwigo | ||
| - | wget -O piwigo.zip " | ||
| - | unzip piwigo.zip | ||
| - | </ | ||
| - | |||
| - | This will create a subfolder called **piwigo**. | ||
| - | |||
| - | ==== Database setup ==== | ||
| - | |||
| - | See [[gentoo: | ||
| - | |||
| - | You need to create a database called **piwigo** with a user called **piwigo** with a strong enough password. | ||
| - | |||
| - | Ensure your database is running! | ||
| - | |||
| - | |||
| - | ==== Reverse Proxy setup ==== | ||
| - | |||
| - | <file - piwigo.conf> | ||
| - | location /piwigo/ { | ||
| - | root / | ||
| - | index index.php; | ||
| - | |||
| - | location ~ /.*\.php$ { | ||
| - | try_files $uri =404; | ||
| - | fastcgi_split_path_info ^(.+\.php)(/ | ||
| - | include fastcgi_params; | ||
| - | fastcgi_param SCRIPT_FILENAME $request_filename; | ||
| - | fastcgi_pass 127.0.0.1: | ||
| - | } | ||
| - | } | ||
| - | </ | ||
| - | Make sure the port (9002) matches your PHP-FPM port! | ||
| - | |||
| - | ==== Web installation ==== | ||
| - | |||
| - | Open your broser to **https:// | ||
| - | |||
| - | Make sure to specify **127.0.0.1** instead of // | ||
| - | |||
| - | |||
| - | ==== Permissions and securization ==== | ||
| - | |||
| - | The piwigo home folder comes with some weird defaults, you should remove permissions for //others//: | ||
| - | <code bash> | ||
| - | chmod o-w / | ||
| - | </ | ||
| - | |||
| - | Your piwigo user and PHP-FPM user are all owned by the same user (if you followed me properly!) so there is no need for giving write permissions to others. | ||