Heroehost Blog News and updates for Heroehost

22Oct/103

WPRobot PHP CLI Cron Job

Hello,

Today we will learn how to setup a WPRobot cron job which can be run using PHP-CLI (Command Line interface) which is far better than wget on busy servers.

Problem with wget

Normally as per WPRobot documentation you can run cron job by using wget or curl or lynx or even opening the URL in browser.When you are making many posts or if your website a very busy one this will be a problem and may result in timeouts.Another major issue is cron jobs will setup connections to the server internally but these are also treated as clients/visitors by apache this may degrade the performance by retuning 503 errors to the original end client .On one of our server with all WPRobot 3 cronjobs running on 120 websites we have observed that this connections count is more than 700 but if we disable the cron this connections are going down to 40-50 (real visitors).Here in first case all will be treated as visitors which result in performance degrade but this is the only way we can run WPRobot cron job as per there documentation.

Solution:

Finally after struggling a lot for 2 days we managed to write a code which can run WPRobot Cron jobs from PHP-CLI without need of establishing connections to Apache.This doesn't make a very big difference but will help to avoid Timeouts while running cron jobs on busy servers.

Setup and Usage

Step : 1 - Download the cron-cli.php and upload cron-cli.php to your WPRobot3 folder ( /wp-content/plugins/WPRobot3/)

Step : 2 - Create the cron job in the format as shown in examples below.

Assuming you are using cPanel the folder structure is given below.

The same examples shown here  http://wprobot.net/documentation/#94a are replicated.Here replace 'username' with your cPanel username and point the job to exact location of WPRobot3 folder if you are using sub domains or ad don domains.

UNIQUECODE is different from different blogs you can get this code from Options page of your WPRobot .In options page scroll down to bottom of the page in exmaple cron jobs show there you can see your UNIQUECODE place that code with switch

-code="uniquecode"

Note: " " (quotes ) are must in "UNIQUECODE"

Basic

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE"

With Advanced Tags

1.will create one post for one random campaign.

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE" -mincamp=1 -maxcamp=1

2.will create one post for one to three random campaign and backdate them up to 30 minutes.

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE" -mincamp=1 -maxcamp=1 -randtime=30

3.will create one to three posts for the campaign with the ID "2".

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE" -mincamp=1 -maxcamp=3 -id=2

4.will create one to three posts for one random campaign.

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE" -mincamp=1 -maxcamp=3 -minposts=1 -maxposts=3

5.will create one post for two or three random campaigns with a chance of 50% (otherwise nothing happens).

php -q /home/username/public_html/wp-content/plugins/WPRobot3/cron-cli.php -code="UNIQUECODE" -mincamp=1 -maxcamp=1 -chance=50

100% compatible with WPRobot3 and should work in same way like wget/curl/lynx but with more accuracy without establishing connections to Apache.

This is a Beta script feedback is much appriciated.

All Heroehost users can rise tickets if they have any issues using this Cron job they will get reply from our staff in 5-10mins.

For all others who read this post please post a reply with your problems we will guide/correct the issues.

Download Link: cron-cli.php (  http://heroehost.com/order/dl.php?type=d&id=2 )

10Jan/100

Live support irregularity till Jan 17th 2010

Category: Live support Irregularity - Holiday season, India

Goes offline from: 10th Jan, 2010

Will go live again on : 17th Jan, 2010

Alternate option: Please open a Support ticket

_______________________________________

Dear customers,

Due to the famous festival "Pongal" season in India, our support team will not be available online 'round the clock'. However as we even have operations from UK, we try our best to solve the support tickets within the time frame.

We are known for the support we offer and thanks for choosing us. We understand that our sales and tech support we provide is one among the top reasons for the success  of Heroehost within a short period of time. We work on to make sure that every ticket opened will be resolved at the earliest possible during this week.

The holiday season is till 17th of January and HeroeHost's acclaimed live support option runs round the clock back from then. Incase if you have any issues or need support, please open a ticket as our 'live support' appears offline for most of the time during this week.

Wish you a very Happy new year from your friends here at HeroeHost.

Thanks,

Jagan

Working Manager

Filed under: News No Comments
10Oct/090

New Layout New Prices and New Discount

As hopefully most of you have seen we have been designing a new site layout of the past month and now finally it is complete.

We have brand new pricing structure as well so you customers will always be happy with our prices no matter what.

To celebrate our new achievements this month we are offering a 10% Discount on all products until 17/10/2009 with promo code 10CRACKERS.

Thanks to all

Corey

Héroehost CEO

Filed under: News No Comments
8Oct/090

Switching to SolusVM

A lot of companies in the web hosting business have been running around the place for the last though months looking for a new product to replace HyperVM after the tragic death of it's only developer.

So héroehost just like every other company had to find a new VPS Control Panel and we looked at different products like vePortal what we did use for a though months testing it's features and easy of use for our customers but no many liked it and it was restrict on the backend for our staff. We then looked at FluidVM was does look like a great product but if we didn't like it we couldn't return back as it uses it's own architecture that other VPS Control Panels didn't support.

Now we come to the good part we found a product called SolusVM was is pretty new in the market and is still adding features month by month so at first we was a little untrusted with the company and the product as we wanted something that our customers loved.

We have been testing SolusVM for the past month or so with our customers and after great feedback we got from them we rolled SolusVM out to everyone in our customer base a though weeks ago.

Here are some features of SolusVM,

  • Serial Console
  • Bandwidth Monitor
  • Reboot/Shutdown
  • TUN/TAP Support
  • Manage multiple VPS under one account
  • Reinstall OS

and plenty more juicy features.

I hope new and existing customers will like the switch over to SolusVM.

If you have any questions then feel free to comment or contact our sales team.

Corey

Héroehost CEO

Filed under: News No Comments
   
Get Adobe Flash playerPlugin by wpburn.com wordpress themes