I'm excited to start using a dedicated Linux server as a headless setup! I recently received an HP 290 G2 with 16GB of RAM and an Intel i5 8500 processor. Currently, it's running Windows 11, where I'm using Jellyfin for streaming and XAMPP for my Drupal site. Since I'm still learning Drupal and only using my IP address to connect for now, I'm open to experimenting with Linux without any major consequences.
I've dabbled in various Linux distributions like Ubuntu, Mint, and Pop before, but I never set up a headless server. My goal is to deepen my understanding of Apache, PHP, Docker, and overall security, moving away from just running configurations through XAMPP and using standard Windows installers.
I'd love to get some beginner tips, best practices, and recommendations on what Linux variant would be best for this kind of setup. Thanks in advance for your help!
3 Answers
Welcome to the world of headless Linux! Just remember that while you can run a GUI, you’ll mostly be working in the terminal, especially for server setups. Any of the distros you’ve mentioned will do fine. Just get comfortable using SSH and bash to navigate and manage your server.
Keep in mind that the term 'headless' is a bit loose when it comes to Linux. Linux has always prioritized the command-line interface, so you're already on the right track. Go with a distro that has good community support; Ubuntu is often recommended for beginners. Just search online for guides on setting up Apache or Nginx for your specific server needs, and don’t forget to secure your server with UFW!
You might want to check out using Nginx instead of Apache; it’s often considered better for performance these days! Just a heads-up, if you're serious about switching to Linux, it might be worth removing Windows altogether and going with a distro like Fedora or CachyOS.
While Nginx is great, a lot of people still prefer Apache for dynamic contents like PHP apps. It really depends on your specific needs!
Definitely considering removing Windows from the HP! I was just using Apache because it was easier with XAMPP. Most of my sites are static, and I’m learning PHP for Drupal, so Apache seems like a good fit for now.

Thanks for the tip! I’ll definitely focus on mastering the terminal commands.