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 15:54] – 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 the following USE flags, 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: | ||
- | fastcgi_read_timeout 300; | ||
- | } | ||
- | } | ||
- | </ | ||
- | 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, | ||
- | |||
- | 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. | ||
- | |||
- | You want to increase your default PHP memory usage or Piwigo might give error with large collections. | ||
- | |||
- | Edit **memory_limit** in your **php.ini** (edit the one associated to the correct PHP FPM instance!). A good value might be 520M or even higher. | ||
- | |||
- | Edit **max_execution_time** in your **php.ini** to 300. | ||
- | |||
- | |||