Server configuration guides - Page 2
Build and repair Linux server stacks with guides for Nginx, PHP-FPM, MariaDB, TLS, reverse proxies, and production web services.
Curated guides
Server setup guides
110 matched guides, best match first. Page 2 of 10.

How to Install phpMyAdmin on Ubuntu 26.04, 24.04 and 22.04
Install phpMyAdmin on Ubuntu with a LEMP stack when you want browser-based database administration on an Nginx server. This setup works well for MariaDB or MySQL administration, WordPress...

How to Install ModSecurity and OWASP CRS with Apache on Debian 13, 12 and 11
A web application firewall becomes useful when an Apache site needs more than TLS and normal request logging. ModSecurity with Apache on Debian inspects HTTP requests before they...

How to Install ModSecurity and OWASP CRS with Apache on Ubuntu 26.04, 24.04 and 22.04
A web application firewall becomes useful when it blocks bad requests before they reach WordPress, phpMyAdmin, APIs, or other code running behind Apache. You can install ModSecurity with...

How to Install PHP on Ubuntu 26.04, 24.04 and 22.04
Install PHP on Ubuntu 26.04, 24.04, and 22.04 with the default APT branch for each LTS release, choose Apache mod_php or PHP-FPM for Apache or Nginx, add common...

How to Setup Nginx FastCGI Cache on Ubuntu 26.04, 24.04 and 22.04
Configure Nginx FastCGI Cache on Ubuntu 26.04, 24.04, and 22.04 with stock packages, PHP-FPM socket checks, safe skip-cache rules, GET-based HIT/MISS verification, and cache clearing that avoids unsupported...

Nginx Redirect WWW to Non-WWW or Non-WWW to WWW
An Nginx redirect from www to non-www is usually a server-block decision, not an application rewrite. A small server block can catch www.example.com, send a permanent 301 response,...

Enable the Nginx Sendfile Directive
Large static-file responses can make Nginx spend CPU time copying data it does not need to inspect. To enable sendfile in Nginx, set the sendfile directive so direct...

Create Nginx Rewrite Rules with return and rewrite
Nginx rewrite rules are useful when a URL move needs more than a one-off redirect, but they can also cause loops, duplicate query strings, or open redirects when...

How to Change NGINX Ports
Changing the Nginx port starts with the listen directive inside each server block, not with a global service setting. To change Nginx port 80 to 8080, update every...

How to Enable TCP Fast Open in Nginx
Enable TCP Fast Open in Nginx only when the listener can safely accept request data before the TCP handshake fully completes. The workflow is to enable Linux server-side...

Enable Nginx reuseport for HTTP, Stream and QUIC Listeners
Busy Nginx servers can spend surprising time coordinating which worker accepts the next connection. The reuseport parameter on the Nginx listen directive uses the operating system's SO_REUSEPORT support...

Enable Nginx open_file_cache for Static Files
Repeated static-file requests can waste time on the same filesystem checks: open the file, confirm it still exists, read its size, and check its modification time. Nginx open_file_cache...