42
Linux
6y

Apache no doubt.

Reason? It is good, and it does not want to shove a commercial license into my throat like Nginx wants.

Comments
  • 2
    I haven't been asked about a commercial license yet with nginx? I mean I do install it from the repositories, but it still works pretty well
  • 0
  • 2
    I love Nginx for it’s simplicity... but have began using a config that allows both to run. Every virtual host runs on Nginx and Apache. Apache as the secondary running on 8080.

    I have my VMs set to be able to mimic the production environment of any project I am working on. If my client has a machine running Apache and php 5.6, then I can reproduce that just for that one specific site.
  • 0
    @lewdogg
    Why not use PHP-fpm? You dont need apache for PHP
  • 1
    @Linux for anything other than php 7, Apache uses php-fpm in my setup. Like I said, my setup is not for performance... it is so that I can easily replicate the production environment of any project I work on.

    I agree, php-fpm is the way to go in most situations. I love the extra level of caching it can provide.
  • 0
    @lewdogg why not use Docker if you need to replicate different systems/environments?
  • 0
    @Fenix I just found this easier.
    Create a new directory, drop an Apache config and an Nginx config in their and have it instantly recognized.
    Docker is good, but when I want to change the version of php on a specific site I just have to change the php-fpm port number.
    Docker requires a separate instance for every project, or at least that would optimal... and I just wanted one giant Swiss Army knife server for everything.
  • 0
    @Fenix
    Docker? It makes it more complicated actually.
  • 1
    @lewdogg @Linux well you also have several php-fpms if you want to have different php versions? Then all containers could also just use a different port. Or did I misunderstood the problem? @Linux I don't get why it would be more complex?
  • 0
    @Fenix that is exactly what I did.
  • 0
    @lewdogg I would have preferred to not pollute the system with several versions of it and encapsulate it in containers, but if it works for you, why not doing it your way :)
  • 0
    @Fenix
    You can run several php-fpm versions without docker. The pools are placed in /etc/php/7.x/fpm/pool.d
  • 1
    @inaba Yeah this. I've used it for years and never been asked about acquiring a license or anything.

    I used to live Apache myself but now I'm nginx all the way, sorry 😅
  • 1
    @linuxxx I used to be an Apache guy myself. Though not really for any other reason than XAMP and the webhotel I used.

    Then I discovered nginx, and oh boy that was nice
Add Comment