r/PHPhelp • • Jul 26 '25

Help with setting up PHP on Linux

I was advised that Debian is better than Ubuntu for replicating a PHP development environment more easily.

I’ve had a not so great experience with Ubuntu and PHP, and I actually prefer working with Debian. However, at work, there’s already a running Debian system, and I’m not responsible for maintaining it my only task is working with PHP.

Now at home, I’ve installed Proxmox on VMware Pro, and the next step is to install Debian on Proxmox, then install PHP and Apache on it, and finally work with CodeIgniter.

I know it’s a tough path I’ve chosen just to work with PHP at home on Windows 11.

Am I missing something?
At first glance, Proxmox seems like a program that tries to get its users to subscribe in one way or another. It doesn’t seem open-source as I understand it. I tried using ProxMenux to install Debian through it, but the Console didn’t work because I wasn’t subscribed to Proxmox.

Note:
When I tried installing Debian directly on VMware, literally nothing worked. The essential packages for running PHP weren’t available, and that’s why I thought installing Debian on Proxmox on VMware would be better. But honestly it wasn’t better.

I really want to work with PHP on Debian 12 just like I do at work, but it hasn’t worked out for me at home.
I want the PHP development environment at home to be very simple and not confusing, unlike the difficult experience I’ve had so far.

Any advice would be helpful.

5 Upvotes

44 comments sorted by

View all comments

Show parent comment

1

u/Excell2178 Jul 26 '25

The reason I chose Apache is because it’s used at my workplace, and I want to learn it to improve myself professionally.
I know that Nginx is better, but due to my limited experience, I’m not yet in a position to take part in decisions about which tools to use at work and I’m honestly okay with that.

2

u/obstreperous_troll Jul 26 '25

Ideally you're not working with the web server directly after you've got things set up, so it really doesn't matter which you use. I dislike Apache: its config syntax is of the devil, and the concept of .htaccess files is unportable to anything else. But what matters is running your app, and Apache will be just fine for that.

If you want to modernize and simplify your workplace's server stack, I suggest giving FrankenPHP a look. But ultimately the web server should just be glue for your app, and glue works best when it's a thin layer.