Tag Archives: php-fpm

centos oracle uek red hat 5 6 7 nginx php 5.6 install howto


install EPEL and IUSC repos

# yum install nginx
# yum install php56u-fpm

edit /etc/nginx/conf.d/default.conf and replace the default fastcgi_param value as below

    # pass the PHP scripts to FastCGI server listening on
    location ~ \.php$ {
        root           html;
        fastcgi_index  index.php;
        # fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
        include        fastcgi_params;

restart nginx and php-fpm services

# service nginx start
# service php-fpm start