Hello Peter & psclip,
I am facing a similar issue I can't seem to find a fix, please help!
My server is Ubuntu 20.04.2 + Plesk Obsidian (latest version) and I am attempting to get Mailwizz running on a subdomain using PHP 7.4.22.
The cron tasks I wish to run are:
# Campaigns sender, runs each minute.
* * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php send-campaigns >/dev/null 2>&1
# Queue handler, runs each minute.
* * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php queue >/dev/null 2>&1
# Transactional email sender, runs once at 2 minutes.
*/2 * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php send-transactional-emails >/dev/null 2>&1
# Bounce handler, runs once at 10 minutes.
*/10 * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php bounce-handler >/dev/null 2>&1
# Feedback loop handler, runs once at 20 minutes.
*/20 * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php feedback-loop-handler >/dev/null 2>&1
# Delivery/Bounce processor, runs once at 3 minutes.
*/3 * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php process-delivery-and-bounce-log >/dev/null 2>&1
# Various tasks, runs each hour.
0 * * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php hourly >/dev/null 2>&1
# Daily cleaner, runs once a day.
0 0 * * * /usr/bin/php -q /var/www/vhosts/mydomain.com/mm.mydomain.com/apps/console/console.php daily >/dev/null 2>&1
I have followed your instructions:
- See screenshot
- Checked the "Active" box
- Selected the Task type, radio button "Run a PHP script"
- For Script path, I removed the /usr/bin/php -q and used the remainder of the syntax and removed the ">/dev/null 2>&1"
- For with arguments, I left this blank
- For Run, I changed the option to "Cron style" and input manual syntax, " ***** " (I understand how to set up the cron syntax, no problem and here is a great resource Crontab.guru - The cron schedule expression editor)
- System user is "root"
- Description is left blank
- Notify is "Do not notify"
- Then I hit the "Run Now" button and I receive the error in the screenshot
@psclip - did you do anything to alter the syntax for the subdomain? I do not understand what you meant by adding the code, "/opt/plesk/php/7.1/bin/php"...
I also tried user:
psaadm as some of the system generated cron jobs for this domain have that as the user.