By greygoo on
I installed Drupal 5.1 locally on my computer under MAMP but can't figure out how to set up cron to run cron.php.
I've tried 0 * * * * wget /Applications/MAMP/htdocs/domainname/cron.php using vim in the terminal but I don't really know what I'm doing to be honest.
Much thanks in advance for any guidance on this.
Comments
wget expects URL
Hi noborders,
change that line to
0 * * * * php /Applications/MAMP/htdocs/domainname/cron.php
wget expects a URL as parameter, but you gave it a local path.
you can achieve the same by this line:
0 * * * * wget http://yourdomainname/cron.php
cheers, nofear
-----------
http://humanopinion.org
thanks. will try that. yeah,
thanks. will try that. yeah, i had a feeling i needed something other than wget for this.
PHP
The PHP application won't work.See http://drupal.org/cron for more details
EDIT:Whoops.
Run cron within Drupal
Hi noborders,
Well I'm a total noob, but have managed to get Drupal 5.1 running locally on my Mac using MAMP.
Within your Drupal site, go to Administer > Logs > Status report. Under the "Cron maintenance tasks" line, you'll see "You can run cron manually". Click on that, and it will run your cron jobs.
I hope that's what you wanted. And if not, well sorry, i'm a noob! Good luck!
thanks for the response.
thanks for the response. yeah, i knew about that. I just wanted to figure out how to set up cron in a MAMP environment.
From MAMP to a live site
hbar,
I just succeded doing the same thing;-)
Now how do you take your test site to your live site ?
How do you transfert the DB ?
Thank you in advance.
luc
Not sure I can help, but…
Hi luc,
Sorry, I'm also new to Drupal, and haven't installed my live site yet. But I *have* been reading a lot of Handbooks and this is what I know so far:
1. Upload the Drupal gzip to your server and unpack it there (I had to ask my host to unpack it for me).
2. Upload any Themes/Modules that you use to the corresponding folders on the server.
3. Upload any files/image folders that you use to the corresponding folders on the server.
4. On your local site, using PHPMyAdmin, make a backup (or export) your Drupal database to your desktop (or anywhere else). I'm not sure of the setting for this yet :-(
5. Upload the resulting xxx.sql file to somewhere on your server.
6. On your server, using PHPMyAdmin (or whatever is available), import the xxx.sql to MySQL.
7. Using a browser, go to your live Drupal site, and set it up to use your xxx.sql file (like you did when setting it up with MAMP.
8. Set up your no.1 user, etc (like you did when setting it up with MAMP).
9. Go, go go!
Now, this is all theoretical to me - I'm only at step 3. For step 4 I'm hoping I will find the relevant info on how to setup PHPMyAdmin to export the correct type of sql file. I'm sure you'll find this info on a Handbook somewhere, or by asking in these forums. Actually, writing the above steps down helped to clarify it in my own brain, so I'm feeling a little bit more confident about it now :-)
BUT, I *am* a noobie, so I can't guarantee that I haven't missed something important. Good luck with it, Luc!
hbar
Not sure I can help, but…
Hi luc,
Sorry, I'm also new to Drupal, and haven't installed my live site yet. But I *have* been reading a lot of Handbooks and this is what I know so far:
1. Upload the Drupal gzip to your server and unpack it there (I had to ask my host to unpack it for me).
2. Upload any Themes/Modules that you use to the corresponding folders on the server.
3. Upload any files/image folders that you use to the corresponding folders on the server.
4. On your local site, using PHPMyAdmin, make a backup (or export) your Drupal database to your desktop (or anywhere else). I'm not sure of the setting for this yet :-(
5. Upload the resulting xxx.sql file to somewhere on your server.
6. On your server, using PHPMyAdmin (or whatever is available), import the xxx.sql to MySQL.
7. Using a browser, go to your live Drupal site, and set it up to use your xxx.sql file (like you did when setting it up with MAMP.
8. Set up your no.1 user, etc (like you did when setting it up with MAMP).
9. Go, go go!
Now, this is all theoretical to me - I'm only at step 3. For step 4 I'm hoping I will find the relevant info on how to setup PHPMyAdmin to export the correct type of sql file. I'm sure you'll find this info on a Handbook somewhere, or by asking in these forums. Actually, writing the above steps down helped to clarify it in my own brain, so I'm feeling a little bit more confident about it now :-)
BUT, I *am* a noobie, so I can't guarantee that I haven't missed something important. Good luck with it, Luc!
hbar
Not sure I can help, but…
Hi luc,
Sorry, I'm also new to Drupal, and haven't installed my live site yet. But I *have* been reading a lot of Handbooks and this is what I know so far:
1. Upload the Drupal gzip to your server and unpack it there (I had to ask my host to unpack it for me).
2. Upload any Themes/Modules that you use to the corresponding folders on the server.
3. Upload any files/image folders that you use to the corresponding folders on the server.
4. On your local site, using PHPMyAdmin, make a backup (or export) your Drupal database to your desktop (or anywhere else). I'm not sure of the setting for this yet :-(
5. Upload the resulting xxx.sql file to somewhere on your server.
6. On your server, using PHPMyAdmin (or whatever is available), import the xxx.sql to MySQL.
7. Using a browser, go to your live Drupal site, and set it up to use your xxx.sql file (like you did when setting it up with MAMP.
8. Set up your no.1 user, etc (like you did when setting it up with MAMP).
9. Go, go go!
Now, this is all theoretical to me - I'm only at step 3. For step 4 I'm hoping I will find the relevant info on how to setup PHPMyAdmin to export the correct type of sql file. I'm sure you'll find this info on a Handbook somewhere, or by asking in these forums. Actually, writing the above steps down helped to clarify it in my own brain, so I'm feeling a little bit more confident about it now :-)
BUT, I *am* a noobie, so I can't guarantee that I haven't missed something important. Good luck with it, Luc!
hbar
It works !
Hi.
4. On your local site, using PHPMyAdmin, make a backup (or export) your Drupal database to your desktop (or anywhere else). I'm not sure of the setting for this yet :-(
All I did was copy-paste the text generated.
I coul not find a way to do some kind of "Save as".
I have been able to take my localhost site and put it on line in 10 minutes.
I also use the technique I learned from Elliott Rothman @ http://www.theartlab.net/drupal-school-quick-tip-sites-all-folder .
Thank you for the replies
luc