Environment:
- Host: EasyDNS.com
- Manager: Softaculous
- cPanel: 94.0.5
- NEW Public URL: https : // mydomain.ca/act/public
- OLD public URL: https : // mydomain.ca/ininja/public
OLD version CRON once daily jobs:
/opt/cpanel/ea-php73/root/usr/bin/php /home/visrico/public_html/ininja/artisan ninja:send-reminders
/opt/cpanel/ea-php73/root/usr/bin/php /home/visrico/public_html/ininja/artisan ninja:send-invoices
NEW version CRON once daily job:
cd /home/visrico/public_html/act && /opt/cpanel/ea-php73/root/usr/bin/php -d register_argc_argv=On artisan schedule:run
NEW version CRON job every 5 minutes:
cd /home/visrico/public_html/act && /opt/cpanel/ea-php73/root/usr/bin/php -d register_argc_argv=On artisan queue:work --stop-when-empty
CRON job I used to test syntax of 5-minute repeating job (and load my debug settings):
cd /home/visrico/public_html/act && /opt/cpanel/ea-php73/root/usr/bin/php -d register_argc_argv=On artisan optimize
It was a chore to figure out that the only PHP version compatible with BOTH 4.x and 5.x is PHP7.3. At least when I set that globally in cPanel MultiPHP I can log in to both versions, which is necessary to migrate data - right?
Now that I have changed all the CRON jobs to use 7.3 I get daily reports from the 3 once daily runs. I dont have anything to send out yet, so the reports just say “0 documents found” or “task empty”, or words to that effect. Which is “fine” because it proves they are running. I don’t get any reports from the 5-minute repeating CRON job. My “diagnostic” job to reload the .env file so it would see the “debug” logging variable reported back without any errors and it did some things so it seems to work.
Log file in the /public/act folder where the app lives “error_log” has lots of these errors:
PHP Warning: PHP Startup: Unable to load dynamic library 'imagick.so
Storage/logs/laravel.log has no new messages since 4/20, when I spawned the new version! And this is with these set in .env:
APP_DEBUG=true
EXPANDED_LOGGING=true
when I refresh the new version I get a “debug enabled” warning in RED so it seems to have picked up the change.
One help guide said I needed to change a setting:
QUEUE_CONNECTION=database
So I did and then ran the migration tool in 4.5.38 (again) I used this for my new version URL:
https://mydomain.ca/act/public
I am the same user in both. The migration ends with a message indicating migration has started and I will get an email when done - never got an email.
When I use PHPmyadmin to look at the MySQL database for the NEW version I see my old invoices and clients in “invoices” and “client_contacts” so part of the migration must have happened.
But when I open the new version Invoices, clients and my logo are all blank. Very odd. Like its not connecting to the db?
When I click on the “Info” button in the new version I get this image:
And I have a red triangle about CRON:
-
- New Users can only add ONE image, so I removed this one - -
Any input appreciated, thanks in advance!