← Back to Baseline

MB-0807

Automated Configured PHP-FPM workers have no mapped Xdebug binary module

MB-C05 Production Mode & Deployment Hygiene Medium

Every explicitly inventoried Linux PHP-FPM worker is bound to its pool, executable identity and exact process start_ticks before and after a complete bounded nonempty /proc process-map observation. No Xdebug-named shared module is mapped in these verified workers. Missing or changed identity, empty/unreadable/truncated maps or malformed inventory remain UNKNOWN. This observes configured process mappings at scan time, not every deployment worker, Xdebug feature mode, statically linked code or complete PHP runtime settings.

Overview

Every explicitly inventoried Linux PHP-FPM worker is bound to its pool, executable identity and exact process start_ticks before and after a complete bounded nonempty /proc process-map observation. No Xdebug-named shared module is mapped in these verified workers. Missing or changed identity, empty/unreadable/truncated maps or malformed inventory remain UNKNOWN. This observes configured process mappings at scan time, not every deployment worker, Xdebug feature mode, statically linked code or complete PHP runtime settings.

Why it Matters

Serving workers can keep an extension loaded after files or CLI configuration change. Process-map inspection observes what the specifically identified workers have mapped now.

Stable PID/start-time binding avoids approving a different recycled process, while static builds and unlisted workers remain explicit limits.

Verification Steps

Manual Verification

  1. Review the explicit worker inventory and bind each PID to pool, executable and exact start_ticks before and after collection.
  2. Verify complete bounded nonempty maps and no Xdebug-named shared module.
  3. PID reuse, unreadable/empty maps or malformed identity remain unresolved.

Command / Review Sample

ps -eo pid,user,args
# Review .magebean/php-fpm-workers.json against live worker identities.
# Collect each approved worker's /proc/[pid]/maps with before/after start-time binding.

Use the assessed Magento project and the appropriate application or read-only review account. Replace example hosts, paths and identifiers with the assessment scope; configuration and source fragments are illustrative.

Remediation / Fix Guidance

  1. Identify the PHP-FPM pool and mapped Xdebug module reported by the verified worker observation. Remove the production pool extension-loading declaration through its real deployment configuration and restart/reload the applicable pool through normal operations after staging verification. Do not expose phpinfo or a public diagnostic endpoint.
  2. Refresh .magebean/php-fpm-workers.json with current actual pool names, PIDs and start_ticks after restart, then rerun direct process-map collection. Verify every intended worker is inventoried separately; a clean CLI extension list does not establish a clean web-worker result.
  3. Recheck MB-0807: Read back the effective setting or role/runtime state from the same source used by the check, then test the affected authentication, application or integration flow in staging. A changed file alone does not establish that the production worker uses it.

Examples

Illustrative examples only. Interpret them within the current revision criterion above; missing collection evidence is unresolved, never PASS.

Fail Example

A verified configured worker maps an Xdebug-named shared module.

Pass Example

All explicitly inventoried workers are stably bound and their complete maps contain no Xdebug-named module; static builds/other workers remain outside scope.

Scope and Evidence Limits

Rule revision: 1. Target modes: LOCAL.

Every explicitly inventoried Linux PHP-FPM worker is bound to its pool, executable identity and exact process start_ticks before and after a complete bounded nonempty /proc process-map observation. No Xdebug-named shared module is mapped in these verified workers. Missing or changed identity, empty/unreadable/truncated maps or malformed inventory remain UNKNOWN. This observes configured process mappings at scan time, not every deployment worker, Xdebug feature mode, statically linked code or complete PHP runtime settings.

Explicit process inventory is machine targeting configuration; it cannot assert a clean result. Process mappings are collected directly without reading environ or executing target PHP. Original historical criterion and ID remain in the engineering backlog; this new ID records only its exact supported observation.

Catalog coverage describes implementation capability, not a scan outcome. An incomplete manual review cannot establish that the criterion is satisfied.

References