Websites & apps
Web servers, WordPress, PHP, Node.js, SSL and app hosting.
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.
- Beginner
- Linux VPS
- 5 min read
Run PHP and WordPress with Caddy and PHP-FPM
Serve PHP sites and WordPress from Caddy using the php_fastcgi directive and PHP-FPM, with working permalinks, larger upload limits and wp-config.php kept private.
- Intermediate
- Linux VPS
- 5 min read
Enable Brotli compression in Nginx
Add Brotli compression to Nginx with the packaged dynamic modules on Ubuntu 24.04 and Debian 12, keep gzip as a fallback, and confirm browsers receive br encoding.
- Intermediate
- Linux VPS
- 5 min read
Run PHP-FPM with Apache using proxy_fcgi and mpm_event
Move Apache from mod_php and the prefork MPM to PHP-FPM with mpm_event and proxy_fcgi. Use less memory, serve more visitors and pick a PHP version per virtual host.
- Intermediate
- Linux VPS
- 4 min read
How to add virtual hosts and domains in OpenLiteSpeed
Create a virtual host in OpenLiteSpeed WebAdmin, set its document root, add a port 80 listener, map your domain to it, enable rewrites and apply the change with a graceful restart.
- Intermediate
- Linux VPS
- 4 min read
Proxy WebSocket connections through Nginx
Make WebSockets work behind Nginx by passing the Upgrade and Connection headers, using a map for connection_upgrade, raising read timeouts, and testing the socket.
- Intermediate
- Linux VPS
- 5 min read
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.
- Beginner
- Linux VPS
- 5 min read
Password protect a site or folder with Nginx basic auth
Add a username and password prompt to a whole site, a staging copy or an admin folder with Nginx basic auth, and let trusted IPs through without a password.
- Beginner
- Linux VPS
- 5 min read
Set up Apache virtual hosts for multiple websites
Host several websites on one Apache server with name-based virtual hosts. One config file per domain, its own document root and its own logs, on Ubuntu, Debian, AlmaLinux and Rocky Linux.
- Beginner
- Linux VPS
- 5 min read
Install multiple PHP versions on Ubuntu and Debian
Add Ondřej Surý's PHP repository, install PHP 8.2, 8.3 and 8.4 side by side with PHP-FPM, and switch the command-line PHP version with update-alternatives.
- Intermediate
- Linux VPS
- 5 min read
Enable gzip compression in Nginx
Turn on gzip in Nginx so HTML, CSS, JavaScript and JSON are sent compressed, choose sensible types and levels, and confirm it works with curl.
- Beginner
- Linux VPS
- 4 min read
Redirect HTTP to HTTPS in Nginx
Send every plain HTTP visitor to the secure HTTPS version of your site with one return 301 in Nginx, while keeping Let's Encrypt renewals working and avoiding redirect loops.
- Beginner
- Linux VPS
- 5 min read
Nginx 301 redirects and rewrite rules explained
Learn when to use return and when to use rewrite in Nginx, then redirect single pages, whole folders and old domains, and convert common .htaccess rules.
- Intermediate
- Linux VPS
- 5 min read
Secure Apache with a free Let's Encrypt certificate
Install certbot with its Apache plugin, issue free Let's Encrypt certificates for each virtual host, redirect HTTP to HTTPS and confirm that automatic renewal works.
- Beginner
- Linux VPS
- 4 min read
Other topics
- Getting startedYour first hour with a new server: access, logins and basics.66 guides
- Linux VPSSSH, packages, services and everyday Linux administration.41 guides
- Windows VPS & RDPRemote Desktop, Windows Server settings and Admin RDP tips.53 guides
- SecurityKeys, passwords, firewalls and keeping a server patched.86 guides
- Networking & DNSIP addresses, reverse DNS, ports and traffic.15 guides
- Control panelscPanel & WHM, Plesk, DirectAdmin and other panels on your VPS.101 guides
- Websites & appsWeb servers, WordPress, PHP, Node.js, SSL and app hosting.44 guides
- DatabasesMySQL, MariaDB, PostgreSQL, Redis and MongoDB on a VPS.56 guides
- Docker & DevOpsContainers, Git deploys, automation, monitoring and backups.55 guides
- Billing & accountInvoices, renewals, the client area and your account.7 guides
- TroubleshootingWhen something is not working: checks and fixes.43 guides