Sharing photos on Raspberry Pi with Lychee

Warning : This article has been automatically translated by Bing Translate

If you want to store your photos at home and be able to share with family or friends, so I advise you the superb Lychee.


Discovered thanks to the french forum dedicated to the Raspberry, Lychee is a lightweight and fast Photo Manager, easily insatiable on our favorite Raspberry (You can try it on this page). Need a database and a web server.

  1. Update the system
     apt-get update && apt-get upgrade -y
  2. Install PHP support
    apt-get install php5-fpm php5-gd libgd2-xpm libpcrecpp0 libxpm4
  3. Install Nginx
    apt-get install nginx
  4. Create the directory /var/www
    mkdir /var/www
    chown -R www-data:www-data /var/www
  5. Install MySQL and PHP support
    apt-get install -y php5-mysql mysql-server
  6. Edit the /etc/php5/fpm/php.ini file by adding at the end :
    extension = php_mbstring.dll
    extension = php_exif.dll
    extension = php_gd2.dll
    max_execution_time = 200
    post_max_size = 200M
    upload_max_size = 200M
    upload_max_filesize = 20M
    max_file_uploads = 100
  7. Restart the PHP service
    service php5-fpm restart
  8. Install Git
     apt-get install -y git
  9. Retrieve the latest version of Lychee
    cd /var/www
    git clone
    mv Lychee/* .
    rm -rf Lychee/
    chown -R www-data:www-data /var/www
  10. Configure Nginx
    rm /etc/nginx/sites-available/default

    And then create the file/etc/nginx/sites-available/lychee with the following content

    server {
    root /var/www;
    index index.php index.html index.htm;
    location ~ .php$ {
        fastcgi_pass unix:/var/run/PHP5-fpm.sock;
        fastcgi_index index.php;
        include fastcgi_params;
  11. Enable the site
    ln -s /etc/nginx/sites-available/lychee /etc/nginx/sites-enabled/lychee
  12. Appointment now with browser at your Raspberry
    1You enter the information necessary to achieve your MySQL database
  13. Create an account to access your photos
  14. You get on the main page
  15. To send pictures, you create an album, and then you click the sign plus at the top right
    3And hop voila !

You now have your photos in your album !

You can share your photos via a Public album, share a full album, delete a photo, move it, etc. You can even edit the EXIF data :


And finally there is a plugin to automatically synchronize a directory in Lychee. You can install Grive to synchronize this same directory with Dropbox. Easy to take a picture with your Smartphone, send it on Dropbox and then retrieve automatically in Lychee.

Have fun with your new Photo Manager !

You may also like...