Plesk (15)


get protected directory user and password

one query to grab the user and pass from the Plesk psa database: SELECT pd.login, a.password, d.name, dirs.path FROM accounts a, pd_users pd, protected_dirs dirs, domains d WHERE dirs.path = ‘admin’ AND a.id = pd.account_id AND pd.pd_id = dirs.id AND dirs.dom_id = d.id AND d.id = DOMAIN_ID;

Read more...



dr. web updater email notification

sick of them yet!? here’s how to get rid of those updates you get every single hour, every single day. [code]nano /etc/drweb/drweb32.ini[/code] Find the line that contains “CronSummary” (without the quotes of course :)) Ctrl + W in nano will open a “Find”, just type your text and press enter… Simply change [code]CronSummary Yes[/code] to […]

Read more...



Plesk / Spamd Permission Error

Looking at /var/log/messages, I noticed the following: [code]Feb 10 10:58:26 mail spam_hook[12873]: unable to open configuration file /etc/psa/psa.conf: Permission denied Feb 10 10:58:26 mail spam_hook[12857]: unable to open configuration file /etc/psa/psa.conf: Permission denied[/code] This is a bug introduced in one of the Plesk 9.2.* hotfixes / patches. The problem was causing spam to not be […]

Read more...



change email password

how to change a user’s email password from the command line. much quicker that waiting for the (sometimes) slow-ass Plesk web interface to reload itself for such a simple change. [code]/usr/local/psa/bin/mail -u username@domain.com -passwd ‘NeWPassWorD!’;[/code]

Read more...



Tail logs in Plesk

To view the FTP transfer log: [code]tail -f /usr/local/psa/var/log/xferlog[/code] To view the mail log: [code]tail -f /usr/local/psa/var/log/maillog[/code]

Read more...



creating subdomains in plesk 10

it seems Plesk 10 has a few issues with creating subdomains. Considering we’re on Plesk 10 now, i find it shocking. so, via the command line, let us create a new subdomain for an existing domain on the box: the first argument needed is to pass to the –create option, the [SUBDOMAIN] placeholder is where […]

Read more...