~$ sudo apt-get

Plesk

Remove default domain from IP in Plesk

by on Dec.01, 2009, under Plesk

Of all the things Plesk does well, this which would seem like common sense to include within the interface, cannot be done. To rectify this issue, you must update the default_domain field within psa.IP_Addresses.

mysql -uadmin -p`cat etc/psa/.psa.shadow` -Dpsa -e "UPDATE IP_Addresses SET default_domain_id = 0 WHERE ip_address = 'IPGOESHERE';"

Remove the WHERE statement if you wish to do a blanket default domain removal.

mysql -uadmin -p`cat etc/psa/.psa.shadow` -Dpsa -e "UPDATE IP_Addresses SET default_domain_id = 0;"

3 Comments more...

Remove Plesk Lockout

by on Jul.28, 2009, under Plesk

Plesk will populate psa.lockout in mySQL in the event of the lockout. Either of the following will clear the lockout.

mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e 'TRUNCATE lockout'
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa -e 'DELETE FROM lockout'

Check /usr/local/psa/admin/logs/httpsd_access_log for brute force attempts.

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...