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 )
How to use WP-Total Cache Effectively?
Hello,
Here is a brief tutorial explaining about installation of wp-total-cache plugin and tuning it for better performance.Memcached feature is available on all heroehost servers. This is the best way of caching all objects and SQL.
Let's install the required plugins once.
Step-1:Install WP-TotalCache
You can download this from worpress.com or can directly install it from inside your wordpress Dashboard by navigating to Plugins->Add plugin.
Once it is installed you can activate the plugin.
Step:2:Setting up WP-TotalCache
When you navigate to plugin admin area it will ask you to write .htaccess rules just click on try again (if you see any error)all rules will be written to your .htaccess fire automatically.After doing this please follow the settings as show in the below image.
As shown in the image above you should select Memcached for all the options except for the setting "Content Delivery Network". Keep content delivery network as disabled.
Follow the same steps for all your blogs.
Why should you do this?
By default this plugin uses Disk (enhanced) which kills the speed of the loading of your blog. When this option is used, it uses the hdd for the writing purpose.
But when Memchached is used in the settings of the plugin, the writing is done through the RAM which is few hundreds times faster than the writing speed of a hdd. Obviously, this improves the performance.
What Next?
Install the wp-memchached plugin from
http://wordpress.org/extend/plugins/wp-memcached-manager/
and you can check if everything is correctly cached and connected to server.
Alternative way to install Backup buddy
Due to some security issue, most of the web hosting providers do not allow script based zip extraction. It also depends on the php mode on which the server is running.
If you experience any errors during the proess of running importbuddy here is a quick fix that should sort out most of the errors.
1. Go to cPanel -> File manager -> To the uploaded the zip file and importbuddy.php directory
2. Extract the zip file (your backup) without changing any diretory location.
3. Run the .php file mode.
4. Ignore the error in step 4 during the process.
Voila! You have successfully run importbuddy.
This solution works for most of the errors. But if you still experience any trouble, please raise a support ticket and we shall take care of it.
Thanks,
Installing WordPress-MU on your Heroehost hosting account
Hello all,
Many of our clients are asking how to install wordpress-mu with sub-domains support. here is a very simple way for it in easy steps.
Step:1 Download Latest version of WordPress-MU from WordPress-MU website . Create a database with MySQL database wizard available in cPanel and note down the databasename, username and password.
Step-2 You can upload the files in 2ways.One way is you can upload the downloaded archive directly to your hosting space and can uncompress there another way is to extract the files in to a folder in your computer and FTP them to your hosting space. The upload should be done only in to /public_html/ folder (this is default folder).All the files and folders like 'wp-admin' etc., should be in root folder that is /publich_html/ folder.
Step-3 Make the necessary files writable and proceed with installation by pointing your browser to domain.Select the option "Sub domains (like blog1.example.com)" as shown in image below
Now fill the database details of the MySQL database we created earlier in Step-1.Leave the Server address untocued (by default it will be yourdomain.com). Fill your blog title and email and click on install.If you get error saying that .htaccess file already exists,Open the file manager from control panel and delete the already existing .htaccess file and realod the page it should show your administrator username and admin password note them.
Step-4 Subdomains will not work by default you need to add a subdomain to make all the subdomains work.Go to the 'subdomains' from cpanel and add a subdomain with host as '*' and direcotry as /public_html/.
Step-5 Now login to your WordPress-Mu admin panel and create a blog and check the subdomain it should work
.
If you are having any problems with installing WordPress-MU on our hosting space please open a Support ticket .
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
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
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



