If you're running a cron job as root, and you're running a homebrew command, you'll need to add homebrew to the root user's path. sudo su cat ~/.bash_profile Do you see this? ? If not, run echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile Test it source ~/.bash_profile which mycommand…
Read more about Failed crontab for root on OSXI ran into a problem with a composer script timing out on my machine because I had xdebug installed on the cli. Now, I sometimes actually use xdebug on the cli, so I wanted a cli config that allowed xdebug to be switched on and off, but defaults to off. The solution uses the PHP_INI_SCAN_DIR variable. Create a separate conf.d directory that symlinks everything except ext-xdebug.ini, then point PHP_INI_SCAN_DIR to it…
Read more about PHP Cli With Optional Xdebug: Separate Cli Ini File