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> |
'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', |
- 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 %} |