mod_php5: FreeBSD
This commit is contained in:
parent
5d27226001
commit
9a1fb054d6
10
apache/files/FreeBSD/mod_php5.conf.jinja
Normal file
10
apache/files/FreeBSD/mod_php5.conf.jinja
Normal 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>
|
@ -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',
|
||||||
|
@ -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 %}
|
||||||
|
Loading…
Reference in New Issue
Block a user