Tania Rascia

Skip Navigation
How to Set Up a Cron Job in MAMP

How to Set Up a Cron Job in MAMP

 /  Leave a response

In Setting Up a Basic Cron Job in Linux, I went over how cron jobs work and how to set one up.

Recently I wanted to set up a cron job on MAMP, and could not find any resources on how to get that done. I figured out that you need to call MAMP’s PHP executable, which will depend on on the version of PHP you’re running. For 5.6.32, the below would be the proper URL.

*/1 * * * * /Applications/MAMP/bin/php/php5.6.32/bin/php /Users/tania/cron.php > /dev/null 2>&1

Just change the version number to whatever version of PHP MAMP is currently running.

Note

Hi, my name is Tania Rascia. I've turned down every offer for advertisements or sponsored posts on this website. I write free resources that have helped thousands of people successfully transition into a web development career.

My committment is to no bullshit, no sponsored posts, no ads, and no paywalls. If you enjoy my content, please consider supporting what I do.

Support my work

Newsletter

New articles on web development every two weeks.

Write a response

Your email address will not be published.

All code will be displayed literally.