Search results: php performance

Monitoring PHP Performance and Diagnosing Bottlenecks

As one of the most widely used scripting languages for web development, PHP is known for its flexibility and ease of use. However, with complex applications and increasing traffic, PHP performance can sometimes take a hit. Monitoring PHP performance and diagnosing bottlenecks is essential to ensure that your web applications are running smoothly and efficiently. In […]

PHP performance: oPcache Control Panels

OPcache is a PHP extension that improves PHP performance by storing precompiled script bytecode in shared memory, thereby removing the need for PHP to load and parse scripts on each request. The extension is built-in for PHP 5.5+. If you want to improve PHP performance, the first step should be to use PHP 8+, which […]

PHP Performance: Additional CPU cores vs Faster CPU cores

Some time ago, I received an email from a client experiencing slow performance issues with a LEMP (Linux, Nginx, MySQL, and PHP webserver). During a full audit, I found that the server’s load average was pretty low (see below screenshot). However, the website was indeed very slow. There were some misconfigurations, but one of the […]

PHP 8 Compatibility Check and Performance Tips

PHP 7 was first released back on 03 Dec 2015. It’s been around a while! The PHP team encouraged upgrading to PHP 7, hailing its improvements such as being twice as fast, consistent 64-bit support, removing old and unsupported SAPIs and extensions, and improved fatal error resistance, to name a few. A few years ago, […]

PHP-FPM tuning: Using ‘pm static’ for max performance

Let’s take a very quick look at how best to set up PHP-FPM for high throughput, low latency, and more stable CPU and memory use. By default, most setups have PHP-FPM’s PM (process manager) string set to dynamic and there’s also the common advice to use ondemand if you suffer from available memory issues. However, let’s […]

PHP Benchmarks: OPcache vs OPcache w/ Performance Tweaks

A few weeks ago, I wrote a short article highlighting GUI solutions for monitoring and controlling PHP OPcache. We all know that enabling PHP OPcache provides massive performance gains (see benchmark graph at the end of the article). In addition, since PHP 5.5, OPcache is now enabled by default. With these facts in mind, is […]

Apache Performance: Disable .htaccess

In 2013, while seeking a detailed guide on performance enhancements for a StackLinux client, I began a quest to find an article that explained the impact of WordPress Caching plugins—specifically, how those utilizing .htaccess might be less efficient than their counterparts. This search turned out to be unexpectedly time-consuming, but it eventually led me to this […]

Recommended Cloudflare Performance and Security Settings (Guide)

Cloudflare stands out as an impressive ally in the pursuit of optimal website performance and security. Known for its robust suite of tools designed to enhance website performance and bolster security, Cloudflare has become an essential component in the toolboxes of web developers and IT professionals alike. However, harnessing the power of Cloudflare isn’t without […]

Guide to Optimizing PHP for High Traffic Sites

Note: This article serves as an overview and index, connecting you to previous detailed PHP optimization articles. For comprehensive insights on each topic, please follow the provided links to previous articles under the subheadings below. It made more sense to connect these articles here for your convenience, rather than trying to merge 12 articles covering […]

PHP 8.3 is Out! – 60% Still Using End-of-Life PHP 7

Yesterday, on November 23, 2024, the PHP community welcomed the release of PHP 8.3, marking another milestone in the evolution of this widely used scripting language. With PHP powering 76.7% of all websites with known server-side programming languages, upgrading PHP is critical in ensuring the security, efficiency, and overall user experience of a significant portion […]

Top ↑