Lychee is a free, open-source software that allows you to manage and share your photos. It can be installed on Kali Linux latest for personal use or for hosting your own photo gallery. In this tutorial, we will guide you on how to install Lychee on Kali Linux.
Lychee requires an Apache web server to run. Follow the below steps to install Apache on your Kali Linux:
sudo apt update
sudo apt install apache2
After installing the Apache web server, start it by running the below command:
sudo systemctl start apache2
It is also a good practice to enable Apache to automatically start at boot time.
sudo systemctl enable apache2
Lychee needs PHP 7.0 or higher to run. Run the following command to install PHP and the required extensions:
sudo apt install php libapache2-mod-php php-mysql php-gd php-mbstring php-zip
Lychee requires MySQL server to store the photo and user data. Follow the below steps to install MySQL on your Kali Linux:
sudo apt update
sudo apt install mysql-server
During the installation, you will be prompted to set a root password for the MySQL server.
After the installation, start the MySQL server by running the following command:
sudo systemctl start mysql
It is also a good practice to enable MySQL to automatically start at boot time:
sudo systemctl enable mysql
After the successful installation of MySQL server, create a new MySQL database and user for Lychee, by running the below command:
mysql -u root -p
Enter your MySQL root password when prompted.
CREATE DATABASE lychee;
CREATE USER 'lycheeuser'@'localhost' IDENTIFIED BY 'lycheepassword';
GRANT ALL PRIVILEGES ON lychee.* TO 'lycheeuser'@'localhost';
FLUSH PRIVILEGES;
exit;
Download the latest version of Lychee from its official website or GitHub repository. In this tutorial, we will download the Lychee V4.1.5 release.
wget https://github.com/LycheeOrg/Lychee/releases/download/v4.1.5/Lychee-v4.1.5.zip
Extract the downloaded Lychee package to the Apache web root folder:
sudo unzip Lychee-v4.1.5.zip -d /var/www/html/
Make sure that the ownership of the Lychee files in /var/www/html/Lychee
is set to the www-data
user and group:
sudo chown -R www-data:www-data /var/www/html/Lychee/
Copy the configuration file and edit it with your MySQL user and password information:
cd /var/www/html/Lychee
cp data/config.php.dist data/config.php
nano data/config.php
Change the following settings:
$dbHost = 'localhost';
$dbName = 'lychee';
$dbUser = 'lycheeuser';
$dbPassword = 'lycheepassword';
Save and exit the file.
Open a web browser and access Lychee by entering the following URL:
http://localhost/Lychee/
Congratulations! You have successfully installed Lychee on Kali Linux. Start uploading your photos and enjoy your photo gallery.
In this tutorial, we have explained the step-by-step process of installing Lychee on Kali Linux Latest. We hope that this tutorial was helpful for you. If you have any questions or feedback, please leave a comment below.
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!