View Full Version : How to setup CRON jobs
nickmattern
10-01-2009, 03:24 PM
How to setup a "cron job" with cPanel
(This next step is unique to EVERY domain and needs to be set for EVERY domain you want the cron to run on. To find the SPECIFIC string you need to edit, log into your /wp-admin/ menu and click on WFReview. You will see a Import Jobs menu. The BOTTOM of that screen has domain specific instructions similar to those below. Follow the EXACT instructions on YOUR side, not what is below. Then, once you have edited the file, you can follow the images below to setup the CRON job.)
Edit the 'cron_no-wget.php' file and change the following line: $url = 'http://yourdomin.com/wp-content/plugins/wfreview/cron.php';
to...
$url = 'http://YOUR.DOMAIN/wp-content/plugins/wfreview/cron.php';
1. Log in to your cPanel control panel.
2. Search for "cron jobs" in the Find box, then click on the "Cron jobs" icon.
http://reviewpluginforwordpress.com/help/help_cpanel_search_cron.png
3. Click on the "Standard" button.
http://reviewpluginforwordpress.com/help/help_cpanel_cron_standard.PNG
4. Copy and paste the full command from your WFReview installation into the "Command to run" box. Set the job to run every minute, hour, day etc. as shown in the screenshot below.
NOTE: There are two types of commands that you can enter here. Both methods are outlines on the "Import jobs" page of your WordPress installation.
http://www.reviewpluginforwordpress.com/images/Untitled-1.jpg
5. To save your changes, click "Save crontab".
medicalhumor
10-02-2009, 04:14 PM
I'm not having any luck with this import at all.
I set up my cron job, and I get an email from cron daemon saying
<br>The encoded file <b>/home/xxxxxxx/public_html/wp-content/plugins/wfreview/cron.php</b> requires a license file.<br>The license file <b>/home/xxxxxxx/public_html/license.txt</b> is not valid for this server.
I have a valid license, I re-downloaded it and replaced it on my server in case the first was corrupt, but it still isn't working
nickmattern
10-02-2009, 04:15 PM
Hit me up on AIM: nickmatternTMG
I have a valid license, I re-downloaded it and replaced it on my server in case the first was corrupt, but it still isn't working
Which folder are you uploading the license file to? The license.txt file should be uploaded to the /wp-content/plugins/wfreview folder.
medicalhumor
10-03-2009, 09:22 AM
I have it in the domain root, as the previous versions had, and your instruction manual says:
Each instance of WFReview requires a unique license key and can be generated at any time by visiting the membership page. This license.txt file must be stored on the root of your domain.
nickmattern
10-03-2009, 10:10 AM
Load the license.txt file in the wp-content/plugins/wfreview folder and give it a try.
Looks like I failed to update the installation manual.
medicalhumor
10-03-2009, 11:37 AM
did that, still getting the same error
nickmattern
10-03-2009, 11:59 AM
did that, still getting the same error
Ok, we found the bug, give us a few hours to fix!
I'm working on fixing this issue right now. To be clear, this problem only occurs if you use the "php /path/to/script" method in your cron job. We highly recommend that you try the "wget" method first and see if that works for you.
medicalhumor
10-03-2009, 06:11 PM
cool, no rush. thanks for the prompt attention. you guys rock
nickmattern
10-03-2009, 06:12 PM
cool, no rush. thanks for the prompt attention. you guys rock
Thanks man. Did you try WGet too by chance?
medicalhumor
10-04-2009, 11:06 AM
wget not set up with permissions on my server.
Just got the new files from Ryan - worked like a charm!
thanks guys!!!!!!!!
BeerNuts
10-07-2009, 07:29 PM
What the, I finally made it to the import stage of the new wfreview and I see this. Great idea and all but not with the way I have sites hosted.
I use addon domains and have all of my wfreview sites under one cpanel control (the master domain). Because of this cpanel as far as I can tell only allows 2 cron jobs per domain (not addons) so it would be impossible for me to add 5-10-15-50 cron jobs to my server for all the sites I have planed.
nickmattern
10-07-2009, 07:30 PM
What the, I finally made it to the import stage of the new wfreview and I see this. Great idea and all but not with the way I have sites hosted.
I use addon domains and have all of my wfreview sites under one cpanel control (the master domain). Because of this cpanel as far as I can tell only allows 2 cron jobs per domain (not addons) so it would be impossible for me to add 5-10-15-50 cron jobs to my server for all the sites I have planed.
We're announcing some hosting offers tomorrow. Would you have any interest in moving to our dedicated box?
BeerNuts
10-07-2009, 07:52 PM
We're announcing some hosting offers tomorrow. Would you have any interest in moving to our dedicated box?
Na, Ive got a vps I just have an old import from hostgator fucking up all my shit. I figured out that cpanel only opens a new cron as you fill one. So it looks like you have until you make one, then you have two.
mjhunt
10-20-2009, 07:17 AM
Okay I did this and nothing seems to be working. Not sure what to do now...? Is there any video tutorials on what to do...?
nickmattern
10-20-2009, 07:22 AM
Okay I did this and nothing seems to be working. Not sure what to do now...? Is there any video tutorials on what to do...?
What host are you with? If the 2nd version, did you edit the php file specified on the "Import Jobs" menu?
mjhunt
10-20-2009, 07:31 AM
What host are you with? If the 2nd version, did you edit the php file specified on the "Import Jobs" menu?
I have a resellers account with hostnine for all my sites. I don't understand where I am supposed to edit the php file for "import jobs" menu. Talk to me like a 4 year old. be very specific step-by-step I know things but I can sometimes be slow with techie things. :)
nickmattern
10-20-2009, 07:38 AM
I have a resellers account with hostnine for all my sites. I don't understand where I am supposed to edit the php file for "import jobs" menu. Talk to me like a 4 year old. be very specific step-by-step I know things but I can sometimes be slow with techie things. :)
Since your host uses cpanel, but you're saying the instructions you followed on the Import Jobs screen didn't work, this is something your host should look into. Sometimes they really lock things down and if they've locked things down so far that you can't function, only they can make the changes necessary.
If you want to email me your Cpanel username/password AND email me your FTP username/password, I can double check the setup and make sure it's correct. If it's correct, it's a host issue and we can't force them to change permissions. I doubt it's that though.
From the Import Jobs menu:
How do I setup the cron job?
There are two methods of setting up the cron job. Which one you use will depend on how strict the permissions are with your hosting provider.
Method #1: wget
The first method uses the "wget" command to start the import process...
wget -O - http://design.nickmattern.com/wp-content/plugins/wfreview/cron.php
Method #2: php
Some shared hosting providers disable or restrict use of the "wget" command. In those cases, you'll need to call this script directly from PHP:
php /home/design/public_html/wp-content/plugins/wfreview/cron_no-wget.php
If you are forced to use the second method, you will need to edit the 'cron_no-wget.php' file and change the following line:
$url = 'http://yourdomin.com/wp-content/plugins/wfreview/cron.php';
to...
$url = 'http://design.nickmattern.com/wp-content/plugins/wfreview/cron.php';
mjhunt
10-20-2009, 07:45 AM
Since your host uses cpanel, but you're saying the instructions you followed on the Import Jobs screen didn't work, this is something your host should look into. Sometimes they really lock things down and if they've locked things down so far that you can't function, only they can make the changes necessary.
If you want to email me your Cpanel username/password AND email me your FTP username/password, I can double check the setup and make sure it's correct. If it's correct, it's a host issue and we can't force them to change permissions. I doubt it's that though.
From the Import Jobs menu:
Nick,
thanks for being so quick to response. made a quick jing video showing you what I am doing, maybe you'll see my mistake..?
Video:(3mins)
http://www.screencast.com/users/matthew_hunt/folders/Jing/media/93663529-4e15-4c2b-a5ce-d04526214b6b
Let me know. If not I'll call the host and find out what is going on.
nickmattern
10-20-2009, 07:51 AM
Nick,
thanks for being so quick to response. made a quick jing video showing you what I am doing, maybe you'll see my mistake..?
Video:(3mins)
http://www.screencast.com/users/matthew_hunt/folders/Jing/media/93663529-4e15-4c2b-a5ce-d04526214b6b
Let me know. If not I'll call the host and find out what is going on.
I viewed your video and the reason the CRON isn't running is because the timing is off.
Make your scheduling options look identical to: (Every min/hour/month/etc.)
http://www.reviewpluginforwordpress.com/images/Untitled-1.jpg
mjhunt
10-20-2009, 09:47 AM
here is what i have done:
video: 3mins
http://www.screencast.com/users/matthew_hunt/folders/Jing/media/93663529-4e15-4c2b-a5ce-d04526214b6b
maybe you can see what I am doing wrong....?
if I am doing nothing wrong then I'll contact the my host
nickmattern
10-20-2009, 09:57 AM
here is what i have done:
video: 3mins
http://www.screencast.com/users/matthew_hunt/folders/Jing/media/93663529-4e15-4c2b-a5ce-d04526214b6b
maybe you can see what I am doing wrong....?
if I am doing nothing wrong then I'll contact the my host
contact your host with the instructions in this thread.
You have admin@mytoronto... configured as the email address to receive notices from the cron jobs. Are you getting any emails with error messages?
mjhunt
10-20-2009, 10:28 PM
What host are you with? If the 2nd version, did you edit the php file specified on the "Import Jobs" menu?
You have admin@mytoronto... configured as the email address to receive notices from the cron jobs. Are you getting any emails with error messages?
Okay it's working now - not sure what I did...? All did was change the email address - weird...?
No I have a map issue thought - gettting this back, did snag a google map API though...ummm
this is what it says:
Lookup error: 602
does anyone know what that means...?
nickmattern
10-21-2009, 11:07 AM
Okay it's working now - not sure what I did...? All did was change the email address - weird...?
No I have a map issue thought - gettting this back, did snag a google map API though...ummm
this is what it says:
Lookup error: 602
does anyone know what that means...?
Mjhunt ==>
http://www.reviewpluginforwordpress.com/support/showthread.php?t=271
Grindstone
10-25-2009, 07:15 PM
So my imports are stuck in pending, apparently hostgator isn't recognizing the w-get command, moving on to the second method, the manual says:
Method #2: php
Some shared hosting providers disable or restrict use of the "wget" command. In those cases, you'll need to call this script directly from PHP:
php /home/stewart0/public_html/sandpointhotels.org/wp-content/plugins/wfreview/cron_no-wget.php
Total php n00b here, should this command be placed in the cron tab or do I need to do something else with it?
Thanks,
P
Edit: NM, the 1st post of this thread explains it perfectly.
Grindstone
10-25-2009, 08:10 PM
Well, tried it with both w-get and php, stuck in pending. License file is in the WFreview plugin folder. Any thoughts?
nickmattern
10-25-2009, 10:23 PM
Well, tried it with both w-get and php, stuck in pending. License file is in the WFreview plugin folder. Any thoughts?
With the php method, you need to also edit a file. Click on Import Jobs menu under WFreview in your Wordpress admin screen, and towards the bottom there is the exact syntax you need to work with. Hit me up on AIM if that doesn't work for you: nickmatternTMG
Hi Brian,
Ive looked at the control panel and tutorials and in the Advanced Features To access cron jobs, click on the "Advanced Tools" icon from the main control panel menu, then click the "Cron Jobs" icon.
Cron Jobs appears to be missing - I need this as I want to set up cron jobs on a weekly basis for all sites. In the reseller I have put some sites onto Power User the Cron appears but is disabled?
How do I enable it?
Rgds
Mike
What host are you with? If it's an "add-on domain" through cpanel, the top level domain account should have a "cron jobs" and you can add the job there (I think, untested but it should work for the entire domain as it's the same box.)
Steve
11-26-2009, 02:15 AM
4. Copy and paste the full command from your WFReview installation into the "Command to run" box. Set the job to run every minute, hour, day etc. as shown in the screenshot below.
NOTE: There are two types of commands that you can enter here. Both methods are outlines on the "Import jobs" page of your WordPress installation.
Nick, does the cron need to run this often? It sends an email every minute telling me it ran. Is there any reason I can't set it to run once a day just before midnight?
nickmattern
11-26-2009, 03:50 PM
Nick, does the cron need to run this often? It sends an email every minute telling me it ran. Is there any reason I can't set it to run once a day just before midnight?
Steve, technically, you only need the cron when you import. You can certainly remove the email address from the job, but if you have other jobs running the notifications for those won't go.
If you want to remove the cron after you're done importing, that won't have an adverse affect on the system, it's only used for the import process, nothing else.
Hey Nick,
I am considering buying this product, I have one problem though, I am getting an error with my cron job. I set it up so it would email me when it does the command, and this is what I got:
Failed loading /ioncube/ioncube_loader_lin_5.2.so: /ioncube/ioncube_loader_lin_5.2.so: cannot open shared object file: No such file or directory
X-Powered-By: PHP/5.2.11
Content-type: text/html
<!-- SHTML Wrapper - 500 Server Error -->
[an error occurred while processing this directive]
The directory is there.. any idea what the problem could be? Thanks.
WFReviewAdmin
02-16-2010, 12:23 AM
Hi Phil, I am the owner of the plugin and provide support for it now. You have not setup ioncube correctly yet. Try following the directions at http://www.reviewpluginforwordpress.com/support/showthread.php?t=72 specifically the ones about phpinfo, the full path directory for ioncube_loader_lin_5.2.so in php.ini is incorrect. Contact support@reviewpluginforwordpress.com for more info if you need more guidance.
Hi lucas,
I followed those instructions again and found I had missed something. Done that now and now I am receiving a new email:
"Failed loading /home3/newworn6/ioncube/ioncube_loader_lin_5.2.so: /home3/newworn6/ioncube/ioncube_loader_lin_5.2.so: wrong ELF class: ELFCLASS32
X-Powered-By: PHP/5.2.11
Content-type: text/html
<!-- SHTML Wrapper - 500 Server Error -->
[an error occurred while processing this directive]"
Any help would be appreciated, thanks.
FoolsNetwork
03-23-2010, 02:06 PM
I am not dense and when the recommended method did not work on WiredTree hosting I switched to the number 2 method to run the cron job.
I get no errors and no email - just forever in import pending mode.
Suggestions?
WFReviewAdmin
03-23-2010, 11:59 PM
FoolsNetwork, did you modify the cron_no-wget.php file to have the full path to your wordpress site? If so, email support@reviewpluginforwordpress.com with details and I will help.
mjhunt
03-28-2010, 12:00 AM
Been a while since I've used WFR - downloads latest version. Followed instructions and set-up cron, but getting an error...? See below. Any ideas what I'm doing wrong...?
Not Found
The requested URL /directory/nova-information-systems/ was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at merchantaccountdirectory.info Port 80
WFReviewAdmin
03-29-2010, 02:01 AM
It looks like you do not have the correct URL setup in your cron, please send details of what you do have in cron right now to support@reviewpluginforwordpress.com if you need further guidance.
cherubini
05-27-2010, 10:09 PM
I have my cron set up. I even tried the php method and altered the file... no luck. I even hit the file directly in the browser and it doesn't start. I'm on a vps...
I'm back to wget but get this in email
HTTP request sent, awaiting response... 404 Not Found
23:55:03 ERROR 404: Not Found.
Any ideas?
WFReviewAdmin
05-27-2010, 10:38 PM
Please contact support@reviewpluginforwordpress.com with the url to your website and I will help you get this straightened out.
vBulletin® v3.8.4, Copyright ©2000-2010, Jelsoft Enterprises Ltd.