Announcement

Collapse
No announcement yet.

Problem adding new directive for custom php.ini in PHP Selector

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Problem adding new directive for custom php.ini in PHP Selector

    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:

    Code:
    Directive = magic_quotes_gpc
    
    Default   = On
    
    Type      = bool
    
    Remark    = <5.4.0
    
    Comment   = Sets the magic_quotes state fo...
    And I made it look like this:

    Code:
    Directive = max_input_vars
    
    Default   = 1000
    
    Type      = value
    
    Remark    = >5.3.8
    
    Comment   = How many input variables may be accepted.
    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

  • #2
    It appears the only one acceptable mark for greater value ">=" , your remark should be:

    Code:
    Remark >= 5.3.8
    This will it will works properly. We have opened bugreport about this case so will be fixed in future releases.

    Comment


    • #3
      Hi Bogdan. This is not working:

      Code:
      Remark >= 5.3.8
      It is causing all sorts of problems in PHP Selector in cPanel. For example, our Native PHP is 5.4. If a customer chooses PHP 5.5 instead, it still gives the message "Warning: Changing php modules and php options via PHP Selector for native php version is impossible"

      I have simply removed Remark completely until the bug is resolved. I wanted you to know that >= is not a working work-around.

      - Scott

      Comment


      • #4
        Scott, you are right, I have just tested on internal server it cause the issue you describe, a warning about native php, really not sure how that is possible. I am going to escalate it to our developers .

        Comment


        • #5
          Was this ever resolved?

          - Scott

          Comment


          • #6
            I have just tested the same and issue was fixed from other side, support for more comparison symbols were added so now > could be used.

            However >= and => are still not supported.

            Comment

            Working...
            X