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.
Before we start with the installation process, you need to ensure that your system meets the following requirements:
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.
Open your terminal and navigate to the Apache web root directory:
cd /srv/http/
Download the latest version of Lychee from the official GitHub repository:
sudo git clone https://github.com/LycheeOrg/Lychee.git
Adjust the ownership of the Lychee directory:
sudo chown -R http:http Lychee/
Open the Apache configuration file in your terminal:
sudo nano /etc/httpd/conf/httpd.conf
Search for and uncomment the following lines to enable the PHP module:
LoadModule php7_module modules/libphp7.so
AddHandler php7-script php
Also, make sure to uncomment the following line to allow .htaccess files:
AllowOverride All
Save and close the file.
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:
Open your terminal and log in to MariaDB as the root user:
sudo mysql -u root
Create a new database for Lychee:
CREATE DATABASE lychee;
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.
Exit from the MySQL shell:
exit
Open your web browser and navigate to http://localhost/Lychee/.
Select your language and click the "Start" button.
In the database configuration page, enter the following information:
localhost
lycheeuser
your_password_here
(the password you set up in Step 4)lychee
Click the "Continue" button to proceed.
In the next page, you will need to set up a username and password for the admin account.
Click "Finish" to complete the installation.
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!