• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

Looking for SQL statement to set ALL plans and sites SSL support off

RationalPolymer

Basic Pleskian
Rather than using intensive manual Panel operations or iterative scripting command-line operations to change the SSL support attribute in Plans and the SSL support attribute in Site/Hosting, I would like to know of separate SQL statements that would accomplish each of these two tasks.
 
Hi,

well this would actually not really help you.
Changing values in the database will still not change any configuration files.
So the best thing to do is actually either use CLI Tools or API Commands.

You should not play with the psa Database.

Regards,
Kristian
 
And the way to do this with the CLI is this command:
Code:
/usr/local/psa/bin/subscription -u example.com -ssl false
Replace example.com with the subscription name. You can also do it all in one fell swoop with this (makes path assumptions):
Code:
pushd /var/www/vhosts
	for eaDomain in `ls .`
	do
		case "$eaDomain" in
			"chroot")
				;; # ignore
			"default")
				;; # ignore
			"fs")
				;; # ignore
			"fs-passwd")
				;; # ignore
			*)
				/usr/local/psa/bin/subscription -u $eaDomain -ssl false
		esac
	done
popd
 
Hi,

another easy way:
Code:
	for eaDomain in `/usr/local/psa/bin/subscription -l`
	do
				/usr/local/psa/bin/subscription -u $eaDomain -ssl false
	done

Does the same basicly :)

Regards,
Kristian
 
Back
Top