How to install Lychee on CentOS 6

Install EPEL & Remi repositories

yum install epel-release

rpm -ihv

Install Apache

yum install httpd
chkconfig httpd on

Install PHP

yum install php php-gd php-mysqlnd php-json php-mbstring php-common php-pecl-imagick --enablerepo=remi-php56

Edit PHP configuration file
sed -i "s/max_execution_time = 30/max_execution_time = 200/g" /etc/php.ini
sed -i "s/post_max_size = 8M/post_max_size = 100M/g"  /etc/php.ini
sed -i "s/upload_max_filesize = 2M/upload_max_filesize = 20M/g" /etc/php.ini
sed -i "s/memory_limit = 128M/memory_limit = 256M/g" /etc/php.ini
echo upload_max_size = 100M >> /etc/php.ini

Install MySQL

yum install mysql mysql-server
chkconfig mysqld on

Start Apache & MySQL

/etc/init.d/httpd start
/etc/init.d/mysqld start

Install Lynchee

cd /root
mkdir /var/www/html/photos
cp -a Lychee-master/. /var/www/html/photos
chmod -R 777 uploads/ data/

Open Lychee in your browser and follow the given steps.