Installing Lychee on EndeavourOS Latest

Lychee is an open-source photo management system that allows you to upload, organize, and share your photos through a web interface. In this tutorial, we will show you how to install Lychee on the latest version of EndeavourOS using Apache and PHP.

Prerequisites

Before we start with the installation process, you need to ensure that your system meets the following requirements:

Step 1: Install Apache and PHP

If you have not already installed Apache and PHP, you can do so by running the following command:

sudo pacman -S apache php php-apache mariadb

It will install Apache web server, PHP and MySQL server.

Step 2: Install Lychee

  1. Open your terminal and navigate to the Apache web root directory:

    cd /srv/http/
    
  2. Download the latest version of Lychee from the official GitHub repository:

    sudo git clone https://github.com/LycheeOrg/Lychee.git
    
  3. Adjust the ownership of the Lychee directory:

    sudo chown -R http:http Lychee/
    

Step 3: Configure Apache

  1. Open the Apache configuration file in your terminal:

    sudo nano /etc/httpd/conf/httpd.conf
    
  2. Search for and uncomment the following lines to enable the PHP module:

LoadModule php7_module modules/libphp7.so
AddHandler php7-script php
  1. Also, make sure to uncomment the following line to allow .htaccess files:

    AllowOverride All
    
  2. Save and close the file.

Step 4: Configure MariaDB

Lychee requires a MySQL or MariaDB server to store user data. You can set up a new database and user for Lychee to use by following these steps:

  1. Open your terminal and log in to MariaDB as the root user:

    sudo mysql -u root
    
  2. Create a new database for Lychee:

    CREATE DATABASE lychee;
    
  3. Create a new user with the necessary permissions for the Lychee database:

    GRANT ALL ON lychee.* TO 'lycheeuser'@'localhost' IDENTIFIED BY 'your_password_here';
    

    Note: Replace "your_password_here" with a strong password.

  4. Exit from the MySQL shell:

    exit
    

Step 5: Configure Lychee

  1. Open your web browser and navigate to http://localhost/Lychee/.

  2. Select your language and click the "Start" button.

  3. In the database configuration page, enter the following information:

    • Host: localhost
    • Username: lycheeuser
    • Password: your_password_here (the password you set up in Step 4)
    • Database: lychee
  4. Click the "Continue" button to proceed.

  5. In the next page, you will need to set up a username and password for the admin account.

  6. Click "Finish" to complete the installation.

Conclusion

Congratulations! You have successfully installed Lychee on your EndeavourOS system. You can now upload your photos and start organizing them.

If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!

Alternatively, for the best virtual desktop, try Shells!