Created
November 14, 2017 21:52
-
-
Save nbeernink/f1b2776f53a0a434062e8df0c2d48a7b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env python | |
| import subprocess | |
| import json | |
| php_handler_data=json.loads(subprocess.check_output(['plesk','bin','php_handler','--list','-json','true'])) | |
| for handler in php_handler_data: | |
| if handler['status'] == 'enabled' and 'x-httpd-lsphp' not in handler['id']: | |
| print handler['id'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment