Prohibit Certain PHP Selector Directives

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xvidvideo
    Junior Member
    Forum Explorer
    • Mar 2021
    • 18

    #1

    Prohibit Certain PHP Selector Directives

    Is there a way to prevent users from selecting specific directives when using the PHP Selector?

    We do not want users to have access to ffmpeg on the servers, can we remove this option?

    Thanks
  • sqh
    Member
    • Sep 2017
    • 92

    #2
    I wish someone had answered this -- curious, also, about how to add and remove PHP modules / shared objects from various versions of PHP in PHP Selector.

    - Scott

    Comment

    • bogdan.sh
      Administrator
      • Nov 2016
      • 1219

      #3
      The best way to disable some extension is to comment it out in /opt/alt/phpXX/etc/http://php.d.all/$EXTENSION.ini , according to http://docs.cloudlinux.com/disabling_php.html

      Comment

      • erwee
        Junior Member
        • Dec 2017
        • 1

        #4
        Thanks for getting back to us, is there any way to completely hide the extension, not just disable them?

        We feel its a bit misleading to have the options available, but have no effect when selected.

        Comment

        • sqh
          Member
          • Sep 2017
          • 92

          #5
          Agree with @Erwee de Kock-- we can do better than this.

          - Scott

          Comment

          • bogdan.sh
            Administrator
            • Nov 2016
            • 1219

            #6
            Ok, I agree this is not perfect solution. If you remove .ini file completely it will be restored with next alt-php update.

            I am going to create a bugreport about this case to consider how to make more elegant solution, however it will not be fast.

            Comment

            • sinugujo
              Junior Member
              • Mar 2021
              • 1

              #7
              Just a typo correction, which can create a confusion....Should be:

              "if you want to block system command like exec for php53 you have to add disable_functions=exec in /opt/alt/php53/etc/php.ini file"

              note the php version ....

              Thanx!

              Comment

              • skhristich
                Senior Member
                • Nov 2019
                • 595

                #8
                Hello! Thanks for following up!

                Comment

                Working...