Unable to run Cron Job - PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite'

SYSTEM INFORMATION
OS type and version: Ubuntu 20.04 LTS
Webmin version: 1.984
Virtualmin version: 6.17-3
Related products version: DigitalOcean Droplet (Ubuntu 18.04 LTS)

Hello.

I do indeed have PHP-7.4 installed with several of its Modules including PHP-7.4-sqlite-3. And yet, when, I’m trying to run a CRON Task in Webmin, I am facing this kind of error:

PHP Warning:  PHP Startup: Unable to load dynamic library 'pdo_sqlite' (tried: /usr/lib/php/20190902/pdo_sqlite (/usr/lib/php/20190902/pdo_sqlite: cannot open shared object file: No such file or directory), /usr/lib/php/20190902/pdo_sqlite.so (/usr/lib/php/20190902/pdo_sqlite.so: undefined symbol: php_pdo_unregister_driver)) in Unknown on line 0
PHP Warning:  Module 'sqlite3' already loaded in Unknown on line 0
[2022-02-17T02:25:55+00:00] Running scheduled command: cronjob_event:log
[2022-02-17T02:25:55+00:00] Running scheduled command: automation:run
[2022-02-17T02:25:55+00:00] Running scheduled command: '/usr/bin/php7.4' 'artisan' queue:work --queue=default,batch --timeout=120 --tries=1 --max-time=180 > '/dev/null' 2>&1
[2022-02-17T02:28:56+00:00] Running scheduled command: '/usr/bin/php7.4' 'artisan' sender:verify > '/dev/null' 2>&1
[2022-02-17T02:28:56+00:00] Running scheduled command: '/usr/bin/php7.4' 'artisan' geoip:check > '/dev/null' 2>&1

In StreamHandler.php line 111:
                                                                               
  The stream or file "/home/worklx/domains/emm.worklx.com/public_html/storage  
  /logs/laravel.log" could not be opened in append mode: failed to open strea  
  m: Permission denied        

Why this error ???

How to overcome this error and successfully launch my CRON task ???

Please guide me please.

Re: the module error the module “maybe” getting loaded twice configures in your php.ini.
Check this PHP Warning: Module 'modulename' already loaded in Unknown on line 0

Steve

  1. Commenting back the two extensions in php.ini
  2. Installing php-sqlite3

All right thank you.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.