Allowing PHP exec() function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sahostking
    Member
    Forum ExplorerTechnical Associate
    • Mar 2021
    • 95

    #1

    Allowing PHP exec() function

    Allowing PHP exec() function
    Hostking | Since 2013 | Web Hosting | WordPress Web Hosting
  • sahostking
    Member
    Forum ExplorerTechnical Associate
    • Mar 2021
    • 95

    #2
    Hi all,

    What is the best software to allow to use exec() function for example?

    Does CageFS protect clients website well enough to allow such a function in PHP?

    Any other options?
    Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

    Comment

    • sahostking
      Member
      Forum ExplorerTechnical Associate
      • Mar 2021
      • 95

      #3
      help
      Hostking | Since 2013 | Web Hosting | WordPress Web Hosting

      Comment

      • apb
        Senior Member
        • Feb 2018
        • 386

        #4
        It is safe to enable it as long as CageFS is activated

        By-default there is no disabled functions in php-selector inis. If the are, there is an option to replace global disable_functions per user with custom value:
        --add-options (-k)
        or
        --replace-options (-m)

        keys of selectorctl.

        For example:
        selectorctl --add-options=disable_functions: --user=user --version=5.6

        However, this will not work if you have disable_functions added to global ini ( http://docs.cloudlinux.com/index.htm...p_ini_opt.html ), since global ini values force-replace everything.

        You can check our docs about selectorctl here:

        Comment

        Working...