php fatal error: class sqlite3 is not found in

前端 未结 8 1676
别跟我提以往
别跟我提以往 2020-12-20 12:46

Im using ubuntu 12.04, and php 5.x I need to use sqlite3 in it but Im getting an error of

php fatal error: class sqlite3 not found

I done

相关标签:
8条回答
  • 2020-12-20 13:39
    • Step 1 :

      • For PHP5, use

        sudo apt-get install php5-sqlite
        
      • For PHP7.0, use

        sudo apt-get install php7.0-sqlite
        
      • For PHP7.1, use

        sudo apt-get install php7.1-sqlite
        
      • For PHP7.2, use

        sudo apt-get install php7.2-sqlite
        
      • For PHP7.3, use

        sudo apt-get install php7.3-sqlite
        
    • Step 2 :

      • Restart Apache

        sudo service apache2 restart
        
    0 讨论(0)
  • 2020-12-20 13:41

    I had the same error. If you are on Windows, don't forget to uncomment php_sqlite3.dll (and optionally php_pdo_sqlite.dll) extension in php.ini. Save php.ini and start the script again.

    (I added this answer to the question with the ubuntu tag because this question is on the first place in google for the request php sqlite3 not found).

    0 讨论(0)
提交回复
热议问题