Rss import cron and hostmonster

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 04-17-2009, 06:05 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Hi, I have been trying aimlessly to set up a cron for my rss importer so I can have my rss feed import automatically. I have searched everywhere and im still in the same place. When I enter and set up my cron on my hostmonster server, it wont import the feeds. I am assuming that I entered the "command to run" wrong.
Here is what I currently have in my "command to run"

/ramdisk/bin/php5 -q /home/MYHOSTMONSTERUSERNAME/public_html/pligg/modules/rss_import/import.php

Is this correct? Has anyone set up a cron on a hostmonster server successfully? I feel like this should not be as complicated as it has been for me.

I have RC4, my hostmonster is set up for php5, using the wistie template.

If you need anymore info from me let me know.

Thanks
Reply With Quote
  #2 (permalink)  
Old 04-17-2009, 08:07 PM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,448
Someone posts almost this exact same question every week.
It's up to your hosting company to provide you with this information. You should be contacting your hosting support for con issues.
Cron tasks are different on just about every server. We have no control over it. Asking here won't get you very far.
It's like asking a group of anonymous people to guess your postal address.
Reply With Quote
  #3 (permalink)  
Old 04-17-2009, 08:44 PM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
Thanks chuck, I'm just posting on here to see if anyone else that might use host monster is having the same problem.
Reply With Quote
  #4 (permalink)  
Old 04-18-2009, 05:44 AM
oobie11's Avatar
Constant Pligger
Pligg Version: 1.0
Pligg Template: Custom, wistie
 
Join Date: Apr 2009
Location: Monterey, CA
Posts: 148
I figured it out, I needed to CHMOD my import.php
Reply With Quote
  #5 (permalink)  
Old 04-22-2009, 05:44 AM
Constant Pligger
Pligg Version: 1
 
Join Date: Feb 2009
Posts: 104
hi I am using wget to rss import , using cron jobs in cpanel....i.e.

/usr/bin/wget -O http://xxxx.gr/modules/rss_import/import.php

I get an email back :
--2009-04-22 03:00:01-- *http://xxx.gr/modules/rss_import/import.php
Resolving xxxx.gr... 174.132.188.xxxx
Connecting to xxx.gr|174.132.188.xxxx|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/dev/null'

* * *0K * * * * * * * * * * * * * * * * * * * * * * * * * * * *6.79M=0s

2009-04-22 03:00:01 (6.79 MB/s) - `/dev/null' saved [55]

I guess this means that cron job is executed ok. However nothing is really imported.

Any help greatly appreciated...
Reply With Quote
  #6 (permalink)  
Old 04-22-2009, 09:13 AM
Constant Pligger
Pligg Version: 1
 
Join Date: Feb 2009
Posts: 104
[Solved]

fyr...

I copied import.php to my root pligg directory. In cpanel used the following cron command:
/usr/bin/GET http://xxxxx.gr/import.php (set it to every hour or whatever! )

Also changed import.php according to a post cannot find now....result is shown below:


<?php

if (strpos($_SERVER['SCRIPT_NAME'], 'rss_import') > 1){
die('you need to copy this file into your root Pligg folder.');
}

include_once('Smarty.class.php');
$main_smarty = new Smarty;

include_once('config.php');
include_once(mnminclude.'html1.php');
include_once(mnminclude.'link.php');
include_once(mnminclude.'tags.php');
include_once(mnminclude.'smartyvariables.php');

include_once('modules/rss_import/rss_import_settings.php');
include_once('modules/rss_import/rss_import_main.php');

rss_import_do_import(false);

?>
Reply With Quote
  #7 (permalink)  
Old 06-29-2009, 03:21 PM
New Pligger
 
Join Date: Nov 2008
Posts: 9
do not, pls post this file, it helpless!!! No answer any of your forum.

Quote:
Originally Posted by plafon View Post
[Solved]

fyr...

I copied import.php to my root pligg directory. In cpanel used the following cron command:
/usr/bin/GET http://xxxxx.gr/import.php (set it to every hour or whatever! )

Also changed import.php according to a post cannot find now....result is shown below:


<?php

if (strpos($_SERVER['SCRIPT_NAME'], 'rss_import') > 1){
die('you need to copy this file into your root Pligg folder.');
}

include_once('Smarty.class.php');
$main_smarty = new Smarty;

include_once('config.php');
include_once(mnminclude.'html1.php');
include_once(mnminclude.'link.php');
include_once(mnminclude.'tags.php');
include_once(mnminclude.'smartyvariables.php');

include_once('modules/rss_import/rss_import_settings.php');
include_once('modules/rss_import/rss_import_main.php');

rss_import_do_import(false);

?>
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
syntax for running karma cron job sharatthakur Questions and Comments 2 12-18-2007 08:17 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development