Categories
SysOps

How to strace PHP-FPM processes

Isolate the problem and strace multiple PHP-FPM (FastCGI Process Manager for PHP) processes to identify the culprit.

Categories
SysOps

How to monitor PHP-FPM pool

Monitor PHP-FPM (FastCGI Process Manager) pool using curl utility, cgi-fcgi application or slightly modified Python script that was used to display PHP-FPM pool information.

Categories
SysOps

How to display PHP-FPM pool information using UNIX socket and Python script

Display PHP-FPM (FastCGI Process Manager) pool information using UNIX socket and Python script. I thought it would be easy to write a simple FCGI client. Apparently not, but it was an exciting and rewarding experience.

Categories
Uncategorized

How to display PHP-FPM pool information using command-line utilities

Display PHP-FPM (FastCGI Process Manager) pool information using command-line utilities like curl or cgi-fcgi.

Categories
Uncategorized

How to fix undefined function utf8_decode error in PHP application

This is just another interesting problem to solve. I have encountered this subtle difference in PHP packages when I moved personal Dokuwiki instance from Debian Jessie to Debian Stretch.

Categories
Uncategorized

WordPress – How to check if user is logged in

Function to check if user is logged in is is_user_logged_in(). It would return true if user is logged in and false otherwise.

How to hide posts from selected category on the main WordPress page

Hide posts from the selected category on the main WordPress page.

Categories
WebOps

How to use ImageMagick effects with Coppermine

After getting fun with Coppermine Photo Gallery for some time, I wanted to achieve a polaroid-like effect (using ImageMagick) for thumbnails and intermediate pictures.