@@ -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> |
@@ -85,6 +85,7 @@ | |||
'configfile': '/usr/local/etc/apache22/httpd.conf', | |||
'portsfile': '/usr/local/etc/apache22/ports.conf', | |||
'mod_php5': 'mod_php56', | |||
'mod_wsgi': 'ap22-mod_wsgi3', | |||
'vhostdir': '/usr/local/etc/apache22/Includes', |
@@ -32,4 +32,16 @@ a2enmod php5: | |||
- pkg: mod-php5 | |||
{% 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 %} |