How to get a list of domains hosted in Plesk control panel.


1. Login to your server using SSH as root user.

2. Execute the command below to extract the list of domains.

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -Ns -e "select name from domains"