How to disable PHP Selector via CLI
Forum
  1. Forums
  2. CloudLinux and Control Panels
  3. CloudLinux and cPanel
  1. Ignacio
  2. 15.01.2020
  3.  Subscribe via email
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 I'm refering to.

Thanks!

Ignacio
Attachments (1)
Rate this post:
Accepted Answer
  1. 15.01.2020 15:01:15
  2. # Permalink
Sergey Khristich Accepted Answer
Posts: 466
Joined: 20.05.2019
0
Votes
Undo
Hello Ignacio,
Thank you for reaching out! This code can help you with this:

cloudlinux-selector set --interpreter php --selector-status=disabled

or if you want to enable - this code:

cloudlinux-selector set --interpreter php --selector-status=enabled

The information in the documentation will also be useful here https://docs.cloudlinux.com/cloudlinux_os_components/#php-selector
If you have any other questions, feel free to ask here.
Thank you for contacting us.
Marketing Manager
  1. 15.01.2020 15:01:46
  2. # 1
Ignacio Accepted Answer
Posts: 10
Joined: 19.12.2019
0
Votes
Undo
Thanks Sergey, that worked!

PS: you have to add --json to the end otherwise it'll output an error
  1. 15.01.2020 15:01:42
  2. # 2
Sergey Khristich Accepted Answer
Posts: 466
Joined: 20.05.2019
0
Votes
Undo
Thanks Sergey, that worked!

PS: you have to add --json to the end otherwise it'll output an error

Ignacio, Happy to hear it and thanks for following up!
Marketing Manager
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
Guest
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.