How to find which domains using a specific PHP version?
Hi,
Assumes my server has hundreds of domains. I want to have a quick way to show domains that are using PHP version 7 for some debugging work. (Currently most domains on the server are using php 5.6, it is very difficult to manually find domains that are using a specific PHP version).
Thank you!
-
Try going to WHM >> Software >> MultiPHP Manager and searching for ea-php70 or similar OR In the same UI, click on the PHP Version title at the top of the table column to order your listing by versions (click again to reverse the list order) 0 -
You can also use a WHM API call to list the virtual hosts that use a specified version of PHP. This the command line method I'm using here: whmapi1 php_get_vhosts_by_version version=ea-php56
Output example:--- data: vhosts: - example.com - example.com - example.com - example.com - example.com - example.com - example.com metadata: command: php_get_vhosts_by_version reason: OK result: 1 version: 1
0 -
Thank you, this is informative! 0 -
Hello, I'm glad to see the previous responses helped. I've marked this thread as solved. Thanks! 0 -
ignore please 0
Please sign in to leave a comment.
Comments
5 comments