I installed some days ago Magento 2.3.5 in a VPS with a CentOS Linux 7.8.2003 and Plesk.
Once was installed I was try to start the crontab with a SSH can’t do it.
/var/www/vhosts/mydomain.com/subomain.mydomain.com -bash-4.2$ bin/magento cron:install Magento supports PHP 7.1.3 or later. Please read https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html-bash-4.2$
I was expect that’s an issue because I have an older PHP release in mydomain.com and Magento is installed in a subdomain folder inside, a hierarchy down level?
After I contact with my hosting support they said I need to start the crontab form a cronjob in Plesk, just typing some examples, finally I compose one:
/opt/plesk/php/7.3/bin/php /var/www/vhosts/mydomain.com/subdomain.mydomain.com/bin/magento my domain.com/subdomain.mydomain.com/bin/magento cron:run 2>&1
It’s correct typing 2>&1 what’s meaning ?
Whatever cronjob up and start to work but returns an error:
In Abstract.php line 144:
SQLSTATE[HY000] [2002] Connection refused
In Abstract.php line 144:
SQLSTATE[HY000] [2002] Connection refused
In Abstract.php line 128:
SQLSTATE[HY000] [2002] Connection refused
queue:consumers:start [--max-messages MAX-MESSAGES] [--batch-size BATCH-SIZE] [--area-code AREA-CODE] [--single-thread] [--pid-file-path PID-FILE-PATH] [--] <consumer>
In Abstract.php line 128:
SQLSTATE[HY000] [2002] Connection refused
queue:consumers:start [--max-messages MAX-MESSAGES] [--batch-size BATCH-SIZE] [--area-code AREA-CODE] [--single-thread] [--pid-file-path PID-FILE-PATH] [--] <consumer>
In Abstract.php line 144:
SQLSTATE[HY000] [2002] Connection refused
In Abstract.php line 128:
SQLSTATE[HY000] [2002] Connection refused
In Abstract.php line 144:
SQLSTATE[HY000] [2002] Connection refused
queue:consumers:start [--max-messages MAX-MESSAGES] [--batch-size BATCH-SIZE] [--area-code AREA-CODE] [--single-thread] [--pid-file-path PID-FILE-PATH] [--] <consumer>
In Abstract.php line 128:
SQLSTATE[HY000] [2002] Connection refused
queue:consumers:start [--max-messages MAX-MESSAGES] [--batch-size BATCH-SIZE] [--area-code AREA-CODE] [--single-thread] [--pid-file-path PID-FILE-PATH] [--] <consumer>
It’s a wrong configuration ? It’s a MySQL memory ? Do I need upgrade something in cronjob ?
Thank you in advance, Juan