This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
software:lychee [2021/12/31 02:17] – chris | software:lychee [2022/11/13 12:06] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== Lychee on Debian Bullseye ===== | ||
+ | * https:// | ||
+ | * https:// | ||
+ | * [[https:// | ||
+ | |||
+ | < | ||
+ | ### Install deps | ||
+ | apt install git-core php-bcmath php-ctype php-exif php-fileinfo \ | ||
+ | php-gd php-json php-mbstring php-pdo php-tokenizer php-xml \ | ||
+ | php-zip php php-fpm php-sqlite3 php-intl php-pgsql \ | ||
+ | nginx sudo composer nvi | ||
+ | | ||
+ | ### Optinonally, | ||
+ | apt install postgresql | ||
+ | |||
+ | sudo -u postgres bash | ||
+ | # Create user, will ask for password | ||
+ | createuser -P -s -e chris2 | ||
+ | createdb -O chris2 lychee2 | ||
+ | # Verify network access | ||
+ | psql -h 127.0.0.1 -U chris2 lychee2 | ||
+ | |||
+ | ### Installation | ||
+ | git clone https:// | ||
+ | # or, get release | ||
+ | cd / | ||
+ | wget https:// | ||
+ | mv Lychee-* Lychee | ||
+ | |||
+ | ### Lychee configuration | ||
+ | chown -R www-data: | ||
+ | usermod -s /bin/bash www-data | ||
+ | su - www-data | ||
+ | cd / | ||
+ | composer install --no-dev | ||
+ | cp .env.example .env | ||
+ | php artisan key: | ||
+ | exit | ||
+ | usermod -s /bin/false www-data | ||
+ | |||
+ | ### Nginx configuration | ||
+ | vi / | ||
+ | # template from https:// | ||
+ | # also add this: | ||
+ | # | ||
+ | # also ensure this is set: | ||
+ | # index index.php; | ||
+ | # root / | ||
+ | |||
+ | systemctl restart nginx | ||
+ | </ | ||
+ | |||
+ | Then: | ||
+ | |||
+ | * Access http:// | ||
+ | * click through the installer, once done, click the first of the 5 symbols, " | ||
+ | * create a user | ||
+ | |||
+ | ===== Lychee container building/ | ||
+ | * https:// | ||
+ | * https:// | ||
+ | |||
+ | < | ||
+ | # build locally | ||
+ | podman build -t lychee lychee-build-bullseye/ | ||
+ | |||
+ | # run locally | ||
+ | podman run -p 8080:80 --name lychee -d \ | ||
+ | -v / | ||
+ | localhost/ | ||
+ | | ||
+ | # access 127.0.0.1: | ||
+ | # complete installation, | ||
+ | podman commit lychee lychee2 | ||
+ | podman push lychee2 docker-archive: | ||
+ | |||
+ | # on destination system | ||
+ | podman pull docker-archive: | ||
+ | podman run -p 8080:80 --name lychee \ | ||
+ | -d -v / | ||
+ | localhost/ | ||
+ | </ | ||
+ | |||
+ | ===== Lychee sqlite hints ===== | ||
+ | < | ||
+ | apt install sqlite3 | ||
+ | sqlite3 database/ | ||
+ | sqlite3 database/ | ||
+ | sqlite3 database/ | ||
+ | |||
+ | .tables | ||
+ | .schema photos | ||
+ | select * from photos; | ||
+ | update photos set title=' | ||
+ | </ | ||
+ | |||
+ | ===== Todo ===== | ||
+ | * complete the setup procedure: | ||
+ | * creation of new container | ||
+ | * import album | ||
+ | * run " | ||
+ | * cut down permissions | ||
+ | * transfer to fc | ||
+ | * find a good place to store the scripts | ||
+ | * migrate an example album |