On October 19, 2021, we have enabled single-sign-on for our Plesk Support Center to provide a seamless login/account experience. This implies that you’ll be able to use a single account across any of our web-facing properties.
If you had already registered your account at Plesk 360 (formerly known as My Plesk) please use one for login. Otherwise please re-register it using the same email address as your existing Zendesk login (support account). It’s essential that you use the same email address on our support center to ensure that your tickets stay attached to the same account.

How to get a list of all domains from which are using a specific PHP handler in Plesk via command line?

Follow

Comments

3 comments

  • Avatar
    Brian Craigie

    Number 5 is great, but could be improved by excluding domains that are currently disabled and also to exclude those that are aliases. :-)

    1
    Comment actions Permalink
  • Avatar
    Brian Craigie

    Number 5 can be improved thus:

    plesk db "select domains.name, dom_id, php, php_handler_id, fastcgi, WebServerSettingsParameters.value as 'Served as nginx?' from hosting JOIN domains on domains.id=hosting.dom_id JOIN WebServerSettingsParameters on WebServerSettingsParameters.webServerSettingsId=(select val from dom_param WHERE param='webServerSettingsId' AND dom_id=domains.id) where WebServerSettingsParameters.name='nginxServePhp' AND domains.status=0"

    1
    Comment actions Permalink
  • Avatar
    Ivan Postnikov

    Hello Brian

    Thank you for the notice!

    I will pass it to the article author.

    1
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request