mythusmage Posted March 15, 2005 Posted March 15, 2005 cPanel version: X (I think. or whatever the latest installed version is) Option: First. The one with the text field where (I think) scripts are entered plus a number of 'click-on' options. Not the one for Unix geeks. A basic Cron Job tutorial for cPanel is basically what I'm looking for. Something applicable regardless of exact details. Thanks. Quote
mythusmage Posted March 15, 2005 Author Posted March 15, 2005 Can this page help you out? <{POST_SNAPBACK}> Not really, For one thing, it's applicable to the Unix Geek option. The harder option according to cPanel. This is best explained by your doing this... Go to your site's cPanel. Click on "Cron Jobs". You'll see two options, one 'easy' the other 'hard'. The one I'm referring to is the first, 'easy' option. It is that option I seek a tutorial for. When using the easy option what do you do? Think of it as, Cron Jobs for Dummies Quote
stevevan Posted March 15, 2005 Posted March 15, 2005 You have to know the "command line" that you need to run the script. Think of it like a command prompt in windows where you need to enter something to run a program (like \windows\folder\program.exe). The other "click on options" are all options to tell cron when to execute your script. That's the very basics. There are other sites out there that can explain how cron jobs work, some a LOT more technical than others. Plus if there are other family members who have used this, I'm sure they will be more than happy to chime in. Quote
TCH-Bruce Posted March 15, 2005 Posted March 15, 2005 Using the standard cron setup in cPanel is what you are asking about. Not the advanced panel. The command line is the path to the script you will be running. If it is a PHP file that you need to run just preface it like this. >/usr/bin/php -q /home/yourcpanelname/path-to-your-script Then select the frequency to run the job using the other boxes. Quote
mythusmage Posted March 20, 2005 Author Posted March 20, 2005 (edited) I have returned. Thanks for the help. Just for clarification, my 'cpanelname' would be my user name when sigining in to cpanel. Where an MT plugin is concerned, it goes in the MT plugins folder. BTW, I found the plugin, but the author apparently doesn't know how to explain things. The instructions are, to be kind, incomplete. Below I present the one bit of coding I could find: <MTReferers max="10"> <a href="<$MTRefererURL$>" title="<$MTRefererName$>"> <$MTRefererHost$></a> (<$MTRefererHits$>) <br /> </MTReferers> No second part, no indication if said code performs double duty. If anybody out there has installed AWStatsreferers into their copy of MovableType, could you drop me a line and tell me what you did? (Don't you hate it when people assume everybody has access to the Akashic Memory?) Update: Guess what I found? Lady has full instructions on using cPanel for setting up cron jobs. I recomend that Total Choice Hosting get permission from her to use her cPanel instructions in the Total Choice Hosting FAQ. Edited March 20, 2005 by mythusmage Quote
TCH-Bruce Posted March 20, 2005 Posted March 20, 2005 Yes, the cpanelname I was referring to is the name you use to log into cpanel. The code that you are quoting is something that you would embed into your MT template where you want it to appear. Quote
mythusmage Posted March 20, 2005 Author Posted March 20, 2005 Yes, the cpanelname I was referring to is the name you use to log into cpanel. The code that you are quoting is something that you would embed into your MT template where you want it to appear. <{POST_SNAPBACK}> I had the feeling. In both cases. So for the plugins folder I need a second bit of script. If anybody knows where I can find that script, please let me know. (Why do some people find it necessary to make things hard for others?) Quote
TweezerMan Posted March 20, 2005 Posted March 20, 2005 (edited) Actually, it appears you don't have either of the two scripts needed. The code you posted is what you put into a template to display the referer stats, *after* you've installed the two scripts. The author did not make it easy to find the download you need. It is available on his "Latest Versions" page. The link you want to click on and download is the "MT-Referers" link. This should download a file named "mt-awstats.zip". Within mt-awstats.zip is two files - "mt-referers.pl" and "referers.pl". "mt-referers.pl" is the MT-Referers plugin file and should be installed in your "plugins" directory. "referers.pl" should be installed somewhere on the server (it should *not* be installed to your "plugins" directory), and this script is the one that needs to be set up as a cron job. The "referers.pl" script requires you to at least configure your domain in the script (at line 9). I'm not sure if the other settings can be left as they are or not. Both scripts require a number of perl modules to be installed on the server. I believe most of them will be installed already except one - YAML. If your server does not have the YAML perl module installed, you'll need to submit a ticket to the help desk and ask them to install it for you. Without it, you cannot run these scripts at all. I do not have the MT-Referers plugin installed, but I've downloaded it now and if you run into problems, I can look at it and try to help you figure out what's wrong. Edited March 20, 2005 by TCH-David Quote
mythusmage Posted March 21, 2005 Author Posted March 21, 2005 (edited) Hate to say this, but everything I have available is proving singularly unhelpful. I can't so much as access the perl folder. I can't even get to the first part of the bloody pathway. David, you have my permission to install the scripts and set up the cron job. When done please tell me and I'll install the script into the template. I'll put in a ticket to get the perl modules installed. Thank you. Update: Oops. Found out how to do it through cPanel. If it wasn't for library paste I'd lose my head. I do have to ask, why aren't the modules listed in alphabetical order? Edited March 21, 2005 by mythusmage Quote
TweezerMan Posted March 21, 2005 Posted March 21, 2005 I do have to ask, why aren't the modules listed in alphabetical order? I've always chalked that (and the multiple listings of the same modules) up as an oddity of CPanel. Quote
mythusmage Posted March 22, 2005 Author Posted March 22, 2005 First, my thanks to Tech Support for installing the YAML Perl module. However, I've said the Hell with the AWStatsreferers MT plugin. It's just not worth it. The author assumes too much, and neglects too much. Stuff him. Not only that, but I couldn't open the dang files to edit them. The app that created them couldn't be found. If you know of any HTML that will allow the listing of referring sites that accesses the AWStats installed on the server, let me know where I can find it. Thank you. Quote
TweezerMan Posted March 22, 2005 Posted March 22, 2005 Not only that, but I couldn't open the dang files to edit them. The app that created them couldn't be found. It sounds like you tried to double-click the files to open them, which won't work unless you have Perl installed on your machine, or have the .pl file extension associated with a program. The files are plain text files - you should be able to edit them in a text editor. You need a text editor that understands the difference between Windows and Linux style line breaks in the files though - Notepad generally won't cut it here. I use EditPad Lite (free) myself. If you've uploaded the scripts to your server, you can also go into your CPanel's File Manager, browse to the directory where you uploaded one of the files, click on the name of the file, then click "Edit File" in the right-hand window. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.