78 articles
Knowledge Base
Apache
78 articles in the Apache category · page 2 of 4.
- Apache log rotation on cPanel when disk pressure hits How cPanel rotates Apache and per-domain logs by default, why the defaults often miss the disk-pressure case, and how to add aggressive compression and shorter retention without breaking AWStats.
- Apache as a reverse proxy with mod_proxy How to put Apache in front of an upstream app — ProxyPass, headers, timeouts, websocket upgrade, and the connection pool tuning that prevents 502s under load.
- Custom error pages on Apache that are actually useful Configure ErrorDocument for 4xx and 5xx — branded pages, JSON for API endpoints, and the gotchas with internal redirects and proxied responses.
- Apache virtual hosts that hold up in production How to build name-based Apache vhosts that survive real traffic — per-site logs, per-vhost limits, a sane default catch-all, and a config layout you can hand off.
- Custom Apache error pages per cPanel account How to set custom 403, 404, 500 error pages for a single cPanel account through the cPanel UI and verify the ErrorDocument directives end up in the right vhost include.
- Debugging Apache vhost overlap — when the wrong site answers the request Why Apache served the wrong vhost — ServerName resolution, default vhost rules, and the apache2ctl -S diagnostic loop that pinpoints which line of which file is responsible.
- Saving a custom EasyApache 4 profile so rebuilds stop surprising you Capture the exact Apache, PHP, and module selection of a known-good cPanel server as a reusable EasyApache 4 profile so the next rebuild matches production instead of the defaults.
- Tuning Apache KeepAlive on a cPanel server How KeepAliveTimeout, MaxKeepAliveRequests, and MPM choice interact on a cPanel Apache build, what the defaults assume, and when to tune for HTTP/2 versus legacy HTTP/1.1 clients.
- Enabling and disabling Apache modules on Debian and Ubuntu How a2enmod and a2dismod actually work, when to use them, and how to keep your loaded-module set as small as the workload truly needs.
- Rolling back an EasyApache 4 build to the previous known-good profile How to revert an EasyApache 4 provision when the new build introduced a regression — using saved profiles and yum history rather than guessing at module names.
- Migrating a cPanel server from DSO to PHP-FPM without weekend downtime A staged plan for moving a cPanel server off the DSO PHP handler onto PHP-FPM — including the MPM swap, per-account validation, and the rollback path if a vhost regresses.
- PHP-FPM uploads failing because /tmp is mounted noexec How a noexec mount on /tmp breaks PHP file uploads and a subset of WordPress plugins on a cPanel server, and how to either move PHP's temp directory or remount with safer permissions.
- Reading Apache access logs with GoAccess How to point GoAccess at Apache access logs, configure the right format, run it in realtime mode, and turn the output into a daily situational read.
- Testing the Apache config on cPanel before you restart anything A short discipline that prevents 90 percent of outages caused by Apache restarts on cPanel — using apachectl -t, configtest scripts, and userdata cache validation before touching the running service.
- Enabling HTTP/3 on a cPanel server running LiteSpeed How to enable HTTP/3 (QUIC) on a LiteSpeed-based cPanel server, what UDP firewall changes are required, and how to validate that the browser is actually using HTTP/3 rather than falling back.
- Sane PHP OPcache settings for cPanel production servers Realistic OPcache values for a cPanel server running mixed PHP workloads, why the cPanel defaults are too conservative on a busy box, and how to size opcache.memory_consumption against real measurement.
- .htaccess pitfalls — why we move rules into the vhost How .htaccess parsing works per request, what the performance cost is, and the audit pattern for moving rules into the vhost without breaking deploys.
- Server-wide migration off an EOL PHP version on cPanel How to plan a fleet-wide PHP version migration on a cPanel server before the EOL date — including inventory, customer-facing communication, and the rollback path per account.
- Trimming ModSecurity audit log noise on a busy cPanel server How to reduce ModSecurity audit log volume on a busy cPanel host by tuning SecAuditEngine, SecAuditLogParts, and serial-vs-concurrent logging, without losing the events that actually matter.
- Apache MPMs explained — event vs prefork vs worker How Apache MPMs differ in process and thread model, when each one is the right choice, and the tuning numbers that matter under real load.
- Protecting cPanel Apache against symlink attacks How cPanel's SymlinksIfOwnerMatch and the EasyApache 4 symlink-protection patch work, what they catch, and why disabling them to fix a single customer's issue is the wrong trade.
- Disabling a single ModSecurity rule for one cPanel account How to scope a ModSecurity SecRuleRemoveById to a single cPanel account when a legitimate request gets blocked, without disabling the rule for every other tenant on the server.
- mod_rewrite basics — the rules you will actually write Apache mod_rewrite without the cargo cult — what RewriteRule, RewriteCond, and the flag set actually do, with the ten patterns that cover most real sites.
- Account-level checklist for a PHP version upgrade on cPanel A pre-flight checklist to run before moving a single cPanel account from one PHP version to the next — covering extensions, deprecations, .user.ini values, and PHP-FPM pool regeneration.