Seo

How to make Cron Job to work for 4rss Joomla component? Cron Job working for 4rss v.1.3 Joomla component.


Cron Job working for 4rss v.1.3 joomla component.

5 September 2010 - 5/09/2010

This short article is for all the people having problems with the cron job of joomla component 4rss.

I had a lot of trouble making 4rss cron job to work, but in the end I've found the solution.

 

Here is what you have to do to make the cron job to work in 4rss:

1. First of all you should go inside your Joomla admin and set at the 4rss component on the "4RSS CRON" tab the following:

Setup Cron Path:

/home/user_name/public_html

This setting is very important. DON'T FORGET the user_name inside the cron path.

Otherwise you will receive this kind of errors:

"Warning: include_once(/home/public_html/configuration.php): failed to open stream: No such file or directory in /home/user_name/public_html/administrator/components/com_4rss/cronjob_4rss/cronjob.php on line 18

Warning: include_once(): Failed opening '/home/public_html/configuration.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user_name/public_html/administrator/components/com_4rss/cronjob_4rss/cronjob.php on line 18

Warning: require_once(/home/public_html/includes/defines.php): failed to open stream: No such file or directory in /home/user_name/public_html/administrator/components/com_4rss/cronjob_4rss/cronjob.php on line 32

Fatal error: require_once(): Failed opening required '/home/public_html/includes/defines.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/user_name/public_html/administrator/components/com_4rss/cronjob_4rss/cronjob.php on line 32"

2. Inside the cpanel go to cron job and create a new cron.

This is the right command for the cron job:

/usr/local/bin/php -q /home/user_name/public_html/administrator/components/com_4rss/cronjob_4rss/cronjob.php

The permission to this path should be set to 755 or 777.

This command works for a PHP installed as CGI, and not as an Apache module. If this doesn't work you should contact your hosting company and ask them which is the path to your php. It may be different than "/usr/local/bin/php".

You should set your e-mail inside the Cron Email field.

The e-mail you receive should look like this:

"Cronjob v2.0 Starting job at: 03/23/2010 05:45:02
Ended job at: 03/23/2010 05:45:02"

Good luck!

5 September 2010 - 5/09/2010



Add this page to your favorite Social Bookmarking websites
Digg! Reddit! Del.icio.us! Google! Live! Facebook! Technorati! StumbleUpon! Spurl! Ask! Twitter! Joomla Free PHP

 

Comments 

 
0 #1 brad 2010-07-26 01:08
Thanks for this. It worked like a charm.
Quote
 

Add comment


Security code
Refresh