Piwigo Howto (1)
This howto is based on the following documentation:
- Manual Installation Guide [EN] @ Piwigo
Installation
[Server Shell]: Define the environment
project='piwigo'
base_path="<HTDOCS>/${project}"
[Server Shell]: Make the directory
mkdir --parents "${base_path}"
[Server Shell]: Clone the repository and switch to the current branch
cd "${base_path}"
git clone 'https://github.com/Piwigo/Piwigo.git' '.'
git checkout '14.x'
Update
[Server Shell]: Define the environment
project='piwigo'
base_path="<HTDOCS>/${project}"
[Server Shell]: Pull from the repository
cd "${base_path}"
git pull
[Client Browser]: Open the URL https://www.raysoft.loc/piwigo/upgrade.php and follow the instructions
Upgrade
[Server Shell]: Define the environment
project='piwigo'
base_path="<HTDOCS>/${project}"
[Server Shell]: Pull from the repository and switch to the current branch
cd "${base_path}"
git pull
git checkout '14.x'
[Client Browser]: Open the URL https://www.raysoft.loc/piwigo/upgrade.php and follow the instructions
Configuration
MySQL
[Server Shell]: Create a new database and grant privileges to users
mysql --user='root' --password --batch <<EOS
CREATE DATABASE piwigo;
GRANT index, create, select, insert, update, delete, drop, alter,
lock tables
ON piwigo.* TO 'piwigo'@'localhost' IDENTIFIED BY '**********';
GRANT select, lock tables
ON piwigo.* TO 'backup'@'localhost' IDENTIFIED BY '**********';
FLUSH PRIVILEGES;
EOS
Piwigo
[Client Browser]: Open the URL https://www.raysoft.loc/piwigo/ and follow the instructions