Announcement

Collapse
No announcement yet.

How to disable PHP Selector via CLI

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

  • 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

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


    • #3
      Thanks Sergey, that worked!

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

      Comment


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