What is Lychee?
Lychee is a free photo-management tool, which runs on your server or web-space. Installing is a matter of seconds. Upload, manage and share photos like from a native application. Lychee comes with everything you need and all your photos are stored securely. -https://lycheeorg.github.io/
Installation
- Download XAMPP Download
- Download Lychee Download
- Install Microsoft Visual C++
- Right click the downloaded XAMPP file > Extract All...
- Right click the downloaded Lychee.zip file > Extract All...
- Rename the Extracted folder lychee (all lowercase)
- Cut the lychee folder inside the XAMPP directory
- Navigate back to the Downloads directory and copy the extracted XAMPP directory to a safe location to run from, C:\Program Files for example
- Run XAMPP/setup_xampp.bat to update the configuration files with the new server location
- Navigate into XAMPP/PHP and edit php.ini in a text editor
- Find the list of extensions and make sure the following are enabled by removing the ; at the start of the line
extension=curl
extension=fileinfo
extension=gd
extension=xsl
extension=mbstring
extension=mysqli
extension=pdo_mysql - Save the changes to php.ini
- Navigate into XAMPP/Apache/conf and edit httpd.conf in a text editor
- Paste the following at the bottom of the httpd.conf file
Alias /lychee "C:/Program Files/xampp/lychee/public"
<Directory "C:/Program Files/xampp/lychee/public">
# enable the .htaccess rewrites
AllowOverride All
Options +FollowSymLinks
Require all granted
Order allow,deny
Allow from All
</Directory> - Save the changes and close out of the editor
- Back in File Explorer, run XAMPP/xampp-control.exe
- Click the Start buttons next to Apache and MySQL
- Navigate to XAMPP/mysql/bin
- Hold the SHIFT key and right click in the white space > Open PowerShell window here...
- Run the following commands in the PowerShell window to setup the database
.\mysql -u root
CREATE DATABASE lychee;
GRANT ALL ON lychee.* to 'lychee_rw'@'localhost' IDENTIFIED BY 'Lych33!';
FLUSH PRIVILEGES;
EXIT;
exit
Lychee Web Installer
- Open a web browser and navigate to http://DNSorIP/lychee
- Click Next at the Lychee welcome screen
- Click Next at the Requirements Check
- Click Next at the Permissions Check
- Update at least the following values in the
APP_URL=http://DNSorIP
APP_DIR=/lychee
DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=lychee
DB_USERNAME=lychee_rw
DB_PASSWORD=Lych33! - Click Save > Click Install
- Once the installation completes click Set up admin account
- Enter a Username > Enter and confirm a Password > Click Create admin account
- Click Open Lychee
Documentation: https://lycheeorg.github.io/docs/#installation