Fixing common Plesk Problems

From Ezee.co.uk

Jump to: navigation, search

Contents

[edit] Fixing pop/imap login problems

/usr/local/psa/admin/sbin/mchk --with-spam --daemon-mode


[edit] Fixing Mailman issues

/var/mailman/bin/check_perms -f


[edit] Forcing logs/stats update

usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=domain.com


[edit] Increase maximum pop/imap connections per IP

Try changing the MAXPERIP value (defaults to 4) in:
/usr/lib/courier-imap/etc/imapd
and
/usr/lib/courier-imap/etc/pop3d

[edit] Client complains about cgi script not working. Check the su-exec log

tail /var/log/httpd/suexec_log

[edit] Fix expand registering server fault

Copy /usr/local/psa/admin/plib/api-rpc/AgentDomain.php from a good plesk server to the server in error

[edit] Flushing the qmail queue

ps ax | grep qmail-send
kill -ALRM <pid_number>

[edit] FTP Problems

If no user on the server can login, check that in the /etc/shells the following lines are there

/bin/false
/usr/local/psa/bin/chrootsh
/bin/rbash

[edit] To fix Horde or MySQL database problems

mysqlcheck -r -uadmin -p`cat /etc/psa/.psa.shadow` horde

[edit] To turn off redirect for all mailboxes where forwarding is switched on.

update mail set postbox='false' where redirect='true';

And then you need to run

"/usr/local/psa/admin/sbin/mchk --with-spam --daemon-mode" 

to apply the changes.

[edit] Fix all tables in all databases

mysqlcheck --repair --all-databases -uadmin -p`cat /etc/psa/.psa.shadow`
Personal tools