78 articles
Knowledge Base
Apache
78 articles in the Apache category · page 3 of 4.
- HTTP caching on Apache with mod_cache and mod_cache_disk Server-side response caching on Apache with mod_cache — disk vs shared memory, the right CacheEnable scope, and the headers that control freshness.
- Tuning PHP max_execution_time and related timeouts on cPanel A practical walkthrough of max_execution_time, max_input_time, request_terminate_timeout, and Apache's ProxyTimeout — and why bumping just one of them rarely fixes the timeout you are chasing.
- Enabling HTTP/2 on a cPanel server with Apache How to enable HTTP/2 on cPanel's Apache build via EasyApache 4's mod_http2, what changes for clients, and the keep-alive and MPM implications you need to handle.
- ModSecurity on Apache with the OWASP Core Rule Set Install and tune ModSecurity as a WAF in front of Apache — CRS install, paranoia levels, anomaly scoring, exclusions, and the audit log workflow.
- Apache returning 503 on every PHP request after an EasyApache 4 rebuild How to diagnose Apache returning 503 for every PHP request on a cPanel server after an EasyApache 4 PHP rebuild — usually a PHP-FPM service that did not restart or a stale socket reference in the vhost config.
- Enabling the PHP-FPM status page on cPanel and reading it How to expose PHP-FPM's built-in status endpoint per pool on a cPanel server, protect it from public access, and use the metrics to diagnose pool sizing in real time.
- Apache graceful versus restart on cPanel — choosing the right reload for the change A short reference for which Apache reload command is required for which change on a cPanel server, with the cases where graceful is wrong, the cases where it is right, and the trap of accidentally restarting under change pressure.
- Installing the LSCache module on a cPanel + LiteSpeed server How to install and verify the LSCache module on a cPanel host running LiteSpeed Web Server, configure server-wide cache storage, and confirm WordPress accounts pick it up automatically through the LSCache WP plugin.
- Sizing a PHP-FPM pool on cPanel from real memory measurement A practical method for sizing PHP-FPM pm.max_children, pm.start_servers, and pm.min/max_spare_servers on a cPanel server, based on actual per-process memory usage rather than the defaults.
- suEXEC versus mpm-itk for per-account isolation on cPanel When suEXEC is sufficient for per-account file ownership semantics on a cPanel server and when mpm-itk is the better tool, with the trade-off for performance, MPM choice, and CloudLinux interaction.
- Calculating pm.max_children when multiple PHP-FPM pools share one cPanel server How to allocate pm.max_children across many cPanel PHP-FPM pools when each account has its own pool — including how to size the global ceiling so peak concurrent traffic across all pools never OOMs the host.
- Enabling and disabling Apache modules cleanly on a cPanel server How to add or remove an Apache module on cPanel/WHM without breaking EasyApache 4's state — through profiles and packages, not by editing httpd.conf includes by hand.
- Rate limiting on Apache with mod_ratelimit, mod_evasive, and friends Pragmatic rate limiting in Apache — bandwidth caps with mod_ratelimit, abuse mitigation with mod_evasive, and request-per-second limits with mod_qos.
- Using Apache piped logs for a large busy vhost on cPanel When and how to switch a high-traffic cPanel vhost from file-based logging to a piped log handler — for real-time processing, log shipping, or simply to stop the rotate-grace problem on large logs.
- Switching the PHP session handler to Redis on a cPanel server How to point one or more cPanel accounts at a Redis-backed session handler for PHP-FPM, including the Redis install, the session.save_path syntax, and the failure mode if Redis goes away.
- EasyApache 4 from the CLI versus the WHM UI How to drive EasyApache 4 changes from the command line using whmapi1 ea4_* calls when the WHM UI is unavailable or when you want a scripted, repeatable provision against a saved profile.
- Server-wide custom error pages on cPanel that work for every vhost How to set a default branded error page across every cPanel account on a host using WHM's Customization tool plus a fallback Include Editor entry, with the precedence rules made explicit.
- Where to put a redirect on cPanel — UI, .htaccess, or vhost include A decision tree for picking between the cPanel Redirects UI, .htaccess, and the Apache Include Editor for HTTP redirects, with the latency, audit, and persistence trade-offs made explicit.
- Raising PHP upload_max_filesize on cPanel without breaking other accounts How to bump upload_max_filesize, post_max_size, and max_input_time for one cPanel account so a customer can upload a 200 MB asset, without weakening the limits the rest of the server depends on.
- Directory listing on Apache — when to enable, when to disable Control directory listing on Apache with Options Indexes — when an auto-index is useful, the IndexOptions tuning, and the security default that should be off.
- Recovering from an EasyApache 4 rebuild that left Apache down A field-tested sequence for getting Apache back up after an EasyApache 4 provision fails halfway through and the running config is neither the old build nor the new one.
- Migrating from Apache to Nginx — what actually changes A real Apache-to-Nginx migration plan — config translation, .htaccess elimination, parity testing, cutover strategy, and the parts that are not 1:1.
- Compression on Apache with mod_deflate How to enable mod_deflate for the right MIME types, tune the compression level, and pair it with mod_brotli for the assets that benefit most.
- PHP CLI on cPanel running a different version than PHP-FPM Why the PHP version reported by php -v from a cron job on a cPanel server can differ from the version PHP-FPM uses, and how to point a customer's cron at the right binary so cron-driven code matches the web tier.