Skip to content

Instantly share code, notes, and snippets.

@ArtemCK
ArtemCK / fpm_get_status.php
Created February 29, 2024 12:53 — forked from EhsanCh/fpm_get_status.php
PHP-FPM real-time status page (Single file without the need for web server configuration)
<?php
// Upload to private url or implement authorization...
if (isset($_GET["json"])) {
header("Content-type: application/json");
exit(json_encode( fpm_get_status() ));
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--
@ArtemCK
ArtemCK / real-time-php-fpm-status.md
Created February 29, 2024 12:48 — forked from Jiab77/real-time-php-fpm-status.md
Real-time PHP-FPM Status

Real-time PHP-FPM Status

This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.

Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

image

Some informations from the top are not displayed to avoid security issues.

Enable PHP-FPM Status

@ArtemCK
ArtemCK / dev-setup.md
Created April 26, 2022 18:20 — forked from AbhieSpeaks/dev-setup.md
Development environment setup: Installing WSL2, Hyper, ZSH, VSCode, OhMyZsh

Installing Windows Subsystem for Linux 2, Hyper, ZSH, Node.js and VSCode extensions

Preview

Requirements

Steps