Title: cron &amp; max_execution_time
Last modified: October 7, 2020

---

# cron & max_execution_time

 *  Resolved [macksix](https://wordpress.org/support/users/macksix/)
 * (@macksix)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/cron-max_execution_time/)
 * On web hosting accounts, the cron is likely using the default server PHP and 
   default PHP.ini unless you you a path to another version of PHP and a path to
   a php.ini file.
 * The default max_execution_time is likely 30 seconds on many servers. This likely
   is not enough time for resmush.it and can cause time-out exceptions. (It happened
   to me.)
 * The cron can be run with -c /path/to/php.ini to overcome this.
 * This probably should be pointed out on the cron instructions.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/cron-max_execution_time/#post-13516515)
 * Hi [@macksix](https://wordpress.org/support/users/macksix/),
 * Thanks for this feedback, we’ve update the WP page on our website : [https://resmush.it/wordpress/howto-configure-cronjobs](https://resmush.it/wordpress/howto-configure-cronjobs)
 * Cheers,
    Charles
 *  Thread Starter [macksix](https://wordpress.org/support/users/macksix/)
 * (@macksix)
 * [5 years, 6 months ago](https://wordpress.org/support/topic/cron-max_execution_time/#post-13695722)
 * The page has it wrong, the flag is for php not wp-cron.php.
 * Correct version:
 * cd /your/path/to/website; php -c /path/to/php.ini -q wp-cron.php
 *  Plugin Contributor [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * (@resmushit)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/cron-max_execution_time/#post-13947480)
 * Thanks [@macksix](https://wordpress.org/support/users/macksix/), it has been 
   corrected on our website!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘cron & max_execution_time’ is closed to new replies.

 * ![](https://ps.w.org/resmushit-image-optimizer/assets/icon-256x256.png?rev=3049668)
 * [reSmush.it : The original free image compressor and optimizer plugin](https://wordpress.org/plugins/resmushit-image-optimizer/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/resmushit-image-optimizer/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/resmushit-image-optimizer/)
 * [Active Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/resmushit-image-optimizer/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/resmushit-image-optimizer/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [reSmush.it](https://wordpress.org/support/users/resmushit/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/cron-max_execution_time/#post-13947480)
 * Status: resolved