Tags » Php-fpm

High Load on Wordpress woth Nginx, Php-fpm, W3total Cache, Xcache and Memcached

Like any php-fpm newb, I’ve been constantly baffled on how to setup a WordPress site of mine using Nginx and Php-fpm. The site gets a lot of visitors so I had to install caching mechanisms like W3total Cache, Memcached and Xcache. 595 more words


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;
… 11 more words

nginx: More FastCGI Stuff

nginx’s a pretty powerful server, no doubt. But depending on your situation, a simple caching solution as discussed in my FastCGI Caching Basics article might not be enough, or may outright break your setup. 970 more words

nginx: FastCGI Caching Basics

I’m back!

Today, I am going to share some things regarding how to do caching in nginx, with a bit of a write up and history first. 1,757 more words

PHP-FPM: Health Monitoring Status Page

Recently on our hosted site, some of our end users were receiving 502-Bad Gateway Errors sporadically. In researching the problem, we recognized that one of several web servers (being load-balanced across multiple servers) was constantly throwing 502-Bad Gateway errors back to the client. 260 more words

Web Development

PHP-FPM: Logging your errors

Ever need to log errors from PHP-FPM (or obtain more details)? I recently discovered the setting catch_workers_output within the etc/php-fpm.d/www.conf configuration file for php-fpm. By enabling this setting your php related errors will now be logged to your php-fpm error log file.

Web Development

Setting up Debian, nginx, php-fpm

remember that guide and that:

Again, this is a guide that is for me, from my context. Therefore, many things might be assumed as known. 231 more words