skip to Main Content

WP-CLI: STDOUT error when called in CRON (crontab) – CentOS

Little help or guidance. Server is CentOS 7 - with WHM/CPanel installed. Command: $(which php) $(which wp) core update --require=/opt/wp-cli-pre.php --path=/home/USER/public_html/ The contents of /opt/wp-cli-pre.php <?php if(!defined('STDIN')) define('STDIN', fopen('php://stdin', 'r')); if(!defined('STDOUT')) define('STDOUT', fopen('php://stdout', 'w')); if(!defined('STDERR')) define('STDERR', fopen('php://stderr', 'w')); Works as…

VIEW QUESTION
Back To Top
Search