December 31st in Linux/Unix by .

how to automatically update CSF firewall?

If you running older version of CSF firewall in your server, you might need to update to latest version to patch up for any security vulnerabilities.

Here is how you need to enable the auto update.

> nano /etc/csf/csf.conf

Then change the AUTO_UPDATES to ’1′ and once this is done, the CSF will …

December 31st in Linux/Unix by .

Is server load more than 1.0 bad?

I have seen this question asked again and again by many people, including in many linux forums and frankly, the answer is

yes,  if your server load goes above 1.0, certainly you should think about upgrading your server hardware. Watch out for your server load as sometime occasionally, it could be …

December 27th in Wordpress by .

Tutorial: How to write a WordPress Plugin?

wpplugin

WordPress is not just a blogging platform and it is such a powerful CMS with unlimited capabilities, besides having a huge user base. Almost anything can be scripted with wordpress. You can extend wordpress either by means of plugin or by a theme.

In this tutorial, i will show you how …

December 24th in Wordpress by .

Best affiliate plugins for WordPress!

I have been recently in search for wordpress plugins so that i could place my affiliate code on blog posts.

The following are some the best plugins i have seen and can come in handy for your affiliate campaigns.

WP-Affiliate for easy affiliate link masking.
GoCodes Plugin lets you create shortcut affiliate links.
Affiliate …

December 24th in Wordpress by .

WordPress similar posts plugin not working?

I have been struggling to make this plugin working ever since i have upgraded to wordpress 2.9 version. No matter how many times i changed the setting, everytime i get this nasty message

“Posts None found”

no matter what.  I did place the similar_posts() code in the single.php page.

I have heard that …

December 23rd in Wordpress by .

Affiliate Hide – Free wordpress plugin to redirect affiliate links!

affhide

A very simple and useful WordPress plugin to hide/cloak and redirect affiliate links based on custom fields. All you have to do is create a custom field `URL` in your wordpress post and specify the affiliate link there. This plugin can come in handy for gallery wordpress blogs where you …

December 22nd in Wordpress by .

How to manually upgrade wordpress from older versions

If you have a good old version of version of wordpress, then most probably you dont have automatic upgrade option and you have to do the upgrade manually. All new versions of wordpress have automatic upgrade option where you have to go to wp-admin > Tools > upgrade and all …

December 22nd in Wordpress by .

Problem with Custom rewrite rule in WordPress

I was working with rewriting a custom rule for my wordpress plugin and i had a strange problem.

function aff_add_rewrite_rules( $wp_rewrite )
{
$new_rules = array(
‘^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]‘); //question mark ? resolves the problem

$wp_rewrite->rules = $new_rules + $wp_rewrite->rules;
}

The above rewrite rule

^redirect/([0-9]+)/$’ => ‘index.php?go=$matches[1]

simply refused …

December 22nd in Wordpress by .

Fix ->Wordpres plugin could not be activated fatal error cannot redeclare!

I have seen this error thrown up many many times while activating a wordpress plugin and the

Plugin could not be activated because it triggered a fatal error.

Fatal error: Cannot redeclare similar_posts() (previously declared in /home/pbu/public_html/blog/wp-content/plugins/xxxx/xxxx:45) in /home/pbu/public_html/blog/wp-content/plugins/x/xxxx.php on line 46

The main reason why the plugin could not be activated is …

December 22nd in Wordpress by .

Where does wordpress store htaccess rewrite rules?

If you are thinking for one second the rules are stored in .htaccess in the wordpress folder, you are totally wrong. Infact these rules are stored in mysql database in the wp_options table under rewrite_rules field.

Checkout this site for complete list of wordpress 2.x rewrite rules

Although it is common …