Hacker News new | ask | show | jobs
by __app_dev__ 2346 days ago
Thanks for posting. Can you provide some docs or links that show to use libapache2-mod-php for Apache? Most docs I've seen show using it for Apache.

For nginx the script is using php-fpm.

During testing with this script on a clean os I am able to achieve around 2500 to 6500 requests per second on the lowest cost VM's with both setup options (Apache or nginx) and 25k+ requests per second on higher cost servers.

1 comments

Here are some links for [libapache2-mod-php] vs [php-fpm] for Apache (both Pro and Con plus install links).

For the first link where the developer switched to [php-fpm] his site could only handle 30 users at a time so his server side framework must have been very slow. As I mentioned the script from the post allows for 2500+ requests-per-second (tested 100 concurrent users) and allows for many more users with tweaking.

The setup for [php-fpm] with Apache is somewhat complex so I would recommend using nginx if you want to use [php-fpm].

https://smddzcy.com/posts/2017-09-16/migrating-from-mod-php-...

https://www.reddit.com/r/PHP/comments/4bi9a4/why_is_mod_php_...

https://tecadmin.net/install-apache-php-fpm-ubuntu-18-04/

https://serverfault.com/questions/645755/differences-and-dis...

https://stackoverflow.com/questions/47916133/need-to-install...

https://www.linode.com/docs/web-servers/apache/running-fastc...