Bulk listing of php versions

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DigiState
    Junior Member
    Forum Explorer
    • Feb 2024
    • 20

    #1

    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.
  • bogdan.sh
    Administrator
    • Nov 2016
    • 1221

    #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

    • DigiState
      Junior Member
      Forum Explorer
      • Feb 2024
      • 20

      #3
      I found

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

      Comment

      • bogdan.sh
        Administrator
        • Nov 2016
        • 1221

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

        Comment

        Working...