Computer And Internet, Personal, Tips & Trick

Good day! I wishing everyone happy in this Christmas and Holiday season 😀

merry-christmas

In this short articles I want to write my personal experiment review for WP super cache. Here is the story, In the past 6-9 months ago I’m using wp super cache just because my hosting recommended it. I run some websites on budget host and most host technician complaint about resources. Nothing special until I notice my revenue is not so great even my traffic great enough.

Two weeks ago I bought a new server just because my websites not fit anymore on budget host. I do setting and everything run properly until I notice something annoying. My traffic is greater but my revenue is to low. Why this is happen? I do some research and analyze the problem, Re-Setting server configuration to the maximum resources but there is no difference.

At the first time I was thinking: Maybe (just maybe) my traffic not coming from premium country so it may not so great in conversion and affect my revenue. But it was wrong! not completely wrong actually! I do deep analyze and found my UV and Impressions not counting correctly. After long investigation I found the problem is on cache. I believe many of you already know what is wp super cache, but for you don’t know what is it: wp super cache generate HTML files and serving those HTML to all visitors: real human traffic including search engine bot traffic.

Read More »

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Personal, Tips & Trick

Three days ago arvixe telling my site using to much their cpu usage. They complaint about wp-cron.php and index.php process which I believe it was looping and won’t stop in background. wp-cron is just like cron job in normal condition. The crazy thing everyone doesn’t know is, it’s loading each time visitors coming to their site. I don’t know why wordpress don’t fix it or at least give options to run it each time frame.

For a site using wordpress and have a lot articles/pages the optimization for it is just disable wp-cron, another option is disable wp-cron and running cron job from cpanel which can be setup in time frame.

You will lose schedulle post feature but it’s better than get suspended right? You still can run cron in time frame you setup from cron job panel than using crazy method like spawn it each time visitors coming to your site. Let’s do this thing, it’s very easy…

[to_plus]

  1. Open your wp-config.php and put this after the <?php. define(‘DISABLE_WP_CRON’, true);
  2. Open wp-includes folder and find a file with name cron.php
  3. Find string “function wp_cron() {
  4. Replace all function with code below :
    function wp_cron()
    {// Prevent infinite loops caused by lack of wp-cron.php
    if ( strpos($_SERVER[‘REQUEST_URI’], ‘/wp-cron.php’) !== false || ( defined(‘DISABLE_WP_CRON’) && DISABLE_WP_CRON ) )
    return;if ( false === $crons = _get_cron_array() )
    return;$local_time = time();
    $keys = array_keys( $crons );
    if ( isset($keys[0]) && $keys[0] > $local_time )
    return;$schedules = wp_get_schedules();
    foreach ( $crons as $timestamp => $cronhooks ) {
    if ( $timestamp > $local_time ) break;
    foreach ( (array) $cronhooks as $hook => $args ) {
    if ( isset($schedules[$hook][‘callback’]) && !call_user_func( $schedules[$hook][‘callback’] ) )
    continue;
    // spawn_cron( $local_time );
    break 2;
    }
    }
    }
  5. Save it/replace cron.php file with the new edited cron.php
  6. Done

After doing this your wp-cron has been disabled and never ever run each time a visitors coming to your site. But you will lose schedulle post, to fix this problem open your hosting control panel and set cron job from there to run your wp-cron.php. You can set it run each 24 hours or in time frame you need.

After doing this small optimization arvixe not complaint to me. It’s mean this is maybe the big issue for worpdress to update their cron setting.

That’s a share for today, have a great day everyone, and Happy New Year! 😀

[/to_plus]

 

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Miscellaneous, Personal, Tips & Trick

In this article we will learn how to secure our wordpress blog using some .htaccess technique. Of course there is no system perfect in this world. Everything should have bug, no matter it’s high or low risk. When last time you have seen blog with wordpress got hacked? Well, This happen to me 3 times on one of my crazyp**n blog. The hackers always controlling my admin panel and it’s happen 3 times until I playing with my new toys to stop this guy.

What is .htaccess? In several web servers (most commonly Apache), .htaccess (hypertext access) is the default name of a directory-level configuration file that allows for decentralized management of web server configuration. Read full in wikipedia. Back to the topic what should we do to stop hackers controlling our admin area?

There is lots of technique, what I write in here just some technique using .htaccess files:

    1. Protected your wp-login.php files.

<Files wp-login.php>
Order deny,allow
Deny from All
Allow from xxx.xxx.xxx.xxx
</Files>

Where xxx.xxx.xxx.xxx is your IP, if you meet problem to know your IP just look on IPchicken.com

    1. Protected your wp-config.php

Wp-config is vital configuration files for wordpress, it should secured to stop people viewing it’s content.

<files wp-config.php>
order allow,deny
deny from all
</files>

    1. Protected your wp-comment-post.php

Even if you’re using Akismet plugins, to reduce spambot post via remote access you can use this code. (Change yourblog.com with your own domain name)

RewriteEngine On
RewriteCond %{REQUEST_METHOD} POST
RewriteCond %{REQUEST_URI} .wp-comments-post\.php*
RewriteCond %{HTTP_REFERER} !.*yourblog.com.* [OR]
RewriteCond %{HTTP_USER_AGENT} ^$
RewriteRule (.*) ^http://%{REMOTE_ADDR}/$ [R=301,L]

    1. Protected .htaccess file.

This code will protect all files with “.hta” string on it.

<Files ~ “^.*\.([Hh][Tt][Aa])â€>
order allow,deny
deny from all
satisfy all
</Files>

After using this tips the hackers can’t controlling my wordpress admin panel again hahaha! he try to inject using wordpress bug but when I limited IP to access admin panel he’s cry *lol* yay, I win! finally I beat this noob *lol* 😛

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Miscellaneous, Personal, Tips & Trick

Good day, after a few months I was looking for best script to make my online store. I found some useful and free script but of course their SEO are worst, The premium one has better looks but they not guarantee on SEO result. Lucky, I was found one plugins can integrated wordpress become online store in just minutes. Take a look on this beauty wp store…

e-commerce-demo

Why I choose wordpress? as we all know wordpress are simple CMS in management but powerful after we added some SEO plugins and other plugins it will become great CMS, in other option almost all paid hosting allowed wordpress to used.

To build your online store using WP e-Commerce plugins follow this step :

  • Install your wordpress.
  • Download WP e-Commerce plugins.
  • Extract it and upload it into yours plugins directory.
  • Activate WP e-commerce plugins.
  • Customize it including your theme and other module you need.
  • Done.

Simple right? fast and effective. The problem you will faced is maybe on the customized theme and module, it’s not easy to make a good theme for online store to take people attention on it.

Of course you can add optimize your wordpress SEO, said permalinks, title tag, keyword, sitemap, and other SEO technique you know.

Meet any problem? Discuss it! leave a comment and I will response back, have a nice day 🙂

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS
Personal, Short Reviews

Hello everyone 😀 just a little update… here is my short review for top 4 greatest WP plugins, I know there is thousand WP plugins out there but I only choose 4 plugins for their best contribution. Here they are the winner…

1. DB Cache

This is mostly the best plugins for low consuming CPU usage and Memory usage, when your blog in shared hosting and you got lot of traffic daily mean you’re in trouble, sometimes bad hosting company will kick you out or they will offer you going for dedicated server. It might not problem if you have money to spend but if you don’t then this plugins should help you reduce CPU usage and Memory usage. very easy in configuration, It also make your Blog loading faster!

After compared this plugins with other WP cache which claimed they can reduce your CPU usage and Memory usage, this one still the best because it only cache your database, other plugins can reduce CPU and Memory usage also but it will make your website strange and more trouble will coming.

2. XML Sitemap Generator

This plugins good for optimized your blog SEO it will generated your blog sitemap automatically and ping to search engine in list everytime you updated your blog, so crawling bot coming after your post published, the best way to get indexed faster! Easy configuration also make me love this plugins. Anyway this plugins may consume lot of Memory if you have BIG blog, but it’s not problem you can change settings in configuration.

3. Search Term Tagging

When you want to analyze your visitor keyword this plugins should help you to collected every keyword that bring visitor into your articles, it also will help you make your keyword more richer anyway some people reporting this plugins take to much CPU and Memory resource but with a little modification in the code you’re ready to go!

4. Akismet

Mostly we all hate when our blog got spammed right? yes, I’m also hate the spammer (person or product they promoting), with Akismet plugins this spammer gonna cry to try spamming on your blog, you can enjoying blogging without needed to take care much of time management for spam! good bye spammer!

That’s my short review for top 4 the greatest wordpress plugins, if you want to add more to this list just leave your comment for information and experience with using the plugins, have a nive day 😀

Related Search Terms:

    Digg Del.icio.us StumbleUpon Reddit Twitter RSS