-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: FreePBX Framework
-
Labels:None
-
Sprint:Sprint 75
-
ToDo:
Currently .htaccess in /var/www/html/admin has an IfModule for php5 as shown below:
<IfModule php5_module>
php_value max_input_vars 5000
</IfModule>
However if you run FreePBX on PHP 7, the max input variables are never set to be more than the default, since the module being loaded is php7 and not php5.
Below is a diff to add support for PHP 7
diff --git a/amp_conf/htdocs/admin/.htaccess b/amp_conf/htdocs/admin/.htaccess
index 17ccb5ce4..5f2f0de4e 100644
--- a/amp_conf/htdocs/admin/.htaccess
+++ b/amp_conf/htdocs/admin/.htaccess
@@ -34,6 +34,10 @@ SetEnv HTACCESS on
php_value max_input_vars 5000
</IfModule>
+<IfModule php7_module>
+ php_value max_input_vars 5000
+</IfModule>
+
RewriteEngine on
#RewriteCond %{ENV:REDIRECT_STATUS} 200
#RewriteRule ^ - [L]