Optimizing NGINX and PHP-fpm for high traffic sites

After 7 years of using NGINX with PHP, we learned a couple of things about how to best optimize NGINX and PHP-fpm for high traffic sites. Below is a collection of tips and recommendations: 1. Switch from TCP to UNIX domain sockets UNIX domain sockets offer better performance than TCP sockets over loopback interface (less copying ...

OpenSSL Heartbleed exploit and what it means for you

At the start of this week there was an OpenSSL vulnerability that was made public which effectively allowed hackers to be able to dump 64kb worth of content sitting in the server memory. This memory is often used to store private keys and other private information. For those that are unaware, OpenSSL is the cryptographic ...

Nginx for Developers: An Introduction

If you are a web developer, you’ve probably heard of nginx (pronounced engine-x). Nginx is a fast and extremely powerful http and reverse proxy server that can be used to quickly and easily serve webpages. Unfortunately, like many sysops tools, there is very little documentation and very few tutorials that explain how it works and how to ...

Quickly check installed version(s) of PHP

In order to quickly check installed version(s) of PHP run: /usr/local/cpanel/bin/rebuild_phpconf --current

How to find path to php.ini file

No matter what control panel you are using, the complete way to find what php.ini file to edit for specific domain is following: Create file inside your site, name it for example info.php , with content: <? phpinfo() ?> Open file in your browser window, like http://domain.tld/info.php Search for line Loaded Configuration File, it will show you full ...