rryqszq4 / ngx-php

ngx-php - Embedded php7 or php8 scripting language for nginx module. Mainline development version of the ngx-php.
BSD 2-Clause "Simplified" License
646 stars 55 forks source link

Simple Demo, Microblog using NGX-PHP (PHP8) and Docker #142

Open soulteary opened 2 years ago

soulteary commented 2 years ago

A simple application example, I hope it will be helpful to the users of NGX-PHP:

UPD, how to : https://soulteary.com/2022/10/05/nginx-black-magic-low-cost-high-performance-applications-using-ngx-php-modules.html

joanhey commented 2 years ago

Ngx-php it's about 400-600% faster than php-fpm.

So these numbers don't look OK image

That's only 35,80% faster.

I created a fork from your repo, and I will send issues and PR's to make it correct. So we will explain how to use it correctly.

PD: Please, try to change the html in: https://soulteary.com/2022/10/05/nginx-black-magic-low-cost-high-performance-applications-using-ngx-php-modules.html

From <!DOCTYPE html><html lang="en" to <!DOCTYPE html><html lang="zh". Or the browser can't translate the page. Thank you

soulteary commented 2 years ago

Okay, I agree with the point you mentioned in another issue, the OP is optimization of PHP, not NGX vs FPM or Apache, maybe PHP should be kept optimized to be more convincing. @joanhey