php-production-config

Configure PHP 8.4+ production environments with OpCache, JIT, PHP-FPM, and nginx hardening.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/TrollHeap/dotfiles --skill php-production-config
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: php-production-config
Source: https://github.com/TrollHeap/dotfiles/tree/main/ai-config/.claude/templates/php-native/.claude/skills/php-production-config
Command: npx skills add https://github.com/TrollHeap/dotfiles --skill php-production-config

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides production-ready PHP 8.4+ configuration to optimize performance and security, consolidating cache, process, and security hardening settings.

Core Features & Use Cases

  • OpCache + JIT tuning for PHP 8.4+ deployments.
  • PHP-FPM tuning (pm settings, max_children, start/idle servers) for stable throughput.
  • Nginx configuration and PHP integration, plus PHP.ini security hardening guidelines to reduce exposure.

Quick Start

Apply these settings to a production PHP 8.4+ environment and restart the PHP-FPM and nginx services.

Frequently Asked Questions about php-production-config

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I configure PHP-FPM and OpCache for a production LEMP stack?

To configure PHP-FPM and OpCache for a production LEMP stack, apply tuned pm settings, max_children, and idle server values for stable throughput, alongside OpCache memory parameters to maximize PHP performance.

What are the best PHP.ini security hardening settings for production?

Production PHP.ini security hardening applies specific configuration guidelines to minimize exposure and reduce attack surface across your PHP 8.4+ deployment.

How does JIT tuning improve PHP 8.4+ performance in production?

JIT tuning improves PHP 8.4+ production performance by optimizing Just-In-Time compiler settings alongside OpCache to accelerate execution times for heavy workloads.

Does this PHP production tuning work with standard Nginx configurations?

Yes, this production PHP tuning includes Nginx integration best practices, applying configuration and hardening settings designed for standard LEMP stack deployments.

What PHP-FPM process management settings should I use for high throughput?

For high throughput, PHP-FPM tuning adjusts process management settings including max_children, start servers, and idle servers to maintain stable performance under heavy production traffic.