Skip to content

Instantly share code, notes, and snippets.

@amityweb
Last active June 16, 2020 09:37
Show Gist options
  • Save amityweb/f88559da24a72d22a973ef3d4d6ba835 to your computer and use it in GitHub Desktop.
Save amityweb/f88559da24a72d22a973ef3d4d6ba835 to your computer and use it in GitHub Desktop.
list-sites-using-php-versions
find -L /home/*/etc/php.ini -xtype l -exec ls -l {} \; | grep 'php5'
find -L /home/*/etc/php.ini -xtype l -exec ls -l {} \; | grep 'php7'
# Virtualmin update php version from CLI with:
virtualmin modify-web --domain domain.com --php-version 7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment