WordPress Server Skill
Production-grade WordPress server configuration — performance, security, caching, and multisite.
RULE: Show all config changes before applying. Backup reminder before any PHP/Nginx change.
🚧 Status: Stub — implementation pending
This reference skill has the structure but the snippet content is still being filled in
(you'll see <!-- TODO --> placeholders below). It activates and tells Claude the topic
exists, but won't yield deep snippets yet.
Want to help? Pick any TODO, write the snippet, open a PR. See CONTRIBUTING.md.
Each contribution moves the skill closer to "Ready" status.
Capabilities
Nginx + WordPress Config
PHP 8.3-FPM Optimization
Redis Object Caching
WP Rocket Configuration
Security Hardening
Staging Environment Setup
Multisite Setup
Key wp-config.php Constants
// Performance
define( 'WP_CACHE', true );
define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );
// Security
define( 'DISALLOW_FILE_EDIT', true );
define( 'DISALLOW_FILE_MODS', true ); // disable plugin/theme install
define( 'FORCE_SSL_ADMIN', true );
// Redis Object Cache
define( 'WP_REDIS_HOST', '127.0.0.1' );
define( 'WP_REDIS_PORT', 6379 );
define( 'WP_REDIS_DATABASE', 0 );
define( 'WP_REDIS_PREFIX', '[site-key]:' );
// Debug (disable in production)
define( 'WP_DEBUG', false );
define( 'WP_DEBUG_LOG', false );
define( 'SCRIPT_DEBUG', false );
Redis config for WordPress
# /etc/redis/redis.conf additions
maxmemory 256mb
maxmemory-policy allkeys-lru
save "" # disable RDB persistence for cache-only use
appendonly no
1---
2name: wordpress-server
3description: WordPress server optimization — Nginx config, PHP 8.3-FPM tuning, Redis object caching, WP Rocket, security hardening, staging, multisite
4version: 1.0.0
5author: veekunth217
6tags: [wordpress, nginx, php-fpm, redis, object-cache, wp-rocket, security, staging, multisite, hardening]
7platforms: [claude-code, cursor, codex]
8metadata:
9 source: https://skillmd.com/skills/aibot88/wordpress-server
10---
11
12# WordPress Server Skill
13
14Production-grade WordPress server configuration — performance, security, caching, and multisite.
15
16**RULE: Show all config changes before applying. Backup reminder before any PHP/Nginx change.**
17
18> **🚧 Status: Stub — implementation pending**
19>
20> This reference skill has the structure but the snippet content is still being filled in
21> (you'll see `<!-- TODO -->` placeholders below). It activates and tells Claude the topic
22> exists, but won't yield deep snippets yet.
23>
24> **Want to help?** Pick any TODO, write the snippet, open a PR. See [CONTRIBUTING.md](../../CONTRIBUTING.md).
25> Each contribution moves the skill closer to "Ready" status.
26
27---
28
29## Capabilities
30
31### Nginx + WordPress Config
32<!-- TODO: WordPress-specific Nginx server block (try_files, PHP-FPM socket) -->
33<!-- TODO: Cache headers for WP Rocket / W3TC static files -->
34<!-- TODO: Block xmlrpc.php, block wp-login.php by IP -->
35<!-- TODO: WooCommerce cart/checkout bypass for page cache -->
36
37### PHP 8.3-FPM Optimization
38<!-- TODO: Pool sizing for WordPress (pm = ondemand for low traffic, dynamic for high) -->
39<!-- TODO: opcache.memory_consumption, opcache.max_accelerated_files for WP -->
40<!-- TODO: realpath_cache_size, upload_max_filesize, max_execution_time -->
41<!-- TODO: PHP slow log setup to catch slow plugins -->
42
43### Redis Object Caching
44<!-- TODO: redis-cache plugin setup, wp-config.php constants -->
45<!-- TODO: Redis maxmemory-policy for WP (allkeys-lru) -->
46<!-- TODO: WooCommerce session handler in Redis -->
47<!-- TODO: Cache flushing strategy (selective vs full) -->
48
49### WP Rocket Configuration
50<!-- TODO: Page cache, browser cache, minify CSS/JS settings -->
51<!-- TODO: CDN integration (DO Spaces / CloudFront) -->
52<!-- TODO: WooCommerce-safe cache exclusions -->
53<!-- TODO: Preloading, heartbeat control, LazyLoad -->
54
55### Security Hardening
56<!-- TODO: Disable file editing in WP admin (DISALLOW_FILE_EDIT) -->
57<!-- TODO: Limit login attempts (plugin vs nginx rate limit) -->
58<!-- TODO: wp-config.php above webroot -->
59<!-- TODO: Database prefix change, user enumeration prevention -->
60<!-- TODO: Wordfence / Security plugins vs WAF -->
61
62### Staging Environment Setup
63<!-- TODO: Subdomain staging (staging.domain.com), WP CLI duplication -->
64<!-- TODO: WP Staging plugin vs manual rsync+dump approach -->
65<!-- TODO: Prevent staging from being indexed (robots.txt, noindex) -->
66<!-- TODO: Sync staging → prod workflow -->
67
68### Multisite Setup
69<!-- TODO: Subdomain vs subdirectory multisite config -->
70<!-- TODO: Nginx config for multisite (wildcard subdomains) -->
71<!-- TODO: Network admin, per-site plugins vs network-activated -->
72<!-- TODO: Domain mapping plugin setup -->
73
74---
75
76## Key wp-config.php Constants
77
78```php
79// Performance
80define( 'WP_CACHE', true );
81define( 'WP_MEMORY_LIMIT', '256M' );
82define( 'WP_MAX_MEMORY_LIMIT', '512M' );
83
84// Security
85define( 'DISALLOW_FILE_EDIT', true );
86define( 'DISALLOW_FILE_MODS', true ); // disable plugin/theme install
87define( 'FORCE_SSL_ADMIN', true );
88
89// Redis Object Cache
90define( 'WP_REDIS_HOST', '127.0.0.1' );
91define( 'WP_REDIS_PORT', 6379 );
92define( 'WP_REDIS_DATABASE', 0 );
93define( 'WP_REDIS_PREFIX', '[site-key]:' );
94
95// Debug (disable in production)
96define( 'WP_DEBUG', false );
97define( 'WP_DEBUG_LOG', false );
98define( 'SCRIPT_DEBUG', false );
99```
100
101### Redis config for WordPress
102```conf
103# /etc/redis/redis.conf additions
104maxmemory 256mb
105maxmemory-policy allkeys-lru
106save "" # disable RDB persistence for cache-only use
107appendonly no
108```
109
110<!-- TODO: Add full interactive workflows for each capability above -->