adjust fastcgi conf for php-fpm when using apache-2.4

Signed-off-by: Michael Kaufmann (d00p) <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann (d00p)
2015-06-11 20:59:41 +02:00
parent 9781674849
commit d0c4d5616a
3 changed files with 54 additions and 6 deletions

View File

@@ -68,8 +68,24 @@
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
</daemon>
<daemon name="apache" version="2.4" title="Apache 2.4">
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
</include>
<include>//service[@type='http']/general/commands</include>
<file name="/etc/apache2/modules.d/70_fastcgi.conf">
<visibility mode="true">{{settings.phpfpm.enabled}}
</visibility>
<content><![CDATA[
<IfModule mod_fastcgi.c>
FastCgiIpcDir <FPM_IPCDIR>
<Location "/fastcgiphp">
Require all granted
Require env REDIRECT_STATUS
</Location>
</IfModule>
]]>
</content>
</file>
<command><![CDATA[rc-update add apache2 default]]></command>
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
</daemon>
<!-- HTTP Lighttpd -->
<daemon name="lighttpd" title="LigHTTPd">

View File

@@ -68,8 +68,24 @@
<command><![CDATA[service apache2 restart]]></command>
</daemon>
<daemon name="apache" version="2.4" title="Apache 2.4">
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
</include>
<install><![CDATA[apt-get install apache2]]></install>
<include>//service[@type='http']/general/commands</include>
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
<visibility mode="true">{{settings.phpfpm.enabled}}
</visibility>
<content><![CDATA[
<IfModule mod_fastcgi.c>
FastCgiIpcDir <FPM_IPCDIR>
<Location "/fastcgiphp">
Require all granted
Require env REDIRECT_STATUS
</Location>
</IfModule>
]]>
</content>
</file>
<command><![CDATA[service apache2 restart]]></command>
</daemon>
<!-- HTTP Lighttpd -->
<daemon name="lighttpd" title="LigHTTPd">

View File

@@ -68,8 +68,24 @@
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
</daemon>
<daemon name="apache" version="2.4" title="Apache 2.4">
<include>//service[@type='http']/daemon[@name='apache'][@version='2.2']
</include>
<install><![CDATA[apt-get install apache2]]></install>
<include>//service[@type='http']/general/commands</include>
<file name="/etc/apache2/mods-enabled/fastcgi.conf">
<visibility mode="true">{{settings.phpfpm.enabled}}
</visibility>
<content><![CDATA[
<IfModule mod_fastcgi.c>
FastCgiIpcDir <FPM_IPCDIR>
<Location "/fastcgiphp">
Require all granted
Require env REDIRECT_STATUS
</Location>
</IfModule>
]]>
</content>
</file>
<command><![CDATA[/etc/init.d/apache2 restart]]></command>
</daemon>
<!-- HTTP Lighttpd -->
<daemon name="lighttpd" title="LigHTTPd">