How to install ngx_php7 NGINX module in CentOS/RHEL 7


by Danila Vershinin, February 3, 2019

How to use PHP in your NGINX configuration

Read More...

PHP Command-Line Interface


by Danila Vershinin, December 30, 2018

We start with the basics of what PHP command line interface is and what kind of CLI scripts there are… And going all the way towards correctly running PHP CLI scripts via cron.

Read More...

Cleanup PHP Sessions like a PRO


by Danila Vershinin, December 17, 2018

How to cleanup PHP sessions in a performance friendly way. Simple and efficient approach to delete stale PHP session files

Read More...

Linux Huge Pages and Web Performance


by Danila Vershinin, May 9, 2018

Squeeze out more performance juice out of that Linux by using Huge Pages memory management.

Read More...

PHP Security: disable error_reporting() NOW


by Danila Vershinin, April 9, 2018

Disable php error_reporting() function to secure your server from malware and bad coders pushing junk to it.

Read More...

Add $_SERVER[‘REDIRECT_URL’] to nginx.


by Danila Vershinin, March 28, 2018

Here’s how to turn your nginx into a little bit of Apache by having nginx set and make use of $_SERVER[‘REDIRECT_URL’].

Read More...

The evil increment_id? Or why MySQL is not using an index


by Danila Vershinin, February 17, 2018

Debugging guide to help you with your MySQL index optimization in Magento 1.x

Read More...

PHP and HTTP caching


by Danila Vershinin, September 16, 2017

I figure there isn’t much all-in-one information on the subject and this will be a constant draft with my findings. PHP 7 and caching headers PHP itself alters Cache-Control headers only when all conditions are true at the same time during request: session_start() has been called session.cache_limiter has default value of nocache It adds 3 […]

Read More...

Zend Opcache


by Danila Vershinin, September 22, 2016

PHP is fast. But not when you use CMS with hundreds of small PHP files. WordPress, Magento, Joomla are all great examples of popular CMS solutions, but you can find their performance extremely slow. This is due to the fact, that PHP is interpreted language. Each time a website page is requested, all those files […]

Read More...