Use php-fpm for PHP access.

This commit is contained in:
Jim Hague 2024-07-14 15:08:31 +01:00
parent 3000db5ed6
commit 2e3ebbcd03
2 changed files with 19 additions and 0 deletions

18
states/php_fpm/init.sls Normal file
View File

@ -0,0 +1,18 @@
php-fpm:
pkg.installed
apache_php_module:
apache_module.disabled:
-name: php8.2
apache_fcgi_module:
apache_module.enabled:
- name: proxy_fcgi
apache_setenvif_module:
apache_module.enabled:
- name: setenvif
apache_php8.2_conf:
apache_conf.enabled:
- name: php8.2-fpm

View File

@ -5,6 +5,7 @@ base:
'hedwig.lunch.org.uk':
- debian
- apache
- php_fpm
- mariadb
- backup
- backup/hedwig