• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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