PLESK

Automatically suspending domains after update to Plesk 9

it turns out Plesk 9 has something called the “Overuse Policy” which is configured in “Resource Usage” for each client. Careful with this as you might upgrade from Plesk 8.x and it defaults to “Overuse is not allowed”, which causes the auto-suspend to be activated if any domains exceed their limits. To solve this you can set this in psa database: update cl_param set val = ‘false’ where param = ‘OveruseBlock’; update dom_param...

Read More

Recalculate stats and free space for only one domain in Plesk

It’s useful if a client has gone over their allocated disk space. Occasionally even if they delete everything Plesk still thinks they are over until the nightly cron jobs are re-run. This command just forces the job to re-run on a single domain: /usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=Domain_name.com

Read More

How to Send Email from a PHP Script Using SMTP Authentication

PHP mail() and SMTP Authentication Part of what makes the PHP mail() function is so simple is its lack of flexibility. Most importantly and frustratingly, the stock mail() does not usually allow you to use the SMTP server of your choice, and it does not support SMTP authentication, required by many a mail server today, at all. Fortunately, overcoming PHP’s built-in shortcomings need not be difficult, complicated or painful either. For most...

Read More

How to easy clean infected sites

When you experience code injection in your site and there is only appending of code to the end of your site files you can clean it with : cd to your site’s httpdocs and run: find .  -type f -exec sed -i ‘/oployau.fancountblogger.com/d’ {} \; for lines like : js/ac_runactivecontent.js:document.write(‘<s’+’cript type=”text/javascript”...

Read More

Apache did not start on PLESK

Error log contains: [emerg] (28)No space left on device: Couldn’t create accept lock or [crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed Checking your disk shows that you have plenty of space. The problem is that apache didn’t shut down properly, and it’s left myriads of semaphore-arrays left, owned by my apache-user. Run:   ipcs -s | grep apache Removing these semaphores...

Read More

couldn’t install plesk ez template on centos 5 x64

Some templates must have been updated on our repository. Please remove old templates cache with the following command:# find /vz/template/centos/5/x86_64/pm/ -name cachecookie -exec rm -f {} \;After that try installing the template again

Read More