HBHM

If anyone asks me what's your lifetime goal, I'd say it is to live with Healthy Body and Healthy Mind. Healthy body is easy to measure. Healthy mind isn't easy to measure. In order to measure something, there needs a definition. Healthy of the physical body can be defined to some extend. Body weight. Eye … Continue reading HBHM

Advertisements

PSI – How to Optimize Images

I have been using ewww for years. While running a Google PageSpeed Insights test for a client's site, I noticed several images aren't up to the mark. EWWW said it's compressed. So, downloaded the optimized files from Google PSI and compared with the original images. ImageMagick has a nice command line utility called identify that helps to find the … Continue reading PSI – How to Optimize Images

Display Active Conf in php-fpm pool

Php-fpm pool configuration contains 400+ lines (for example in Ubuntu 16.04). In reality, we may use only about 20 lines or less than 5% of the file. The original configuration file contains lines that explains what each config does. It is good practice to have inline documentation. In certain cases, we may want to know what lines are … Continue reading Display Active Conf in php-fpm pool

systemctl automatically restart service

References: Ensure systemd services restart on failure by Jon Archer php-fpm systemd unit with auto-restart by Juan Luis Boya García systemd Project Web Page systemd is a system and service manager that runs as PID 1 and starts the rest of the system and services. The main command used to introspect and control systemd is systemctl. Basically … Continue reading systemctl automatically restart service