• The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

Turning off Python for ALL sites (10.4.4)

aWEBthatWORKS

New Pleskian
I've been advised to turn off Python server-wide, since we don't have any sites which are using it. I've removed it from the service plans and re-synced, but not sure the best way to double check any which may be locked. Is there any way I can get a list of every domain which has Python enabled, other than clicking through each one? Perhaps via MySql?
Any help would be hugely appreciated!
 
Started to answer my own question. I can get a list of all the locked ones under Subscribers, they all start with the lock icon. However, I'm having trouble finding the setting to actually turn Python off for those ones, barring unlocking and resyncing them.
 
Is there any way I can get a list of every domain which has Python enabled, other than clicking through each one? Perhaps via MySql?
Any help would be hugely appreciated!

select name from domains where id=(select dom_id from hosting where python='true');
 
Ten disable Python for all domains where it is enabled with
# mysql -uadmin --skip-column-names -p`cat /etc/psa/.psa.shadow` psa -e "select name from domains where id=(select dom_id from hosting where python='true');" | awk -F \| '{print $1}' | while read a; do /usr/local/psa/bin/domain -u $a -python false; done
 
Back
Top