Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Using PHP Selector

Discussion in 'CloudLinux' started by amisz86, Oct 28, 2017.

  1. amisz86

    amisz86 Registered

    Joined:
    Oct 28, 2017
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Root Administrator
    Hello everyone,
    does anyone know how can I add additional functions for a user like in the link on the third picture?
    For example so that a user from the list would be able to turn on/off magic_quotes_gbc. Currently I don't have this function in my WHM /cpanel.
    Thanks for any information.

    CloudLinux Documentation
     
    #1 amisz86, Oct 28, 2017
    Last edited by a moderator: Oct 28, 2017
  2. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    664
    Likes Received:
    219
    Trophy Points:
    43
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Add the functions you want to /etc/cl.selector/php.conf

    So for your magic_quotes_gpc, you could add the following code:
    Code:
    Directive = magic_quotes_gpc
    Default   = Off
    Type      = bool
    Remark    = <5.4.0
    Comment   = Magic Quotes is a process that automagically escapes incoming data to the PHP script. It's preferred to code with magic quotes off and to instead escape the data at runtime, as needed. 
    Note that the Remark field ¡s set to less than 5.4.0 because this feature was DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0.

    (I actually thought this function was already included as standard in the Cloudlinux PHP Selector codebase - I don't remember adding it to my code and it is clearly there for PHP versions 5.3 and under. Perhaps you are looking at a more modern PHP version that will not display the option ? )

    See the Custom PHP.ini options page of the Cloudlinux documentation for full details


    Before you offer this option to your users, you may want to read the full notes at PHP: Magic Quotes - Manual
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #2 rpvw, Oct 28, 2017
    Last edited: Oct 28, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,633
    Likes Received:
    1,787
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Let us know if the previous post helps.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice