Tag Archives: oeuk

cent/ouek/rhel 6.x linux 2.x nginx 1.x php 5.x phpmyadmin 4 install howto

cent/ouek/rhel linux nginx php phpmyadmin install is NOT easy !

see http://twiwoo.com/php/how-to-install-nginx-php-fpm-on-centos-6/

first add epel repo then

yum install nginx
yum install php-fpm
yum install phpmyadmin

fix major problem with default php install the MISSING session subdir

cd /var/lib/php
mkdir session
chown nginx:nginx session change apache to nginx

vi /etc/php-fpm.d/www.conf change apache to nginx

; RPM: apache Choosed to be able to access some dir as httpd
user = nginx
; RPM: Keep a group allowed to write in log dir.
group = nginx

start services

service nginx start
service php-fpm start