I've installed WP CLI via root. User account has jail shell access. In the console, I can execute WO CLI fine. But when trying to set up a crontab within the user's cpanel - to execute a command from a plugin on a WP CLI site - I get following errors;
Status: 500 Internal Server Error
So then I realised I need to run it like the below -
but the result: Error: Invalid value specified for positional arg.
Any help appreciated.
I did look at these, but they have not helped:
forums.cpanel.net
0,30 | * | * | * | * | /usr/local/bin/wp --path=/home/accountusername/test.example.com/ import increment specials |
Status: 500 Internal Server Error
So then I realised I need to run it like the below -
0,30 | * | * | * | * | /usr/local/bin/php /usr/local/bin/wp --path=/home/accountusername/test.example.com/ import increment specials |
but the result: Error: Invalid value specified for positional arg.
Any help appreciated.
I did look at these, but they have not helped:
Users cannot use WP-CLI in cron
Hello, I installed WP-CLI from root, I can use it from a user's terminal without problems, but when I want to use it in CRON, I get the following errors: PHP Warning: Use of undefined constant STDOUT - assumed 'STDOUT' (this will throw an Error in a future version of PHP) in...
Last edited by a moderator: