« Piwigo » : différence entre les versions
m (→Installation) |
m (→Installation) |
||
Ligne 36 : | Ligne 36 : | ||
chown -R www-data /var/www/html/piwigo/ | chown -R www-data /var/www/html/piwigo/ | ||
chgrp -R www-data /var/www/html/piwigo/ | chgrp -R www-data /var/www/html/piwigo/ | ||
== Machine MySQL == | |||
Editer le fichier /etc/mysql/mysql.conf.d/mysqld.cnf et remplacer la ligne | |||
bind-address = 127.0.0.1 | |||
par | |||
bind-address = 0.0.0.0 | |||
CREATE USER 'piwigo'@'192.168.1.100' IDENTIFIED WITH mysql_native_password BY 'password'; | |||
systemctl restart mariadb.service |
Dernière version du 18 juin 2023 à 18:52
Base Ubuntu 22
Prérequis
Installation
apt update && apt upgrade -y
apt install nginx php mysql-client php-fpm php-cli php-curl php-mysql php-curl php-gd php-mbstring php-pear -y exiftool ffmpeg poppler-utils imagemagick unzip
Si la base est locale :
systemctl start mysql systemctl enable mysql
apt autoremove
systemctl start nginx systemctl enable nginx
Modifier le fichier /etc/nginx/nginx.conf et décommenter la ligne
server_tokens off;
cp /etc/nginx/sites-available/default /etc/nginx/sites-available/piwigo nano /etc/nginx/sites-available/piwigo ln -s /etc/nginx/sites-available/piwigo /etc/nginx/sites-enabled/piwigo sudo unlink /etc/nginx/sites-enabled/default
cd /var/www/html wget https://piwigo.org/download/dlcounter.php?code=latest --output piwigo.zip unzip piwigo
mkdir /var/www/html/piwigo cd /var/www/html/piwigo wget https://piwigo.org/download/dlcounter.php?code=netinstall install.php chown -R www-data /var/www/html/piwigo/ chgrp -R www-data /var/www/html/piwigo/
Machine MySQL
Editer le fichier /etc/mysql/mysql.conf.d/mysqld.cnf et remplacer la ligne
bind-address = 127.0.0.1
par
bind-address = 0.0.0.0
CREATE USER 'piwigo'@'192.168.1.100' IDENTIFIED WITH mysql_native_password BY 'password'; systemctl restart mariadb.service