User Tools

Site Tools


Lychee on Debian Bullseye

### 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, if you want to use Postgresql (default is sqlite)
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 -U chris2 lychee2

### Installation
git clone /var/www/html/Lychee
# or, get release
cd /var/www/html/
mv Lychee-* Lychee

### Lychee configuration
chown -R www-data:www-data /var/www
usermod -s /bin/bash www-data
su - www-data
cd /var/www/html/Lychee
composer install --no-dev
cp .env.example .env
php artisan key:generate
usermod -s /bin/false www-data

### Nginx configuration
vi /etc/nginx/sites-enabled/default
# template from
# also add this:
#   client_max_body_size 100m;
# also ensure this is set:
#   index index.php;
#   root /var/www/html/Lychee/public/;

systemctl restart nginx


  • click through the installer, once done, click the first of the 5 symbols, “home”
  • create a user

Lychee container building/transfer

# build locally
podman build -t lychee lychee-build-bullseye/

# run locally
podman run -p 8080:80 --name lychee -d \
  -v /mnt/store/2016_japan_move/raw/:/importme:Z,ro \
  localhost/lychee /
# access
# complete installation, create user, then
podman commit lychee lychee2
podman push lychee2 docker-archive:lychee2

# on destination system
podman pull docker-archive:lychee2
podman run -p 8080:80 --name lychee \
  -d -v /mnt/store/2016_japan_move/raw/:/importme:Z,ro \
  localhost/lychee /

Lychee sqlite hints

apt install sqlite3
sqlite3 database/database.sqlite .dump >dump.sql # export to sql
sqlite3 database/database.sqlite .read <dump.sql # import sql
sqlite3 database/database.sqlite

.schema photos
select * from photos;
update photos set title='20140720_155806_on_patrol' where id='16309316325172';


  • 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
software/lychee.txt · Last modified: 2022/08/03 13:16 by