How to disable PHP Selector via CLI

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • forstnd007
    Junior Member
    Forum Explorer
    • Mar 2021
    • 12

    #1

    How to disable PHP Selector via CLI

    Hi,

    I want to disable PHP Selector (not uninstalling alt-php because it is being used by imunifyAV, only disable) via CLI so I can automate deploys using scripts.
    I attach an image so you know what Im refering to.

    Thanks!

    Ignacio
  • skhristich
    Senior Member
    • Nov 2019
    • 595

    #2
    Hello Ignacio,
    Thank you for reaching out! This code can help you with this:

    Code:
    cloudlinux-selector set --interpreter php --selector-status=disabled
    or if you want to enable - this code:

    Code:
    cloudlinux-selector set --interpreter php --selector-status=enabled
    The information in the documentation will also be useful here https://docs.cloudlinux.com/cloudlin.../#php-selector
    If you have any other questions, feel free to ask here.
    Thank you for contacting us.

    Comment

    • imorandin
      Junior Member
      • Jul 2017
      • 11

      #3
      Thanks Sergey, that worked!

      PS: you have to add --json to the end otherwise itll output an error

      Comment

      • skhristich
        Senior Member
        • Nov 2019
        • 595

        #4
        > Thanks Sergey, that worked!
        >
        > PS: you have to add --json to the end otherwise itll output an error

        Ignacio, Happy to hear it and thanks for following up!

        Comment

        Working...