Tagged articles
38 articles
Page 1 of 1
Ray's Galactic Tech
Ray's Galactic Tech
Jan 9, 2026 · Operations

Why Does Nginx Return 502 Bad Gateway? A Complete Log‑to‑FastCGI Timeout Diagnosis

This guide walks through diagnosing intermittent 502 Bad Gateway errors in Nginx by analyzing error logs, checking upstream and FastCGI timeout settings, reviewing PHP‑FPM configuration, performing performance tuning, and outlining advanced troubleshooting, monitoring, and capacity‑planning strategies to ensure stable high‑traffic deployments.

502NGINXcapacity planning
0 likes · 9 min read
Why Does Nginx Return 502 Bad Gateway? A Complete Log‑to‑FastCGI Timeout Diagnosis
Xiao Liu Lab
Xiao Liu Lab
Dec 7, 2025 · Operations

How to Diagnose and Prevent 502 Bad Gateway Errors in an Nginx‑PHP‑MySQL Stack

This article walks through a real‑world 502 outage, explains why the error is rarely a simple gateway failure, shows how to use enhanced Nginx upstream logs and automated scripts to pinpoint timeouts, misconfigurations, and database bottlenecks, and provides concrete tuning, monitoring, and self‑healing measures to stop the problem from recurring.

502NGINXOperations
0 likes · 11 min read
How to Diagnose and Prevent 502 Bad Gateway Errors in an Nginx‑PHP‑MySQL Stack
php Courses
php Courses
Dec 18, 2024 · Backend Development

Backend Development Course: Processes, Sockets, TCP/IP, Nginx, FASTCGI, Byte Order, and Redis

This course provides an in‑depth exploration of process fundamentals, socket programming with TCP/IP, Nginx and FASTCGI communication, host‑to‑network byte order conversion, and Redis basics, targeting backend engineers, system administrators, and network engineers seeking comprehensive backend development skills.

Byte OrderNGINXSockets
0 likes · 3 min read
Backend Development Course: Processes, Sockets, TCP/IP, Nginx, FASTCGI, Byte Order, and Redis
Top Architect
Top Architect
Nov 10, 2024 · Backend Development

Comprehensive Guide to Nginx Architecture, Process Model, FastCGI Integration, and Performance Optimization

This article provides an extensive overview of Nginx, covering its high‑performance features, module types, master‑worker process model, asynchronous event handling, FastCGI and PHP‑FPM integration, detailed configuration examples, tuning techniques such as epoll, TCMalloc, kernel parameters, and common error troubleshooting, while also highlighting a critical security vulnerability.

fastcgiphp-fpm
0 likes · 47 min read
Comprehensive Guide to Nginx Architecture, Process Model, FastCGI Integration, and Performance Optimization
Top Architect
Top Architect
Aug 15, 2024 · Backend Development

Understanding Nginx Architecture, Process Model, FastCGI Integration, and Performance Optimization

This article provides a comprehensive overview of Nginx's high‑performance architecture, including its core, basic and third‑party modules, master‑worker process model, asynchronous event handling with epoll, FastCGI and PHP‑FPM integration, as well as detailed configuration and optimization techniques for production deployments.

BackendNGINXWeb server
0 likes · 47 min read
Understanding Nginx Architecture, Process Model, FastCGI Integration, and Performance Optimization
Architect
Architect
Aug 9, 2024 · Backend Development

Why Nginx Outperforms Others: Deep Dive into Architecture, Modules, and Tuning

This comprehensive guide explains Nginx's high‑performance architecture, module system, multi‑process model, FastCGI integration, configuration best practices, tuning techniques, error troubleshooting, and a known PHP‑related vulnerability, providing practical steps for optimal deployment on Linux servers.

LinuxNGINXSecurity
0 likes · 47 min read
Why Nginx Outperforms Others: Deep Dive into Architecture, Modules, and Tuning
php Courses
php Courses
Feb 5, 2024 · Backend Development

Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics

This course offers an in‑depth exploration of process concepts, TCP/IP and Socket communication, Nginx‑FASTCGI integration, host‑to‑network byte order conversion, and Redis fundamentals, targeting backend developers, system administrators, and network engineers seeking comprehensive backend skill enhancement.

NGINXSocketTCP/IP
0 likes · 3 min read
Backend Development Fundamentals: Processes, Socket Programming, Nginx FASTCGI, Byte Order, and Redis Basics
php Courses
php Courses
Oct 9, 2022 · Backend Development

Understanding CGI, FastCGI, and php-fpm in PHP Backend Development

This article explains the CGI protocol, how PHP implements it, the advantages of FastCGI as a persistent process manager, and how php-fpm extends FastCGI to provide smoother configuration changes and improved performance for PHP web applications.

CGIPHPWeb server
0 likes · 3 min read
Understanding CGI, FastCGI, and php-fpm in PHP Backend Development
php Courses
php Courses
Jul 7, 2021 · Backend Development

Understanding PHP SAPI Internals: CGI Module Structure and Startup Process

This article provides an in‑depth English overview of PHP’s SAPI architecture, detailing the CGI SAPI module structure, the core _sapi_module_struct and sapi_globals definitions, and walking through the startup sequence including sapi_startup, sapi_globals_ctor, and FastCGI initialization with code examples.

CCGISAPI++
0 likes · 10 min read
Understanding PHP SAPI Internals: CGI Module Structure and Startup Process
Efficient Ops
Efficient Ops
Nov 24, 2019 · Backend Development

How to Build a High‑Performance LAMP Stack with FastCGI, ApacheBench, and XCache

This guide walks through deploying a LAMP architecture with static‑dynamic separation, compiling PHP with FastCGI, configuring Apache proxy to PHP‑FPM, performing load testing using ApacheBench, installing XCache for PHP acceleration, and finally setting up a Discuz BBS forum, providing step‑by‑step commands and performance metrics.

ApacheBBSLAMP
0 likes · 24 min read
How to Build a High‑Performance LAMP Stack with FastCGI, ApacheBench, and XCache
Beike Product & Technology
Beike Product & Technology
Jul 26, 2019 · Fundamentals

FastCGI Protocol Specification: A Comprehensive Guide

This article provides a detailed translation and explanation of the FastCGI protocol specification, covering its architecture, record types, roles, and implementation details for developers working with PHP-FPM and web servers like nginx.

Application DevelopmentCGIWeb server
0 likes · 32 min read
FastCGI Protocol Specification: A Comprehensive Guide
MaGe Linux Operations
MaGe Linux Operations
Jan 28, 2019 · Backend Development

Mastering Python Web Deployment: CGI, FastCGI, WSGI, uWSGI & More

An in‑depth guide explains the evolution from CGI to FastCGI, WSGI, uWSGI, Gunicorn and Tornado, detailing each protocol’s architecture, performance benefits, and deployment steps for Python web applications, helping developers choose the right server setup for production environments.

CGIGunicornPython
0 likes · 13 min read
Mastering Python Web Deployment: CGI, FastCGI, WSGI, uWSGI & More
Efficient Ops
Efficient Ops
Aug 7, 2017 · Backend Development

How Adjusting PHP‑FPM max_requests Stabilizes CPU and Memory Usage

This article explains how tuning the PHP‑FPM max_requests setting and modifying its source code can eliminate periodic CPU_IDLE and MEM_USED fluctuations in high‑traffic web services, resulting in smoother resource utilization and more reliable performance.

Backend PerformanceCPU optimizationMemory Usage
0 likes · 6 min read
How Adjusting PHP‑FPM max_requests Stabilizes CPU and Memory Usage
ITPUB
ITPUB
Jun 14, 2016 · Operations

How to Diagnose and Fix Nginx 502 Bad Gateway Errors

This guide explains why Nginx returns 502 Bad Gateway, outlines common trigger conditions, and provides step‑by‑step commands and configuration tweaks—such as adjusting FastCGI process limits, timeout values, buffer sizes, and php‑fpm settings—to reliably resolve the issue.

502NGINXServer
0 likes · 8 min read
How to Diagnose and Fix Nginx 502 Bad Gateway Errors
21CTO
21CTO
Mar 24, 2016 · Backend Development

Why Combine PHP Front‑End with Java Back‑End? Benefits, Trade‑offs, and Architecture Insights

This article examines why many web projects pair a fast‑changing PHP front‑end with a stable, high‑performance Java back‑end, outlining each language’s strengths, recent improvements, integration methods, and architectural patterns such as view‑first and RPC/RESTful communication.

Backend ArchitectureMicroservicesWeb Development
0 likes · 14 min read
Why Combine PHP Front‑End with Java Back‑End? Benefits, Trade‑offs, and Architecture Insights