PHP 5.3.27 on CentOS 6.4
# rpm --import http://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6 # rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm # rpm --import...
View Articleseparate php pool for same vhost
location /testurl { #NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini include /etc/nginx/fastcgi_params; fastcgi_intercept_errors on; fastcgi_pass 127.0.0.1:9001; fastcgi_index index.php;...
View ArticleFixing timeout between Nginx and PHP-FPM
error: 2013/01/19 11:36:59 [error] 14564#0: *1215 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 123.456.789.123, server: example.com, request:...
View Articlephp-fpm processes monitoring / profiling
php-fpm: request_slowlog_timeout = 10 slowlog = /var/log/php-fpm/slow.$pool.log source
View Articlephp7 mysql
source use mysqli or include the following function: https://gist.githubusercontent.com/rubo77/1db052edd8d723b59c79790b42635f1e/raw/ab3b432b5c2a72f337403353b5ecc194e1e711f2/fix_mysql.inc.php...
View ArticleAdjusting child processes for PHP-FPM (Nginx)
Problem: The following warning message appears in the logs:[26-Jul-2012 09:49:59] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32...
View Articledisable wordpress php notices
ini_set('display_errors','Off'); ini_set('error_reporting', E_ALL ); define('WP_DEBUG', false); define('WP_DEBUG_DISPLAY', false); https://aristath.github.io/blog/wp-hide-php-errors
View Article