

You can’t do what I suggested with *mod_php*…since *apache* will only load one *mod_php* at a time.

If you use *nginx*, *php_fpm* is the only game in town (besides the uber-slow CGI). *php_fpm* works with *nginx* too…not so with *mod_php*.
*php_fpm* is multithreaded too…and gives you the ability to assign different PHP requests to different thread pools based on **mpm_worker* & *mpm_event* use multiple threads (and only a few processes).Īs far as future-proofing goes, *mod_php*’s days are numbered. Since *mpm_prefork* uses multiple processes to handle requests, it requires the most system resources. *mod_php* is not thread-safe so you can only use it with *mpm_prefork*. The reasons for using *php-fpm* is to future-proof your installation and thread-safety. Is there any advantage to running FPM vs. One is the EspoCRM database that is only used by me. My sites are small and get very little traffic. Imagine what your performance would be like if you had to unload mod_php, load a different mod_php & reload apache for every single request!ĭescription > Let me ask this. You can’t do what I suggested with mod_php…since apache will only load one mod_php at a time. If you use nginx, php_fpm is the only game in town (besides the uber-slow CGI). php_fpm works with nginx too…not so with mod_php. php_fpm is multithreaded too…and gives you the ability to assign different PHP requests to different thread pools based on configuration or whatever criteria you choose (as codified in the web server config). mpm_worker & mpm_event use multiple threads (and only a few processes).Īs far as future-proofing goes, mod_php’s days are numbered. Since mpm_prefork uses multiple processes to handle requests, it requires the most system resources. mod_php is not thread-safe so you can only use it with mpm_prefork. The reasons for using php-fpm is to future-proof your installation and thread-safety.
You would put the 7.4 php-fpm configuration directives into the> Also, is there a simple way to list all the PHP modules I currently have installed via some apt or dpkg command?

This will save a lot of (what may be left of) your hair. Unless your picture gallery uses some really obtuse features or relies on something equally obtuse that was deprecated in 8.0, my guess is that it will probably work - the differences are pretty minor.
You would put the 7.4 *php-fpm* configuration directives into the *If you use a global *apache2* configuration for *php-fpm* (in */etc/apache2/conf-available*), you would have to split that into two - one for 7.4 and one for 8.0 - and disable the global one. You would have 2 copies of *php-fpm* running - one for 7.4 and one for 8.0 (obviously, each would be started with a corresponding unique configuration and set of loadable modules). You should be able to do this - esp if you use *php-fpm*.

#Ubuntu 20.04 php 8.1 install
This will save a lot of (what may be left of) your hair…Īlso, is there a simple way to list all the PHP modules I currently have installed via some apt or dpkg command?ĭescription > Can I install PHP 8 and keep 7? If so, how do I specify a certain PHP (probably in the. You would put the 7.4 php-fpm configuration directives into the for and the 8.0 php-fpm configuration into the for WP.īefore doing all that, I would try running your picture gallery on 8.0 and see what happens… Unless your picture gallery uses some really obtuse features or relies on something equally obtuse that was deprecated in 8.0, my guess is that it will probably work - the differences are pretty minor. If you use a global apache2 configuration for php-fpm (in /etc/apache2/conf-available), you would have to split that into two - one for 7.4 and one for 8.0 - and disable the global one. You would have 2 copies of php-fpm running - one for 7.4 and one for 8.0 (obviously, each would be started with a corresponding unique configuration and set of loadable modules). You should be able to do this - esp if you use php-fpm… Can I install PHP 8 and keep 7? If so, how do I specify a certain PHP (probably in the.
