I installed Drupal and now I am on the Administer section. I clicked on status reports and its as followed:
Drupal 6.4
Access to update.php Protected
Configuration file Protected
Cron maintenance tasks Never run
Database updates Up to date
Drupal core update status Not secure! (version 6.5 available)
File system Writable (public download method)
GD library bundled (2.0.28 compatible)
MySQL database 5.0.51a
PHP 4.4.9
PHP memory limit
PHP register globals Disabled
Unicode library PHP Mbstring Extension
Update notifications Enabled
Web server Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8
FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
How do I configure cron jobs? Access cpanel Cron Jobs, select standard for experience level, then it says Entry 1 Command to run, what do I enter here?
OR do I select Advanced Unix Style?
Comments
Also, is all of this
Also, is all of this information correct?
Drupal 6.4
Access to update.php.............................................. Protected
Configuration file........................................................ Protected
Cron maintenance tasks.............................................. Never run
Database updates..................................................... Up to date
Drupal core update status.............................................. Not secure! (version 6.5 available)
File system......................................................... Writable (public download method)
GD library............................................................ bundled (2.0.28 compatible)
MySQL database.............................................. .... 5.0.51a
PHP..................................................................... 4.4.9
PHP memory limit
PHP register globals.............................................. Disabled
Unicode library................................................... PHP Mbstring Extension
Update notifications.............................................. Enabled
Web server.................................................... Apache/1.3.41 (Unix) mod_fastcgi/2.4.6 mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8
.............................................. .............FrontPage/5.0.2.2635 mod_ssl/2.8.31 OpenSSL/0.9.7a
=-=
you should install Drupal 6.5 not 6.4
everything else is fine.
with regards to cron jobs, your hosts documentation should have the necessary information about how to run crob jobs on their servers. Ultimately you will want to point a cron job at cron.php on your account.
It may be of benefit to mention the name of the host (if on a host) and others on same host may be able to instruct further if host documentation doesn't reveal necessary information.
About cron jobs, see also
About cron jobs, see also http://drupal.org/cron
I have hosting through
I have hosting through lunarpages and they said Drupal must have given me some command to run (if its a PHP), they said to enter
php -q /home/YOURACCOUNT/public_html/blah/blah/command.php optional_parameters
OR after researching on here, do I Enter
curl --silent --compressed http://example.com/cron.php
and how will I know its working? I've read that its not recommended to have your email set up where they will email you.
Also, in selecting the minutes and things like that. Is it okay to do 15 minutes, every 6 hours, every weekday, every month for the running times?
=-=
you will want to run cron.php so try (in some cases this is all trial and error as to what will work and what won't)
based on what your host is stating, let's try it their way:
php -q /home/YOURACCOUNT/public_html/blah/blah/cron.php
where YOURACCOUNT and blah/blah will need to be filled in by you.
you will know it is working when you check administer -> status logs and see the last time cron was run. Though while testing there really isn't any reason you can't have the email sent. The email can be stopped once you know it is working correctly, though I don't understand the logic behind obtaining the email as being a bad thing.
I don't suggest running cron more than every hour, especially when your site has little to no content. The more content you have the more often you will want cron to run to index said content. As such, you may not even want to worry about a cron job being set on the server just yet. You can always run cron.php by calling it in your browser when you want content indexed and the like.
This is what I was
Oh I thought this was something that was required in order to get things going, so instead is it okay to worry about this later.......
But
This is what I was told...
Drupal will give you a directory path for the command relative to wherever the directory is that you installed Drupal into. E.g., you installed Drupal into /home/ACCOUNT/public_html/myDrupal/, and Drupal says "cronjobs/command.php", so overall it would be /home/ACCOUNT/public_html/myDrupal/cronjobs/command.php.
so, for instance will it be....
php -q /home/FakeUser22/public_html/drupal/cron.php
I dont know.....
=-=
I am assuming the confusion is coming from you not being familar enough with the paths to your account on your host and the folder structure within your entire account. so hopefully the following will be able to better explain that area. If this isn't where you are confused please explain.
youraccount = the name of your account on their server. You were assigned an account name. Usually this information can be found in an email that you were sent by your host after purchase, or in your host panel. I don't have the same host as you do, as I don't have cPanel. However, my information is included under the account icon/tab.
public_html = the public root of your account. Where the outside world can access your account to see "stuff"
drupal = where your drupal script is installed. you may not have uploaded it to a folder. in which case the path would be home/youraccount/public_html/cron.php. Or you may have called the folder something other than drupal.
If we had an understanding of where your drupal script was uploaded to we could help put that part of the path together for you. However, youraccount isn't something we'll ask for here. At least I won't.
after setting cron it may take a bit longer for your server to pick up the changes. So if you set it for an hour and it doesn't run exactly 60 mins from the moment you save the cron job, don't panic. In a situation like this, it may not hurt to set the cron job and go back to administer -> status logs and run cron manually by clicking on the link. This will give you an idea when you set your cronjob last and whether it was run since that time.
The instructions in
The instructions in http://drupal.org/cron are very specific about this: Use some "browser" command (wget or curl or lynx) and you site's URL. Don't use the php command and a file path.
You can let the cronjob send you emails to know what is going on for as long are you setting it up. Emails are not a problem, they are just an unnecessary annoyance if it works correctly.
Thanks for the information.
Thanks for the information. So, I will not automatically see the changes. I was thinking once I set it, to go back to status report and see if there were any changes....None....I have been manually running it....but, I notice if I type www.mysite.com/cron.php into a new browser , the screen is white and when I return to my status report, it shows that cron has been run....so I guess this is manually running it too...
Anyway through my cpanel, I have tried using all these codes, I am awaiting response from techn support;
curl --silent --compressed http://mysite.com/cron.php
php /home/fakeloginname/public_html/cron.php
wget http://www.mysite.com/cron.php
cd '/home/fakeloginname/public_html/' ; php -q 'cron.php' > /dev/null 2>&1;
I dont know how to tell if its doing its job. I selected 15 min, every 6 hours, every weekday and every month. So, do I have to wait for 6 hours in order to see? I did include my email address.
I've been trying to understand this and what code to use, read about crons on here and other places, but its not happening. I am still confused. This is too much, I guess I'll worry about it later on in the process. Do I have to have crons in order to run my site, because if I dont then im not gone worry about it.
My brain just dont want to decipher all of this. I thank you all for trying to help.
=-=
yes visiting it in your browser (whitescreen) is running cron.php
you don't want to set it for
15 mins
6 hours
weekeday and every month.
if you set it for 15 mins , it will run every 15 mins, which includes everything there after.
Well Tech Support couldnt
Well Tech Support couldnt help me as they say they dont give out commands or scripts.
oh well, I give up. I guess imma have to run it manually for the time being.
Leave those cron jobs that
Leave those cron jobs that you created enabled, and visit the
admin/reports/dblogpage in Drupal tomorrow and look at the times to figure out if any of them worked (except your manual ones).When I woke up this morning
When I woke up this morning to check my email, unexpected this is what I receive;
php /home/fakeusername08/public_html/cron.php
X-Powered-By: PHP/4.4.9
Set-Cookie: SESSd41d8cd98f00b204e9800998ecf8427e=05fc714a2ab58cec329ec1acc856a8d2; expires=Wed, 05 Nov 2008 10:33:23 GMT; path=/
Expires: Sun, 19 Nov 1978 05:00:00 GMT
Last-Modified: Mon, 13 Oct 2008 07:00:03 GMT
Cache-Control: store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Content-Type: text/html; charset=utf-8
What is this, does it mean it is working?
I checked the status report and it said last run 5 hours ago. I was sleep so I assume its working. and the log entry showed that it ran at 2:00 this morning.
If that is not the time of
If that is not the time of one of your manual runs, then one of the cron commands which you tried is working fine.
And surprisingly (for me), it seems to be the "php file-path" command.
It must be working fine then
It must be working fine then because I was asleep at that time and plus all the times I did a manual run, I never received a email. I'll know for sure again today just to make sure.....