70 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			70 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			Markdown
		
	
	
	
	
	
| ---
 | |
| type: "note"
 | |
| ---
 | |
| 
 | |
| # Piwigo
 | |
| 
 | |
| ```bash
 | |
| # Warning: Trying to access array offset on value of type null in /var/www/html/piwigo/admin/include/plugins.class.php on line 330
 | |
| # http://localhost/piwigo/identification.php
 | |
| # http://localhost/piwigo/admin.php
 | |
| mv /home/mike/'=2003.4 Winter' /var/www/html/piwigo/galleries/=2003.4-Winter
 | |
| mv /var/www/html/piwigo/galleries/=2003.3-Fall /var/www/html/piwigo/galleries/2003-3-Fall
 | |
| mv /var/www/html/piwigo/galleries/=2003.4-Winter /var/www/html/piwigo/galleries/2003-4-Winter
 | |
| mv /home/mike/'=2004.0 Winter' /var/www/html/piwigo/galleries/2004.0-Winter
 | |
| cp ~/.bash_history /home/bash_history.txt
 | |
| # https://endjin.com/blog/2021/11/setting-up-multiple-wsl-distribution-instances
 | |
| mkdir Ubuntu-PIWIGO
 | |
| wsl --export Ubuntu Ubuntu-PIWIGO\ubuntu-PIWIGO.tar
 | |
| wsl --import Ubuntu-PIWIGO .\Ubuntu-PIWIGO Ubuntu-PIWIGO\ubuntu-PIWIGO.tar
 | |
| wsl -d Ubuntu-PIWIGO
 | |
| wsl --unregister ubuntu
 | |
| mkdir Ubuntu-PhotoPrism
 | |
| wsl --export Ubuntu Ubuntu-PhotoPrism\ubuntu-PhotoPrism.tar
 | |
| wsl --import Ubuntu-PhotoPrism .\Ubuntu-PhotoPrism Ubuntu-PhotoPrism\ubuntu-PhotoPrism.tar
 | |
| wsl -d Ubuntu-PhotoPrism
 | |
| wsl --unregister ubuntu
 | |
| wsl --unregister Ubuntu-PIWIGO
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| service php8.1-fpm restart
 | |
| curl https://piwigo.org/download/dlcounter.php?code=latest --output piwigo.zip
 | |
| unzip piwigo.zip
 | |
| mv piwigo /var/www/html/
 | |
| chmod -R 777 /var/www
 | |
| chown -R www-data:www-data /var/www/html/piwigo/
 | |
| chmod -R 755 /var/www/html/piwigo/
 | |
| links http://localhost/piwigo/install.php
 | |
| apt-get install mariadb-server -y
 | |
| mysql_secure_installation
 | |
| mariadb
 | |
| > CREATE DATABASE piwigo;
 | |
| > CREATE USER 'piwigo'@'localhost' IDENTIFIED BY 'Logan0907';
 | |
| > GRANT ALL ON piwigo.* TO 'piwigo'@'localhost' IDENTIFIED BY 'Logan0907' WITH GRANT OPTION;
 | |
| > GRANT ALL ON *.* TO 'admin'@'localhost' IDENTIFIED BY 'Logan0907' WITH GRANT OPTION;
 | |
| > FLUSH PRIVILEGES;
 | |
| > EXIT;
 | |
| mysqladmin -u admin -p version
 | |
| mysqladmin -u piwigo -p version
 | |
| # http://localhost/piwigo/install.php
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| exit
 | |
| wsl --shutdown
 | |
| service php8.1-fpm status
 | |
| apt-get install nginx -y
 | |
| nano /etc/nginx/sites-available/default
 | |
| nginx -t
 | |
| systemctl restart nginx
 | |
| echo "<?php phpinfo(); ?>" >> /var/www/html/info.php
 | |
| https://www.atlantic.net/vps-hosting/how-to-install-piwigo-photo-gallery-on-ubuntu-20-04/
 | |
| apt-get install libapache2-mod-php php-common php-mbstring php-xmlrpc php-gd php-xml php-intl php-mysql php-cli php php-ldap php-zip php-curl git -y
 | |
| nano /etc/php/8.1/fpm/conf.d/piwigo.ini
 | |
| ```
 | |
| 
 | |
| ```bash
 | |
| 
 | |
| ```
 |