78 articles
Knowledge Base
Apache
78 articles in the Apache category · page 1 of 4.
- Choosing a ModSecurity rule vendor on cPanel — OWASP CRS, Comodo CWAF, or ConfigServer Choose one ModSecurity rule vendor on cPanel by matching OWASP CRS, Comodo CWAF or ConfigServer to your workload. You will also switch vendors without running two rule sets at once.
- AllowOverride on cPanel: why .htaccess is ignored AllowOverride decides which .htaccess directives Apache obeys. Find which cPanel include sets it and allow more for one account only.
- apachectl graceful vs restart: reload Apache safely apachectl graceful reloads Apache without refusing connections. See when it is enough on cPanel, and the order that restarts PHP-FPM without 502 errors.
- Nginx and Apache real IP behind Cloudflare on cPanel Behind Cloudflare, Nginx and Apache log Cloudflare's IP instead of the visitor's. Restore the real client IP on cPanel with realip and mod_remoteip.
- What is lsphp? LiteSpeed PHP on cPanel and how to switch lsphp is the PHP process LiteSpeed starts for each cPanel account. Check which PHP handler an account really uses and switch it to LSAPI safely.
- Choosing a PHP handler on cPanel — FastCGI, FPM, DSO, suPHP, CGI Pick PHP-FPM as the PHP handler on your cPanel server unless an old app truly needs something else. Compare the five handlers in MultiPHP Manager, check which one you run today, and see how to move off DSO or suPHP safely.
- How to enable request_slowlog_timeout on cPanel PHP-FPM Turn on the PHP-FPM slow log for one cPanel domain or the whole server by setting request_slowlog_timeout in the YAML files cPanel builds its pools from, so the change survives every rebuild. You then prove it captures slow requests with a test script and keep the log from filling the disk.
- Basic auth and client certificates on Apache Learn how to protect a directory or endpoint on Apache with HTTP Basic auth or mTLS client certificates. This guide walks through the htpasswd workflow and the SSL directives, then helps you choose between the two.
- Switching the Apache MPM on cPanel — event, worker, or prefork Learn how to switch the Apache MPM (Multi-Processing Module) on a cPanel server from prefork to event or worker with EasyApache 4. This guide covers when the change makes sense, the order of steps that avoids a half-switched server, and what to check afterward.
- cPanel Nginx: running ea-nginx as a reverse proxy in front of Apache How EasyApache 4's ea-nginx package puts a cPanel-managed Nginx reverse proxy in front of Apache, which tier owns what, why the generated vhosts must never be hand-edited, and how to keep the real client IP alive through the extra hop.
- Changing a domain's document root on cPanel safely How to point a domain at a different folder on cPanel — for the primary, addon, or subdomain — and the gotchas that break sites when the docroot moves.
- Disabling directory indexing on cPanel — per folder, per account, server-wide How to stop Apache from listing directory contents on cPanel, using cPanel's Indexes tool, .htaccess Options -Indexes, or the server-wide default — and how to verify it.
- ERR_TOO_MANY_REDIRECTS on a cPanel site: breaking the redirect loop The browser stops with "redirected you too many times". An HTTP-to-HTTPS or www loop is sending the request in circles. Here is how to find the loop and break it.
- Password-protecting a directory on cPanel with Directory Privacy How to put HTTP basic-auth on a folder using cPanel's Directory Privacy or .htaccess + .htpasswd, and how to fix the 500s and login loops that catch people.
- PHP file downloads or shows as source instead of running on cPanel Visiting a .php URL downloads the file or displays its code instead of executing it. The PHP handler is not mapped. Here is how to restore PHP execution on cPanel.
- Site throws HTTP 500 right after editing .htaccess on cPanel A site worked until an .htaccess edit, then every page returned 500. An unsupported directive or a disallowed override is the cause. Here is how to find the bad line and fix it.
- Visitors see "Index of /" instead of the website on cPanel A URL shows a bare file listing — "Index of /" — instead of the site. The index file is missing or directory indexing is on. Here is how to fix it and close the exposure.
- Debugging mod_rewrite rules in cPanel .htaccess files How to surface the actual rewrite decisions Apache is making on a cPanel host using LogLevel rewrite:trace3, condition tracing, and the rewrite-test approach to per-vhost rules.
- Enabling HTTP/2 on Apache Switch Apache to HTTP/2 with mod_http2 — module enable, MPM choice, protocol negotiation, and the operational gotchas with PHP-FPM and large request bodies.
- Apache with PHP-FPM over mod_proxy_fcgi How to serve PHP through PHP-FPM behind Apache with mod_proxy_fcgi — the SetHandler pattern, the socket vs TCP choice, and the pool sizing that holds up.
- Apache hardening checklist The hardening pass we run on every Apache box before it serves traffic — TLS, headers, modules, file permissions, server tokens, and the security audit baseline.
- MultiPHP INI Editor versus .htaccess — where to put PHP directives on cPanel When a PHP setting belongs in the MultiPHP INI Editor, when it belongs in a per-account user.ini, and when .htaccess is the wrong answer entirely depending on the PHP handler.
- Installing Apache on Ubuntu the right way A grown-up Apache install on Ubuntu — packages, service, firewall, default site, and the operational checks an MSP runs before declaring the box ready.
- rotatelogs vs logrotate for Apache — the decision and the gotchas Apache piped-logs rotatelogs vs the system logrotate utility — when each wins, the file-descriptor-handover problem, and the configuration both ways.