mod_php5: FreeBSD

This commit is contained in:
Alexander Weidinger 2016-09-27 02:16:21 +02:00
parent 5d27226001
commit 9a1fb054d6
3 changed files with 23 additions and 0 deletions

View File

@ -0,0 +1,10 @@
LoadModule php5_module /usr/local/libexec/apache24/libphp5.so
DirectoryIndex index.html index.php
<FilesMatch "\.php$">
SetHandler application/x-httpd-php
</FilesMatch>
<FilesMatch "\.phps$">
SetHandler application/x-httpd-php-source
</FilesMatch>

View File

@ -85,6 +85,7 @@
'configfile': '/usr/local/etc/apache22/httpd.conf', 'configfile': '/usr/local/etc/apache22/httpd.conf',
'portsfile': '/usr/local/etc/apache22/ports.conf', 'portsfile': '/usr/local/etc/apache22/ports.conf',
'mod_php5': 'mod_php56',
'mod_wsgi': 'ap22-mod_wsgi3', 'mod_wsgi': 'ap22-mod_wsgi3',
'vhostdir': '/usr/local/etc/apache22/Includes', 'vhostdir': '/usr/local/etc/apache22/Includes',

View File

@ -32,4 +32,16 @@ a2enmod php5:
- pkg: mod-php5 - pkg: mod-php5
{% endif %} {% endif %}
{% elif grains['os_family']=="FreeBSD" %}
{{ apache.modulesdir }}/050_mod_php5.conf:
file.managed:
- source: salt://apache/files/{{ salt['grains.get']('os_family') }}/mod_php5.conf.jinja
- mode: 644
- template: jinja
- require:
- pkg: apache
- watch_in:
- module: apache-restart
{% endif %} {% endif %}