I have been using apache2 + php for years under debian.
But I heard people says nginx + php has better performance.
Do you have experience on both of setup and share a bit with me?
I have been using apache2 + php for years under debian.
But I heard people says nginx + php has better performance.
Do you have experience on both of setup and share a bit with me?
Hi,
On Thu, Aug 01, 2024 at 07:35:38PM +0800, Walt E wrote:
I have been using apache2 + php for years under debian.
But I heard people says nginx + php has better performance.
Do you have experience on both of setup and share a bit with me?
I do and I don't think it will make any noticeable performance
difference for you, so I would suggest sticking with apache2 unless
you have a stronger need to use nginx or for purely educational
purposes.
Thanks,
Andy
Au contraire Andy.
The best, most expandable 3d printer driver, klipper,
uses nginx to build its control interface
apache2 was probably tested and found wanting.
Most of this stuff is run on stm32 for the hardware interface,
administered by klipper running on one of the better pi clones.
rpi3b's generally are minimum but I'm using several 64 bit
bpi-m5's for that.
Do you have a performance problem? If not, don't change.
If you do have a performance problem: how much have you
optimized already? What methods have you used? Can you define
the gap between what you have and what you need?
You need to profile & understand first.
On 8/1/24 07:35, Walt E wrote:
Hello
I have been using apache2 + php for years under debian. But I heard
people says nginx + php has better performance.
That is not true:
1. https://people.apache.org/~jim/presos/ACNA11/Apache_httpd_cloud.pdf
2. https://www.slideshare.net/slideshow/choosing-a-proxy-server-apachecon-2014/33506168
Hello,
On Thu, Aug 01, 2024 at 08:54:22AM -0400, gene heskett wrote:
Au contraire Andy.
What a surprise. Here we go again.
The best, most expandable 3d printer driver, klipper,
uses nginx to build its control interface
It doesn't matter what niche activities you (or I) engage in on niche hardware that happen to use nginx for reasons you don't know of but
assume are "probably" vital. OP has a working apache2 that they are
familiar with. If they told me they had a working nginx they are
familiar with I'd have told them to stick with that.
I am answering based on OP's stated situation. You are answering
based on your personal circumstances and still making a big leap of reasoning.
apache2 was probably tested and found wanting.
Fact that it's working for OP's use case trumps your vague
"probably". If OP had come here with a problem we'd solve it, and
that could involve switching to something else. But they didn't.
It doesn't seem that OP is doing anything like that and if they were
it would be down to them to state they have an issue with
constrained resources. They did not, so your advice is bizarre at
best.
Andy
On 8/1/24 09:34, Andy Smith wrote:
Hello,
On Thu, Aug 01, 2024 at 08:54:22AM -0400, gene heskett wrote:
Au contraire Andy.
What a surprise. Here we go again.
The best, most expandable 3d printer driver, klipper,
uses nginx to build its control interface
I am answering based on OP's stated situation. You are answering
based on your personal circumstances and still making a big leap of reasoning.
apache2 was probably tested and found wanting.
Fact that it's working for OP's use case trumps your vague
"probably". If OP had come here with a problem we'd solve it, and
that could involve switching to something else. But they didn't.
Neither of us has any knowledge of how many coding hours went into making apach2 work for the OP, the OP didn't indicate.
It also illustrates that this stuff isn't restricted to "genuine rpi" stuff to run on, there are dozens of other clones that can do this quite nicely. Some of them quite a bit faster than the rpi's with their usb2 speed limits. That is one of the reasons I chose the bpi-m5, all 4 usb ports are usb3.
That spreading of "it works for me" info seems like a proper function of a "community" list, Andy.
Andy
Cheers, & best wishes, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
On Thu, Aug 1, 2024 at 10:40 AM Walt E <walt@ik.me> wrote:
I have been using apache2 + php for years under debian.
But I heard people says nginx + php has better performance.
Do you have experience on both of setup and share a bit with me?
Related, Nginx is generally considered more secure than Apache. Nginx
has approximately 220 CVEs, while Apache and friends has roughly 2700
CVEs. Confer, <https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=apache>
and <https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=nginx>.
I think it was Jon Bentley who said, if it does not have to be
correct, then I can make it as fast as you want it to be. Quickly
arriving at an incorrect result is not a good outcome.
Jeff
On Thu, Aug 01, 2024 at 01:10:37PM -0400, gene heskett wrote:
On 8/1/24 09:34, Andy Smith wrote:
Hello,
On Thu, Aug 01, 2024 at 08:54:22AM -0400, gene heskett wrote:
Au contraire Andy.
What a surprise. Here we go again.
The best, most expandable 3d printer driver, klipper,
uses nginx to build its control interface
I am answering based on OP's stated situation. You are answering
based on your personal circumstances and still making a big leap of
reasoning.
apache2 was probably tested and found wanting.
Fact that it's working for OP's use case trumps your vague
"probably". If OP had come here with a problem we'd solve it, and
that could involve switching to something else. But they didn't.
Neither of us has any knowledge of how many coding hours went into making
apach2 work for the OP, the OP didn't indicate.
There's a to and fro here - none of us knows _exactly_ how much
time and effort the original poster is able to devote to this.
Both would do the job. I used nginx for my Debian mirror because
it allegedly serves small files very well.
It also illustrates that this stuff isn't restricted to "genuine rpi" stuff >> to run on, there are dozens of other clones that can do this quite nicely. >> Some of them quite a bit faster than the rpi's with their usb2 speed limits. >> That is one of the reasons I chose the bpi-m5, all 4 usb ports are usb3.
That spreading of "it works for me" info seems like a proper function of a >> "community" list, Andy.
"It works for me" : Gene, how many of your ARM boards are running
Debian as distinct from Ubuntu / Armbian?
You do keep repeating that everyone should follow you in running
ARM boards and pushing stuff forwards yourself but this list always
has problems establishing exactly where your problems lie and exactly
what you've done.
All the very best to all on the list,Ditto Andy.
Andy
(amacater@debian.org)
Andy
Cheers, & best wishes, Gene Heskett, CET.
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)
If we desire respect for the law, we must first make the law respectable.
- Louis D. Brandeis
.
Related, Nginx is generally considered more secure than Apache. Nginx
has approximately 220 CVEs, while Apache and friends has roughly 2700
CVEs. Confer, <https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=apache>
and <https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=nginx>.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 01:34:02 |
Calls: | 10,385 |
Calls today: | 2 |
Files: | 14,057 |
Messages: | 6,416,579 |