« Piwigo » : différence entre les versions

De Reliable Brain
(Page créée avec « Base Ubuntu 22 == Prérequis == * https://piwigo.org/guides/install/requirements == 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 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.con... »)
 
Ligne 8 : Ligne 8 :


  apt install nginx php mysql-client php-fpm php-cli php-curl php-mysql php-curl php-gd php-mbstring php-pear -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  
  exiftool ffmpeg poppler-utils imagemagick unzip


Si la base est locale :
Si la base est locale :
Ligne 26 : Ligne 26 :
ln -s /etc/nginx/sites-available/piwigo /etc/nginx/sites-enabled/piwigo
ln -s /etc/nginx/sites-available/piwigo /etc/nginx/sites-enabled/piwigo
sudo unlink /etc/nginx/sites-enabled/default
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
mkdir /var/www/html/piwigo

Version du 18 juin 2023 à 10:18

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/