François' Blog

PHP-FPM on Debian 10

Turns out getting PHP-FPM working on Debian 10 is very easy:

$ sudo apt install php-fpm apache2
$ sudo /usr/sbin/a2enconf php7.3-fpm
$ sudo /usr/sbin/a2enmod proxy_fcgi
$ sudo systemctl restart apache2
$ echo '<?php phpinfo();' | sudo tee /var/www/html/info.php >/dev/null

Now info.php is available under the web root, e.g. http://localhost/info.php. That’s it!

Published on 2019-07-08