Hacker News new | past | comments | ask | show | jobs | submit login

Works on the lowest cost VM's on AWS ($3.50 USD per month) and the site still runs fast with low memory.

To run download then call the script: wget https://www.fastsitephp.com/downloads/create-fast-site.sh sudo bash create-fast-site.sh

Additional Docs in multiple langugages are here: https://www.fastsitephp.com/en/documents/install-php-on-linu...




Was there a reason to use libapache2-mod-php instead of using the recommended approach of using fastcgi and php-fpm?


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.


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...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: