symfony 5.2: An exception occurred in driver: could not find driver in VPS server

  doctrine, mysql, orm, php, symfony

I tried to configure symfony 5 project in VPS server. I can login successfully in project. But when I clicked any menu of this project. I got this error.

file: config/packages/doctrine.yml

file: .env

DATABASE_URL=mysql://root:[email protected]:3306/facturacion_cristian

file: /etc/php/7.4/cli/php.ini

extension=bz2
extension=curl
;extension=ffi
;extension=ftp
extension=fileinfo
extension=gd2
extension=gettext
extension=gmp
extension=intl
extension=imap
extension=ldap
extension=mbstring
extension=exif      ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c  ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop

; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp

;extension=soap
;extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
;extension=xmlrpc
;extension=xsl

Source: Ask PHP

LEAVE A COMMENT