Hi, does anyone notice problems with Apache and PHP-FPM on Ubuntu 22.04? After a few tries, it was able to start as FPM/FastCGI, but it doesn’t support pools (only default www.conf).
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello there,
This setup is completely fine. You just need to make sure you’ve installed all packages and have the correct configuration.
We also have an article on How To Configure Apache HTTP with MPM Event and PHP-FPM on Ubuntu 18.04 which is for an older Ubuntu version but the process should be very similar for Ubuntu 22.04 as well. You can check the article here
https://www.digitalocean.com/community/tutorials/how-to-configure-apache-http-with-mpm-event-and-php-fpm-on-ubuntu-18-04
Regards
Hi @michalgiza,
I’ve had no problems with running Apache, PHP-FPM and fpm pools. Let’s say you are using PHP 8.1 you’ll need to install the PHP extension:
Once you have it, you’ll need install proxy_fcgi on apache:
In the Apache config you can add the following block:
After you have that, you can enable your domain’s apache config. Once you have that you can edit the fpm pool at Pool config: /etc/php/8.1/fpm/pool.d/www.conf.
Once that, you’ll need to create a new user called example like so:
and paste in the following:
Now, remember the Apache block with added? You need to edit it to look like so:
Notice the example user in there.
Now you’ll need to restart PHP php-fpm and apache2 for the changes to take effect.