64bit / x86_x64
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
32bit / i386
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
Jika gagal download silakan menggunakan mirror, ganti dl.fedoraproject.org
dengan download.fedoraproject.org
tapi tetap hati-hati menggunakan mirror, takut terjadi gagal atau repositorinya 404, lanjutkan dibawah ini:
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
nano /etc/yum.repos.d/nginx.repo
yum --enablerepo=remi,remi-test install nginx mysql mysql-server php php-common php-fpm
yum --enablerepo=remi,remi-test install php-mysql php-pgsql php-sqlite php-pecl-memcache php-gd php-mbstring php-mcrypt php-xml php-pecl-apc php-cli php-pear php-pdo
chkconfig --levels 235 httpd off
service httpd stop
chkconfig --add nginx
chkconfig --add mysqld
chkconfig --add php-fpm
chkconfig --levels 235 nginx on
chkconfig --levels 235 mysqld on
chkconfig --levels 235 php-fpm on
service nginx start
service mysqld start
Konfigurasi MySQL
/usr/bin/mysql_secure_installation
service php-fpm start
Merubah user dan group
nano /etc/php-fpm.d/www.conf
user = nginx group = nginx
nano /etc/nginx/conf.d/default.conf
Merubah config default server
Selesai merubah config default server
Test php info
nano /usr/share/nginx/html/info.php
service nginx restart
service php-fpm restart