Announcement

Collapse
No announcement yet.

Bulk listing of php versions

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

  • Bulk listing of php versions

    I have a number of servers with a number of users who have a number of domains. How can I create a list to show which domain of which user is using which php version (cloudlinux php version selector)?

    I have no idea where cloudlinux saves the setting for the php version per domain.

  • #2
    There is no ready-to-use command to achieve that. And even more, CloudLinux support PHP version per account, not per domain. The per domain can be done, but it requires manual interaction with user's .htaccess file so we will skip it.

    What I recommend is actually to get all the users on any specific PHP version, for example:
    Code:
    selectorctl --list-users --version=7.3
    This is the fastest method of getting such data. More in this article: https://cloudlinux.zendesk.com/hc/en...-all-users-etc

    Comment


    • #3
      I found

      Code:
      grep php\ = /home/*/.cl.selector/defaults.cfg
      works just fine.

      Comment


      • #4
        Well, yes this could work as well. Great finding

        Comment

        Working...
        X