Best way for Cron with Parameters (for Magento2)

nservices

Verified User
Joined
Dec 11, 2008
Messages
301
Hi,
just staring to host Magento2 over DA, and I have 2 questions:
1. what is the best options to set magento2 cron taks?
the commands:
Code:
*/1 * * * * user php /home/username/domains/domain.tld/public_html/bin/magento cron:run
*/1 * * * * user php /home/username/domains/domain.tld/public_html/update/cron.php
*/1 * * * * user php /home/username/domains/domain.tld/public_html/bin/magento setup:cron:run
2. can I change the disable_functions for magento users only?
for example, I need to allow escapeshellarg function for magento installations

Regards,
 
Add them under DA user level. Commands need to be:
Code:
/usr/local/bin/php /home/username/domains/domain.tld/public_html/bin/magento cron:run
/usr/local/bin/php /home/username/domains/domain.tld/public_html/update/cron.php
/usr/local/bin/php /home/username/domains/domain.tld/public_html/bin/magento setup:cron:run

disable_functions is global, however, escapeshellarg is not dangerous to enable. "./build secure_php" does not include it in CustomBuild 2.0.
 
Back
Top