yum -y epel-release
rpm -Uvh https://centos6.iuscommunity.org/ius-release.rpm
nano /etc/yum.repos.d/MariaDB.repo

copy this code to MariaDB.repo file
# MariaDB 5.5 CentOS repository list - created 2017-08-22 12:43 UTC
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1

save file, alt + x + s
next
yum -y install MariaDB-client MariaDB-server nginx php56u-fpm php56u-mbstring php56u-mcrypt php56u-mysql php56u-gd
done, next
chkconfig nginx on
chkconfig php-fpm on
chkconfig mysql on
service nginx start
service php-fpm start
service mysql start
mysql_secure_installation