• The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

How to obtain list of all domain with argument enabled or disabled ?

Status
Not open for further replies.

stevefigueras

Basic Pleskian
How to obtain list of all domain with argument enabled or disabled ? [RESOLVED]

Hello all

I know the command in ssh
/usr/local/psa/bin/domain -u domain.com -status enabled
/usr/local/psa/bin/domain -u domain.com -status disabled

but i want to know how can i do to obtain a complete list with all domains on servers wich indicate me which domains are disabled or not ?

Thanks you so much :)
 
Last edited:
You can obtain list of all enabled domains with following SQL query in Plesk database:

mysql> select name from domains where status=0;

and for disabled domains:

mysql> select name from domains where status=16;
 
Hello
mysql> use psa
mysql> mysql> select name from domains where status=0;

Works great but

mysql> use psa
mysql> select name from domains where status=16;
Empty set (0.00 sec)


don't work :(
 
What is your Plesk version? You can just temporary disable domain and check status of this domain in domains table. Maybe ID was changed. I have checked it on Plesk 12.
 
What is your Plesk version? You can just temporary disable domain and check status of this domain in domains table. Maybe ID was changed. I have checked it on Plesk 12.


mysql -h localhost -u admin -p`cat /etc/psa/.psa.shadow`
usa psa
select name from domains where status=0; for enabled domains
select name from domains where status=2; for disabled domains

It's ok Thanks you all :)
 
Status
Not open for further replies.
Back
Top