Campaigns are not being delivered

Carlo

Member
Hi, Mailwizz was moved to a new server.
All seems to be fine... BUT.
I tested the single email delivery and it works: http://take.ms/TOmAR
I then created a test campaign with a test list http://take.ms/5J9ZE but it does not work, the list is composed by 4 emails and the delivery is always at 0%.

It looks like there is an issue with cronjobs.
The cronjobs were created by you and have been imported exactly as they were in the new server.
Unfortunately they don't seem to work.

I made sure to use PHP version 7.1 (although I would prefer to use 7.2).

It looks like the /usr/local/php71/bin/php-cli -q is not correct as there is no php-cli, there is php on Easy Apache and version 7.1 is located here /opt/cpanel/ea-php71/ (version 7.2 is here /opt/cpanel/ea-php72/).
I am not sure about how PHP was configured in the old serv, anyway even in the old server there was no php in the folder usr/local/php71/ so I am a bit confused.

I already checked with my system administrator but he does not know how to help me on this specific matter.
Can you please help me on this matter?

Thanks a lot, Carlo
 
@Carlo - if from command line you run: /opt/cpanel/ea-php71/php -v what do you get?
Also, post an image with the way your cron jobs look like after you have added them in cpanel.
 
Sorry to bug you, but a client has a campaign to deliver.
After reading the document https://kb.mailwizz.com/articles/what-are-the-cron-jobs-that-i-have-to-add/ I tried to edit the first cron, the campaing delivery one.
Now it looks like this /opt/cpanel/ea-php72/bin/php-cli -q /home/enews/public_html/apps/console/console.php send-campaigns >/dev/null 2>&1
Where /opt/cpanel/ea-php72 is the real path to PHP 7.2 used in cPanel multiphp.

I waited a few minutes (the cron runs every minute) to see if the scheduled campaigns were delivered (I also paused and reactivated them to make sure the command was received).

Unfortunately nothing happens and campaign delivery is stuck.
Can you please let me know how I should fix the crons to let them work?

Thanks a lot, Carlo
 
Does /opt/cpanel/ea-php70/bin/php-cli -v or /opt/cpanel/ea-php71/bin/php-cli -v say something useful?
Reason is, mailwizz has some issues with php 7.2 at the moment, and it might not work okay. So use 7.0 or 7.1
 
Unfortunately they both say the directory does not exists: http://take.ms/v7owN
Regarding PHP version, is it better 7.0 or 7.1? I have both.
Regarding crons, as I mentioned even on the old server the directory /usr/local/php71/bin/php-cli did not exist but the crons worked.

What should I do?
Let me know, thanks a lot, Carlo
 
Does /opt/cpanel/ea-php70/bin/php-cli -v or /opt/cpanel/ea-php71/bin/php-cli -v say something useful?
Reason is, mailwizz has some issues with php 7.2 at the moment, and it might not work okay. So use 7.0 or 7.1
I m using PHP 7.2 with CPanel and it works perfectly.
 
Just to complete this thread, twisted1919 was so good to help me and solve the cron issue in a ticket.
He went above and beyond fixing the server crons.
The right path was /opt/cpanel/ea-php72/root/usr/bin/php

By the way I am using PHP 7.2 as well and, for now, everything seems to be fine.
One large campaign has been delivered with no issues and I see no PHP errors logged.

Thanks again for the superb assistance!
 
Back
Top