Hi,
In Plesk 12.5, I could use:
to get a list of all the "attached" WordPress sites in Plesk. However, the only useful thing returns in the Installation URL.
I thought I read that this was later enhanced to return the webroot of each WP instance as well. But now wp_instance appears to be gone in Onyx?
So, I ended up using:
To get a list of: site.domain | webroot path
However, it would be great to be able to get: site.domain | get_home_path() using the WP CLI?
Is there a way to do this with Plesk Onyx?
Thanks for your time.
In Plesk 12.5, I could use:
Code:
plesk bin wp_instance --get-list
to get a list of all the "attached" WordPress sites in Plesk. However, the only useful thing returns in the Installation URL.
I thought I read that this was later enhanced to return the webroot of each WP instance as well. But now wp_instance appears to be gone in Onyx?
So, I ended up using:
Code:
SELECT dom.id, dom.name, h.www_root FROM domains dom LEFT JOIN DomainServices d ON (dom.id = d.dom_id AND d.type = 'web') LEFT JOIN hosting h ON h.dom_id = dom.id
To get a list of: site.domain | webroot path
However, it would be great to be able to get: site.domain | get_home_path() using the WP CLI?
Is there a way to do this with Plesk Onyx?
Thanks for your time.