Announcement

Collapse
No announcement yet.

Prohibit Certain PHP Selector Directives

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

  • 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

  • #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


    • #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


      • #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


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

          - Scott

          Comment


          • #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


            • #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


              • #8
                Hello! Thanks for following up!

                Comment

                Working...
                X