I have several customers that would like to increase the max_input_vars value in their custom php.ini, This directive became available starting in PHP version 5.3.9, and has a default value of 1000.
Im following the documentation here: http://docs.cloudlinux.com/index.htm...i_options.html
I edited /etc/cl.selector/php.conf and copied one of the other directives, then edited the values. So, I copied this one that comes with alt php by default:
And I made it look like this:
This did not work. The max_input_vars did not show up as editable in PHP Selector. After doing some troubleshooting, I realized that the problem was the REMARK line. When I remove it, the directive shows up as editable!
What is Remark? There is no documentation at all for it. I assumed that it was to help control when this directive shows up. i.e. it should ONLY show up in any PHP version GREATER than 5.3.8, because the directive didnt become available until 5.3.9.
For now, I have removed REMARK, however now customers with even PHP 5.2 are now seeing this directive, when they should not.
1) What is Remark?
2) How do we use it?
3) How can I make sure that any new directives I add to /etc/cl.selector/php.conf are only shown in versions of PHP that are valid for that directive?
Thanks!
- Scott
Im following the documentation here: http://docs.cloudlinux.com/index.htm...i_options.html
I edited /etc/cl.selector/php.conf and copied one of the other directives, then edited the values. So, I copied this one that comes with alt php by default:
Code:
Directive = magic_quotes_gpc Default = On Type = bool Remark = <5.4.0 Comment = Sets the magic_quotes state fo...
Code:
Directive = max_input_vars Default = 1000 Type = value Remark = >5.3.8 Comment = How many input variables may be accepted.
What is Remark? There is no documentation at all for it. I assumed that it was to help control when this directive shows up. i.e. it should ONLY show up in any PHP version GREATER than 5.3.8, because the directive didnt become available until 5.3.9.
For now, I have removed REMARK, however now customers with even PHP 5.2 are now seeing this directive, when they should not.
1) What is Remark?
2) How do we use it?
3) How can I make sure that any new directives I add to /etc/cl.selector/php.conf are only shown in versions of PHP that are valid for that directive?
Thanks!
- Scott
Comment