I have been using Blesta for a year+ now but the cron never works. Sometimes it does, sometimes it doesn't, and every once in a while I log into the admin dashboard, it feels like a gamble.
So today I took the cron command and run it under the command line. Immediately, I receive the following message:
Attempting to run all tasks for Company Name.
Attempting to deliver invoices scheduled for delivery.
<html lang="en" xml:lang="en">
<link rel="stylesheet" href="/app/views/errors/css/application.min.css">
<link rel="stylesheet" href="/app/views/errors/css/font-awesome.min.css">
<div class="panel panel-default panel-simple">
<h3><i class="fa fa-exclamation-circle"></i> Something went wrong.</h3>
Allowed memory size of 33554432 bytes exhausted (tried to allocate 3145728 bytes) </p>
I checked my PHP for memory limit and the limit when I run phpinfo() is 1024MB! That should easily be enough for Blesta, shouldn't it? I own a VPS so there is no sharing of memory with other accounts. I have cPanel and WHM installed on my server.
Is there any way to check what the problem is? The cron job doesn't work and it renders Blesta useless for quite a while now.
The cronjob looks like this:
/opt/cpanel/ea-php56/root/usr/bin/php -q /home/username/public_html/index.php cron