4 ms·
For me the main turndown of using PHP is when I need to host the PHP website, php-fpm and Apache+mod_php seem to be the only two options. (FastCGI doesn't even
by yegle 5y ago
For me the main turndown of using PHP is when I need to host the PHP website, php-fpm and Apache+mod_php seem to be the only two options. (FastCGI doesn't even have a proper specification).
- azophy_2 5y agoswoole is a pretty interesting alternative as it allows asynchronous programming in PHP. roadrunner is a PHP server developed using golang, utilizing goroutines for high performance. both used by Laravel Octane, providing very easy integration with the framework. Other than that, php-fpm & FastCGI allows integration with many interestin webserver including Nginx, Caddy, Lighttpd, etc.
- yegle 5y agoRoadrunner looks cool, thanks for the recommendation!
- lessname 5y agoI would be a little bit careful while using swoole. They added some code that loaded code from a third party server [1] (a core developer who seems to be located in china). Even though it seems like they removed it doesn't bring a good feeling. It seems like there were also some disagreements with a contributor who maintained the website of swoole and he forked it [2]: https://github.com/openswoole/swoole-src https://github.com/openswoole/swoole-src [1] https://github.com/swoole/swoole-src/issues/4434 https://github.com/swoole/swoole-src/issues/4434 [2] https://news-web.php.net/php.pecl.dev/17446 https://news-web.php.net/php.pecl.dev/17446
- fogihujy 5y agoLitespeed, or Apache+mod_lsapi are excellent alternatives. If self-hosting, Nginx and FPM is well-tested and very fast.