What is the difference between a cat and a dog
Dogs think: Humans are benevolent, they feed me, and take care of me, so they must be Gods;
Cats (instead) think: Humans are benevolent, they feed me, and take care of me, so I must be God.

Site loading slowly? remote sites are the problem!

Well, a common problem is related to the site when its loading so slowly, check if you are using hotlinks to another websites, may be images, scripts, etc, even Google! well, it isn’t… but sometimes if you load scripts from them then you will get some troubles when the page is loading.

For example: Google Analytics, it does a good work but it loads some scripts from Google that may cause that the site load first Google Analytics then send reports and then load the page, try disabling it and you will see that the webpage will load better, also create a single html file with no content (a blank page, or at least some text) then load it from your web browser, if it loads good, that means that the website and the server load is good, if the site doesn’t load good with a blank site, then contact us, maybe some process are being executed causing lag and we should to correct it or re-start the server.

Good bye!.

Now backing up with R1Soft

We’re very proud to announce the addition of a new backup tool for all our cPanel customers: R1Soft.

This tool will provide continuous data backup on all our nodes, if you want to know more about it, check it out at: www.r1soft.com

In order to use it, simply go to cPanel » Files » R1Soft.

RAID maintenance

Raid on Amyntor is returning a couple of errors. We need to hot swap the drives and upgrade the firmware. We have scheduled the process within 1PM – 6PM CST today. No more than 45 minutes of downtime is expected for the maintenance. 

We will update the thread once the process is started. Thanks for your patience.

Please visit the Client Area announcements to get updates about this.

http://my.whitesystem.net/announcements.php?id=7

Problems with Cron? (Missed Schedule), try these solutions…

Another common problem when talking about WordPress is the Scheduled task, tried many solutions and anything works.

Well, here is a mini-patch that can solve this for now, the first solution if your server (or your hoster´s server) is running under Mod_Security rules.

Short answer: Add this to the to defines in your wp-config.php file:

define(‘ALTERNATE_WP_CRON’, true);

Really long answer, for masochists: Scheduled posts are not now, and have never been, “broken”. The developers of WordPress cannot fix it because there is nothing to fix.

The problem lies in the fact that your server, for some reason, cannot properly execute the wp-cron process. This process is WordPress’ timing mechanism, it handles everything from scheduled posts to sending pingbacks to XMLRPC pings, etc.

The way it works is pretty simple. Whenever a WordPress page loads, internally WordPress checks to see if it needs to fire off wp-cron (by comparing the current time with the last time wp-cron ran). If it does need to run wp-cron, then it tries to make an HTTP connection back to itself, calling the wp-cron.php file.

This connection back to itself is there for a reason. wp-cron has a lot of work to do, and that work takes time. Delaying the user seeing his webpage while it does a bunch of stuff is a bad idea, so by making that connection back to itself, it can run the wp-cron program in a separate process. Since WordPress itself doesn’t care about the result of the wp-cron, it only waits a second, then goes back to rendering the webpage for the user. Meanwhile, wp-cron, having been launched, does its work until it’s finished or it runs out of execution time.

That HTTP connection is where some badly configured systems fail. Basically, WordPress is acting like a web browser. If your site was http://example.com/blog, then WP will call http://example.com/blog/wp-cron.php to start the process. However, some servers simply can’t do that for some reason. Among the possible reasons:
– Server doesn’t have DNS, and so it can’t figure out who “example.com” is, even though it is *itself*.
– Server administrators, in a misguided attempt at security, have blocked “loopback” requests, so it can’t actually make a call back to itself.
– Server is running something called “mod_security” or similar, which actively blocks the call due to brain-dead configuration.
– Something else.

The point is that for whatever reason, your web server is configured in some non-standard way that is preventing WordPress from doing its job. WordPress simply can’t fix that.

However, if you have this condition, there is a workaround. Add this to the to defines in your wp-config.php file:
define(‘ALTERNATE_WP_CRON’, true);

This alternate method uses a redirection approach, which makes the users browser get a redirect when the cron needs to run, so that they come back to the site immediately while cron continues to run in the connection they just dropped. This method is a bit iffy sometimes, which is why it’s not the default.


Well, wordpress has another problem with Cron´s activities, so, one of those is the Output time for a task, please, modify it to 20, currently is working with a value of 0.01, that´s a very short time to complete a Cron task. Go to you´r Cron File, and find out the only one valor with 0.01 (or 0,01) then modify it putting 20 or a similar higher valor, then, Cron will have enough time to complete the scheduled tasks, and the programmed jobs will work properly by now on.

Thanks for reading this,

Bye.

Memory Usage, Tool for WordPress Users

There are some people who want to know how much memory are their wordpress using right now on our servers or on their own servers, well, there is a plugin that can show you this for you, its called TPC! Memory Usage and its a very useful tool to can see a range of use of the server resources, server load, and other stuff, some features are not working properly because it shows some errors related to the Server environment, the Firewall and some refused requests that it tried to do.

Download the Plugin from:
http://wordpress.org/extend/plugins/tpc-memory-usage/

Now just install it however you want:
Note!: It will show you the memory usage according to the memory used by Apache or suPHP, so if you have 64M available to WordPress, and you´re using 32M it will show you a 50% of usage, and not the total memory of the Server (the physical Memory).

Very soon we will be adding a new custom Feature on cPanel that will allow you to see the current Global physical CPU and Memory Usage that your site is having in that moment,

This is the first part of the article, soon we´ll be making several tutorials about how to reduce the crazy WordPress CPU usage, maybe we will be ending with a section/category fully dedicated to WordPress hehe.

Byebye!

Create Tabbed style with jQuery for your website

Something we´re improving with our new cPanel style (soon you will see it working on) is the tabbed and pre-loaded cpanel content, I mean, if you have a slower connection to internet, then this will be a useful tool that you will can use to load the whole content of cpanel such as MySQL Databases, Domains, statics info and another things and render them into a tabbed page that will allow you to access to any of those info instantly (because it was previously loaded) in tabs.

Well, here is a tutorial about how we´ve done this using slide effects and tabs with jQuery:
Download this:
http://www.whitesystem.net/blog/wp-content/uploads/2010/02/jquery.tabs_.zip

Add the next code in header of your webpage:

<script src="jquery-1.1.3.1.pack.js" type="text/javascript"></script>
<script src="jquery.history_remote.pack.js" type="text/javascript"></script>
<script src="jquery.tabs.pack.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {$('#container-1').tabs();
$('#container-2').tabs(2);
$('#container-3').tabs({ fxSlide: true });
$('#container-4').tabs({ fxFade: true, fxSpeed: 'fast' });
$('#container-5').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
$('#container-6').tabs({
fxFade: true,
fxSpeed: 'fast',
onClick: function() {
alert('onClick');
},
onHide: function() {
alert('onHide');
},
onShow: function() {
alert('onShow');
}
});
$('#container-7').tabs({ fxAutoHeight: true });
$('#container-8').tabs({ fxShow: { height: 'show', opacity: 'show' }, fxSpeed: 'normal' });
$('#container-9').tabs({ remote: true });
$('#container-10').tabs();
$('#container-11').tabs({ disabled: [3] });$('<p><a href="#">Disable third tab</a></p>').prependTo('#fragment-28').find('a').click(function() {
$(this).parents('div').eq(1).disableTab(3);
return false;
});
$('<p><a href="#">Activate third tab</a></p>').prependTo('#fragment-28').find('a').click(function() {
$(this).parents('div').eq(1).triggerTab(3);
return false;
});
$('<p><a href="#">Enable third tab</a></p>').prependTo('#fragment-28').find('a').click(function() {
$(this).parents('div').eq(1).enableTab(3);
return false;
});

});
</script>

Optional you can add the CSS file or make one by yourself:

Now use this to call and make tabs:

<h2>Slide and Fade Effect Combined</h2>

<div id="container-5">

<ul>

<li><a href="#fragment-13"><span>One</span></a></li>

<li><a href="#fragment-14"><span>Two</span></a></li>

<li><a href="#fragment-15"><span>Three</span></a></li>

</ul>

<div id="fragment-13">

<p>Use a combined slide and fade effect to switch tabs:</p>

<pre><code>$('#container').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'fast' });</code></pre>

</div>

<div id="fragment-14">

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

</div>

<div id="fragment-15">

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat.

</div>

</div>

Byebye!.