Apr 01

2008-02-12 19:08:41 Failed to get write lock for /var/spool/exim/db/ratelimit.lockfile: timed out
2008-02-12 19:08:41 H=[xx.xx.xx.xx] temporarily rejected connection in “connect” ACL: ratelimit database not available

To fix such an error , the exim cache database on the server side needs to be clear off to stop this message.

Run the folllowing command on root :

root@host [~]# rm -fv /var/spool/exim/db/*

Output :

removed `/var/spool/exim/db/ratelimit’
removed `/var/spool/exim/db/ratelimit.lockfile’
removed `/var/spool/exim/db/retry’
removed `/var/spool/exim/db/retry.lockfile’
removed `/var/spool/exim/db/wait-dk_remote_smtp’
removed `/var/spool/exim/db/wait-dk_remote_smtp.lockfile’
removed `/var/spool/exim/db/wait-remote_smtp’
removed `/var/spool/exim/db/wait-remote_smtp.lockfile’

root@host [~]# service exim restart

If this doesn’t work , then run /scripts/upcp –force on the server and then check exim_mainlog for the changes.

Apr 01

Some permalinks look very much like they have /index.php inserted before them.Following is the example for it :

http://www.solsearch.net/index.php/xyz/abc/post/

You can simply redirect such links without displaying /index.php using mod_rewrite rule.Edit your .htaccess and place the following rules :

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

Save changes.

The end result will be displayed as :

http://www.solsearch.net/xyz/abc/post/