• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

listing domains on CLI

M

MykelS

Guest
hi,

apologies if this question has been asked before, i cannot find a response here or on google (or even the documentation) and im stumped.

does anyone know how to get a list of domains currently hosted?

i need just the domain names and it needs to be on the CLI - not through the web interface.

thanks,
mykel
 
# mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e "select name from domains"
 
Back
Top