Guides tagged “apache”
Step-by-step MdmHost guides about apache, sorted A-Z.
33 guides · page 1 of 2
.htaccess on LiteSpeed: what works, what does not and how to fix rules
How LiteSpeed Web Server handles .htaccess files: supported directives, rewrite rules, PHP settings, unsupported modules and how to debug rules that do nothing.
.htaccess security rules: block IPs, disable directory listing and restrict folders
Copy-ready .htaccess rules for cPanel hosting: block or allow IP addresses, turn off directory browsing, protect .htaccess and config files, and stop hotlinking.
Apache redirects with.htaccess: HTTPS, www and 301s
Write Apache redirects that work the first time. Force HTTPS, pick www or non-www, move single pages and whole domains with Redirect and RewriteRule, and avoid redirect loops.
Customise web server configuration per domain in DirectAdmin (admin)
Use DirectAdmin's Custom HTTPD Configurations to add Apache, Nginx or OpenLiteSpeed directives for one domain, use CUSTOM tokens and templates, and keep changes upgrade-safe.
EasyApache 4 guide: profiles, modules and PHP versions
Use EasyApache 4 in WHM to add Apache modules and PHP versions, save your setup as a custom profile, and roll back to a known good profile after a bad change.
Enable gzip compression in Apache with mod_deflate
Compress HTML, CSS, JavaScript and JSON in Apache with mod_deflate, add Brotli with mod_brotli for modern browsers and check the Content-Encoding header to prove it works.
Enable.htaccess and mod_rewrite in Apache
If your.htaccess rules are ignored, Apache is usually missing mod_rewrite or AllowOverride. Enable both, restart safely and prove it works with a one-line test rule.
Fix Apache failed to start (AH00072 port in use and config errors)
When Apache will not start, run a config test, read journalctl, and fix the usual causes - AH00072 port already in use, syntax errors, missing certificates and the AH00558 ServerName warning.
Fix ERR_TOO_MANY_REDIRECTS: diagnose a redirect loop
Trace an ERR_TOO_MANY_REDIRECTS loop across Nginx, Apache, WordPress and Cloudflare, and find the single rule that keeps sending traffic back to itself.
Fix Nginx failed to start: address already in use
Nginx will not start when another program already holds port 80 or 443. Find what is using the port with ss, stop or move it, fix duplicate listen lines, then start Nginx.
How to find and read Apache access and error logs
Find Apache's access and error logs on Ubuntu, Debian, AlmaLinux and Rocky Linux, set up per-site logs, and pull out errors and top visitors with a few shell commands.
How to fix 403 Forbidden errors in Apache
Fix Apache 403 Forbidden errors by checking Require rules, file permissions, a missing index file,.htaccess deny rules and SELinux labels, one cause at a time.
How to fix 500 Internal Server Error on Apache
Track down an Apache 500 Internal Server Error by reading error.log, then fix bad.htaccess directives, missing modules, PHP fatal errors and permission problems.
How to install LiteSpeed Web Server on a cPanel server and switch from Apache
Install LiteSpeed Web Server Enterprise on cPanel as root with the WHM plugin installer, switch from Apache, enable LSCache and know how to switch back.
How to make.htaccess rewrites work in OpenLiteSpeed
Fix.htaccess rewrites in OpenLiteSpeed - turn on rewrite and Auto Load from.htaccess, understand why edits need a restart and which directives are supported, and fix 404 errors on WordPress permalinks.
How to migrate a website from Apache to Nginx
Move a site from Apache to Nginx with low downtime - convert virtual hosts and.htaccess rewrites, set up PHP-FPM, reuse SSL certificates, test on a spare port, then switch.
Install a LAMP stack by hand (Apache, MariaDB, PHP) on AlmaLinux or Ubuntu
Build a LAMP server without a control panel: install Apache, MariaDB and PHP on AlmaLinux 9 or Ubuntu 24.04, create a virtual host, secure it and add free SSL.
Install Apache (httpd) on AlmaLinux and Rocky Linux
Install the Apache web server on AlmaLinux or Rocky Linux 8 and 9 with dnf, open HTTP and HTTPS in firewalld, learn the conf.d layout and set SELinux labels for custom web roots.
Install PHP extensions on cPanel (EasyApache 4 and PECL)
Add PHP extensions such as intl, imagick or redis on a cPanel server with EasyApache 4 packages or the WHM PECL installer, then confirm them with php -m.
LiteSpeed Web Server explained: why it makes your hosting faster
What LiteSpeed Web Server is, how it differs from Apache and Nginx, why it speeds up WordPress and PHP sites, and what it means for your cPanel hosting.
Browse by topic
- Getting startedYour first hour with a new server: access, logins and basics.69 guides
- cPanelFiles, databases, email, domains and every cPanel tool, step by step.37 guides
- WHM & resellingWHM, packages, reseller accounts, WHMReseller and running a hosting brand.49 guides
- WordPressInstall, secure, speed up, migrate and fix WordPress sites.40 guides
- Email & webmailMailboxes, webmail, forwarders, spam filters and email delivery.37 guides
- DomainsRegistering, transferring and managing domains and nameservers.20 guides
- SSL certificatesFree AutoSSL, Let's Encrypt, paid certificates and HTTPS.19 guides
- CloudLinuxCloudLinux setup and use: LVE limits, CloudLinux Manager, CageFS and PHP/Node.js selectors.31 guides
- LiteSpeedLiteSpeed Web Server, LSCache and the LiteSpeed Cache plugin: install, settings and tuning.30 guides
- Imunify360Malware scanning, firewall and proactive defence with Imunify360.23 guides
- SoftaculousInstall, update, clone and back up apps with Softaculous.23 guides
- WP SquaredcPanel's WordPress platform: sites, plugins, staging and backups.9 guides
- SitePadBuild and publish websites with the SitePad builder.9 guides
- SitejetDesign, edit and publish sites with the Sitejet builder.9 guides
- WHMResellerAlpha and master resellers with WHMReseller: install, setup and use.12 guides
- VirtFusionInstall, set up and manage VirtFusion: hypervisors, packages, servers and WHMCS integration.7 guides
- VirtualizorManage your VPS with Virtualizor: power, OS reinstall, VNC, IPs and backups.30 guides
- PleskWebsites, email, databases and settings in the Plesk panel.52 guides
- DirectAdminUsers, domains, email and reseller tools in DirectAdmin.40 guides
- WHMCSBilling, automation, products and client management with WHMCS.51 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.106 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.115 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.34 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.52 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.64 guides
- Billing & accountInvoices, renewals, the client area and your account.9 guides
- TroubleshootingWhen something is not working: checks and fixes.68 guides
- Linux VPSSSH, packages, services and everyday Linux administration.70 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.58 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.58 guides
Still stuck?
Ask MdmHost AI for a quick answer, or open a ticket and our team will take a look. We are here 24/7.
