skip to Main Content

I already removed the commas…

extension=odbc
extension=openssl
extension=pdo_firebird
extension=pdo_mysql
extension=pdo_oci
extension=pdo_odbc
extension=pdo_pgsql
extension=pdo_sqlite

I also entered the address, however it only activated PDO MYSQL and PDO ODBC:

extension_dir = "c:/php/ext"

Look information php:

PDO
PDO support
PDO drivers mysql, odbc

I’ve searched a lot and haven’t found a solution, please help me!

I need to activate PDO SQULITE not shown in:

<?php
    phpinfo();
?>

2

Answers


  1. If you’re using web server package like xampp;
    you just have to uncomment the extension=pdo_sqlite in php.ini
    and restart apache.

    If not, then you must install the pdo sqlite extension first
    like this:
    sudo apt-get install php-sqlite3.

    Login or Signup to reply.
  2. I had this problem with php 8.2.23 running on Apache24 with windows 11.
    Adding the line Loadfile "C:/php/libsqlite3.dll" at the end of my httpd.conf file, and then restarting my computer, solved it.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search