Skip to content

Commit d774b8a

Browse files
author
Till Brehm
committed
Fixed #5021 PHP7 mod_php support in apps vhost.
1 parent 595496b commit d774b8a

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

install/tpl/apache_apps.vhost.master

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,21 @@
3434
</Directory>
3535
</IfModule>
3636

37+
<IfModule mod_php7.c>
38+
DocumentRoot {tmpl_var name='apps_vhost_dir'}
39+
AddType application/x-httpd-php .php
40+
<Directory {tmpl_var name='apps_vhost_dir'}>
41+
Options FollowSymLinks
42+
AllowOverride None
43+
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
44+
Require all granted
45+
<tmpl_else>
46+
Order allow,deny
47+
Allow from all
48+
</tmpl_if>
49+
</Directory>
50+
</IfModule>
51+
3752
<IfModule mod_fcgid.c>
3853
DocumentRoot {tmpl_var name='apps_vhost_dir'}
3954
SuexecUserGroup ispapps ispapps

server/conf/apache_apps.vhost.master

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,21 @@
4040
</Directory>
4141
</IfModule>
4242

43+
<IfModule mod_php7.c>
44+
DocumentRoot {tmpl_var name='apps_vhost_dir'}
45+
AddType application/x-httpd-php .php
46+
<Directory {tmpl_var name='apps_vhost_dir'}>
47+
Options FollowSymLinks
48+
AllowOverride None
49+
<tmpl_if name='apache_version' op='>' value='2.2' format='version'>
50+
Require all granted
51+
<tmpl_else>
52+
Order allow,deny
53+
Allow from all
54+
</tmpl_if>
55+
</Directory>
56+
</IfModule>
57+
4358
<IfModule mod_fcgid.c>
4459
DocumentRoot {tmpl_var name='apps_vhost_dir'}
4560
SuexecUserGroup ispapps ispapps

0 commit comments

Comments
 (0)