PHP致命错误:找不到类sqlite3 [英] php fatal error: class sqlite3 is not found in
本文介绍了PHP致命错误:找不到类sqlite3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用ubuntu 12.04和php 5.x,我需要在其中使用sqlite3,但是我收到了
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 all the installation processes,
喜欢
$ sudo apt-get install php5-cli php5-dev make
$ sudo apt-get install libsqlite3-0 libsqlite3-dev
$ sudo apt-get install php5-sqlite3
$ sudo apt-get remove php5-sqlite3
$ cd ~
$ wget http://pecl.php.net/get/sqlite3-0.6.tgz
$ tar -zxf sqlite3-0.6.tgz
$ cd sqlite3-0.6/
$ sudo phpize
$ sudo ./configure
$ sudo make
$ sudo make install
$ sudo apache2ctl restart
和
cd /etc/php5/conf.d
cat > sqlite3.ini
# configuration for php SQLite3 module
extension=sqlite3.so
^D
sudo /etc/init.d/apache2 restart
现在我还想做什么?
任何人都可以帮助我解决此问题...
Can anyone please help me to fix this...
先谢谢您
推荐答案
我自己找到了解决方案,
Found a solution my self,
我已安装
$ sudo apt-get install php5-sqlite
不是
$ sudo apt-get install php5-sqlite3
并且仅使用sqlite3类..现在没有问题.
and using sqlite3 class only.. no issue now.
这篇关于PHP致命错误:找不到类sqlite3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文