Skip to main content

Cloudlinux API for setting php version?

Comments

5 comments

  • cPRex Jurassic Moderator
    Hey there! what about the selectorctl tools listed here:
    0
  • plesk4lyf
    I doubt the host only uses the cloudlinux php versions. If the cPanel versions are present, then set the account to use the "native" ( ie server default ) PHP version selectorctl -b native -u $username And just use the cPanel ea-php versions.
    0
  • MagnusJGL
    Unfortunately, I don't have *root access* to the server, and doing it via logging into a customer nets me the message 'selectorctl does not work in CageFS for PHP interpreter' :). We are on a managed host, where we have access to api tokens for whm, but we don't have access to the root linux user. This is due to the supplier having an uptime and management guarantee, and them having disabled a random set of functionality. I can log in and set the php version manually in cpanel, but doing it manually for every time we are doing this is a bit harsh, especially since its so tantalizingly close :)
    0
  • MagnusJGL
    So, wound up experimenting a bit more.
    0
  • cPRex Jurassic Moderator
    Nice work finding that option - you are definitely more limited without root access to the system.
    0

Please sign in to leave a comment.