Here are some basic CentOS 7 modifications for Linux nginx MariaDB PHP.
Use your favorite editor when editing files. I prefer vim, but if you want to use nano or some other please do that.
Epel-repo:
yum install epel-release
MariaDB:
vim /etc/yum.repos.d/MariaDB.repo
# MariaDB 10.2 CentOS repository list
# http://downloads.mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.2/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
nginx repo:
vim /etc/yum.repos.d/nginx.repo
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/7/$basearch/
gpgcheck=0
enabled=1
Remi Repo:
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
vim /etc/yum.repos.d/remi.repo, under [remi] change enable=0 to enable=1
Decide what php version you want to use. php 5.5 and 5.6 must be enabled in /etc/yum.repos.d/remi.repo, but if you want to use PHP 5.4, 7.0, 7.1 or 7.2 they have separate files in /etc/yum.repos.d/remi-php70.repo where you can enable the version you want.
Now we can install nginx, php-fpm, mariadb
yum -y install nginx php-fpm mariadb-server mariadb-client