When I tried to run cron job for Mautic it is not working and checking it from the cli, it throws the error below and I also noticed that while the Mautic PHP is 8.0 the one on cli is 7.4
user@cyberpanel:~$ /usr/bin/php /home/m.bluespace.ng/public_html/bin/console mautic:campaigns:update
PHP Warning: PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so (/usr/local/lsws/lsphp74/lib/php/20190902/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Thank you.
I was able to change the default php version to 8.0 but the error still persist.
user@pyberpanel:~$ php -v
PHP Warning: PHP Startup: Unable to load dynamic library 'timezonedb.so' (tried: /usr/local/lsws/lsphp80/lib/php/20200930/timezonedb.so (/usr/local/lsws/lsphp80/lib/php/20200930/timezonedb.so: cannot open shared object file: No such file or directory), /usr/local/lsws/lsphp80/lib/php/20200930/timezonedb.so.so (/usr/local/lsws/lsphp80/lib/php/20200930/timezonedb.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
PHP 8.0.28 (cli) (built: Feb 14 2023 14:47:46) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.28, Copyright (c) Zend Technologies
with Zend OPcache v8.0.28, Copyright (c), by Zend Technologies