Skip to content

Instantly share code, notes, and snippets.

@richmilns
Created February 28, 2015 00:00
Show Gist options
  • Save richmilns/6836420ca7261506bc41 to your computer and use it in GitHub Desktop.
Save richmilns/6836420ca7261506bc41 to your computer and use it in GitHub Desktop.
SQL query for returning all domains in Plesk 12 with the PHP handler / version
# Module = default PHP version using mod_php
# FastCGI = default PHP version using fast_cgi module
# (anything else) = the custom PHP handler installed in Plesk - if it's been named nicely this might look something like "php-5.5.8-custom"
select domains.`displayName`, hosting.`php_handler_id` from domains, hosting where hosting.`dom_id` = domains.`id`;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment