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
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s