Установка свежих nginx, php-fpm, mysql на CentOS 6.x

Репозиторий EPEL:

$ yum install http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

Репозиторий REMI:

$ yum install http://rpms.remirepo.net/enterprise/remi-release-6.rpm

Репозиторий nginx (main):

$ yum install http://nginx.org/packages/centos/6/noarch/RPMS/nginx-release-centos-6-0.el6.ngx.noarch.rpm
или

Репозиторий nginx (mainline):

$ cat > /etc/yum.repos.d/nginx.repo << EOF
[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/mainline/centos/6/\$basearch/
gpgcheck=0
enabled=1
EOF

Репозиторий MySQL 5.7:

$ yum install http://dev.mysql.com/get/mysql57-community-release-el6-7.noarch.rpm

Репозиторий PostgreSQL:

$ yum install http://yum.postgresql.org/9.2/redhat/rhel-6-x86_64/pgdg-centos92-9.2-7.noarch.rpm
$ yum update
$ yum upgrade

Установка Nginx:

$ yum install nginx
Установка PHP-FPM из репозитория REMI:
$ yum --enablerepo=remi,remi-php56 install php php-common php-cli php-gd php-pear php-mysqlnd php-pdo php-sqlite php-pecl-memcached php-pecl-memcache php-mbstring php-xml php-soap php-mcrypt php-fpm php-opcache
$ pear install Mail


Установка MySQL:

$ yum install mysql-community-server mysql-utilities

# разрешим инклюдить cnf
$ echo '!includedir /etc/my.cnf.d/' >> /etc/my.cnf

# отключим политику паролей
$ cat > /etc/my.cnf.d/passw_policy.cnf << EOF
[mysqld]
#plugin-load=validate_password.so
validate-password=OFF
validate_password_policy=0
validate_password_mixed_case_count=0
validate_password_number_count=0
validate_password_special_char_count=0
EOF

# неплохая конфигурация MySQL 5.7
$ wget -P /etc/my.cnf.d/ https://raw.githubusercontent.com/morgo/mysql-compatibility-config/master/mysql-57/mysql-57-new-applications.cnf 

# рестартуем сервис
$ service mysqld start
# сбросим пароль на new_password
mysql$ ALTER USER USER() IDENTIFIED BY 'new_password';

# запускаем со временным паролем от учетки root
$ mysql_secure_installation -p`grep "temporary password" /var/log/mysqld.log | awk {' print $NF '}`
 

Установка PostgreSQL:

$ yum install postgresql92 postgresql92-server
$ chkconfig postgresql-9.2 on
$ service postgresql-9.2 initdb

*** Зависимости при установке PHP-FPM из исходных текстов:

$ yum groupinstall "Development Tools"

# from base repo:
$ yum install bzip2-devel curl-devel libpng-devel db4-devel libXpm-devel gdbm-devel libjpeg-devel freetype-devel t1lib-devel libxml2-devel openssl-devel libxslt-devel

# from epel repo:
$ yum install libmcrypt-devel