Basic packages

$ yum install git unzip wget curl nano
$ yum groupinstall "Development Tools"

yum database

$ yum clean dbcache
$ yum clean all

Node.js

$ curl -sL https://rpm.nodesource.com/setup | bash -

MySQL Community Server

Red Hat Enterprise Linux 6 / Oracle Linux 6 (Architecture Independent), RPM Package

$ rpm -ivh "http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm"

Red Hat Enterprise Linux 7 / Oracle Linux 7 (Architecture Independent), RPM Package

$ rpm -ivh "http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm"

Webtatic RPM

EL6 for CentOS/RHEL 6

$ rpm -Uvh "https://mirror.webtatic.com/yum/el6/latest.rpm"

EL7 for CentOS/RHEL 7

$ rpm -Uvh "https://mirror.webtatic.com/yum/el7/epel-release.rpm"
$ rpm -Uvh "https://mirror.webtatic.com/yum/el7/webtatic-release.rpm"

Web Server

for CentOS 6

$ yum install nginx mysql mysql-server php php-mysql php-gd php-imagick php-mcrypt php-mbstring php-xmlrpc php-devel php-pear

http://www.if-not-true-then-false.com/2011/install-nginx-php-fpm-on-fedora-centos-red-hat-rhel/

for CentOS 7

$ yum install nginx mariadb mariadb-server php php-mysql php-fpm php-gd php-mbstring php-mcrypt

from Webtatic RPM

$ yum -y install nginx mysql-community-server nodejs php55w php55w-cli php55w-common php55w-devel php55w-fpm php55w-gd php55w-imap php55w-mbstring php55w-mcrypt php55w-mysql php55w-odbc php55w-pdo php55w-pear php55w-process php55w-xml

PHP-FPM

for CentOS 6

$ chkconfig php-fpm on

for CentOS 7

$ systemctl enable mariadb.service

Configuration

/etc/php-fpm.d/www.conf

PHP memcache & memcached

$ yum install re2c zlib-devel libmemcached memcached
$ pecl install memcache
$ service memcached start

PHP SSH2

$ yum install libssh2-devel
$ pecl install ssh2

nginx

yum repo

/etc/yum.repos.d/nginx.repo

[nginx]
name=nginx repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=0
enabled=1

python

IUS Community RPM

$ rpm -Uvh http://dl.iuscommunity.org/pub/ius/stable/CentOS/6/x86_64/ius-release-1.0-13.ius.centos6.noarch.rpm
$ yum install python33 python33-devel

Replace old version

$ rm /usr/bin/python
$ ln -s /usr/bin/python3 /usr/bin/python

python pip

$ wget https://bootstrap.pypa.io/get-pip.py
$ python3 get-pip.py

uwsgi

$ pip3 install uwsgi

Service script

$ wget -O uwsgi https://raw.githubusercontent.com/jgoldschrafe/rpm-uwsgi/master/SOURCES/uwsgi.init
$ mv uwsgi /etc/init.d/uwsgi
$ chmod +x /etc/init.d/uwsgi
$ mkdir /etc/uwsgi/
$ mkdir /var/log/uwsgi/

/etc/init.d/uwsgi

uwsgi="/usr/bin/uwsgi"

Dev

$ service php-fpm restart && service nginx restart && service uwsgi restart

Networking

/etc/sysconfig/network-scripts/ifcfg-eth0

ONBOOT=yes

Creating user

http://danilodellaquila.com/blog/create-a-system-administrator-user-on-centos-server