1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| sudo dnf install wget unzip
sudo wget https://piwigo.org/download/dlcounter.php?code=latest -O piwigo.zip
sudo unzip piwigo.zip
sudo chown -R nginx:nginx .
sudo chmod -R 777 .
vi /etc/nginx/conf.d/piwigo.conf
server { listen 8888; server_name example.com; root /home/piwigo; index index.php index.html index.htm;
location / { try_files $uri $uri/ /index.php?$query_string; }
location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/run/php-fpm/www.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } }
CREATE DATABASE piwigo;
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON piwigo.* TO 'newuser'@'localhost';
flush privileges;
sudo systemctl restart nginx sudo systemctl restart mariadb sudo systemctl restart php-fpm
|