CakePHP crontab intl

I create a crontab for execute de cakephp-queue but it returns! You must enable the intl extension to use CakePHP

Not working: */1 * * * * MY_FULL_PATH_TO_APP && bin/cake queue runworker

I run php -m | grep intl it returns intl!

When I execute cake and make a request, it works well, but with crontab, it not works!

From crontab http request, it works well too!

Working: */1 * * * * wget

SO macOS!

1 answer

  • answered 2019-09-21 06:29 Szymon

    Depending on your configuration, CLI and webserwer can use different php.ini files. And thats probably your case. First run: php -i | grep "Configuration File" from CLI, it should output your php.ini file location. Open it with your favourite text editor and enable intl there.