Your software
My Mautic version is:
My PHP version is: 8.3.12
My Database type and version is: 10.11.10-MariaDB
Your problem
My problem is: Cron Jobs are set properly but not working.
These errors are showing in the log:
#1) When I try to run the Cron Job command from VPS terminal, it gives me the following error
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.1.0”. You are running 8.0.30. in /home/marketic.co/hi/vendor/composer/platform_check.php on line 24
- > But the Mautic System Info confirms the PHP Version 8.3.12
#2) Mautic Log file shows an error but it’s not related to Cron Jobs I guess, It was related to Inbox Monitoring setting (I have already fixed it).
I’m using CyberPanel on VPS
mautic.NOTICE: PHP Notice - PHP Request Shutdown: [CLOSED] IMAP connection broken (server response) (errflg=2) - in file Unknown - at line 0 {“hostname”:“panel.DOMAIN.com”,“pid”:142071}
Steps I have tried to fix the problem:
#1) Double-checked PHP version, it’s fine #2) Cron Job Codes are fine as well
Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30.
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0". You are running 8.0.30. in /home/mautic-path/vendor/composer/platform_check.php on line 24
The vHost Conf & Mautic System Info shows 8.3 as well: path /usr/local/lsws/lsphp83/bin/lsphp
CyberPanel is only a website that is meant to facilitate your life when it comes to website, ftp, ssh, dns and email management. It won’t do anything nor impact the web app in any way, shape or form. Same is true for shell scripting.
And you’re most likely using the wrong PHP version, as your logs are reporting.
Doubting me? No worries, all good!
As the saying goes: Don’t trust. Verify.
How to Verify?
Drop to the shell
Type the following php --version
What happened?
You are most likely running a bourne again shell during your shell session.
You are most likely running a LiteSpeed WebServer in hyper text.
In other words, you assumed that your web server was using the same binary that your shell. And from there refused to doubt yourself…
How to use the proper version?
You’ll have to check the CyberPanel user manual (the end-user one. This isn’t requiring any kind of privilege).
Good to know…
It’s possible to install and use multiple PHP version, at the same time.
There’s a difference between the web interpreter and the CLI interpreter (PHP is an interpreter).
Web server management GUI like Webmin, cPanel, DirectAdmin, CyberPanel, etc…, are often installing multiple PHP version.
@joeyk I studied a post where you were talking about postal server and creating your own SMTP server, I created one, but I have a question, where could I buy IPs to rotate the IPs on the postal server?
Yes it helped, and I have managed to install & assign PHP 8.3 to my Mautic instance.
Thank you for your suggestions.
BUT the cron jobs are still not running, here is the top error I got after running command
An exception occurred while establishing a connection to figure out your platform version.
You can circumvent this by setting a ‘server_version’ configuration value