在linux 下部署php 支持 sqlite3 pdo

今天终于把linux下的php支持pdo方式的sqlite3操作了。

之前insert一直失败而select成功,以为是pdo sqlite插件不支持,最后在csdn上找到了原来是由于目录没有写权限,导致无法写入数据。

为目录加入了w权限后,可以成功写入db文件了。

另外附上php编译信息:

'./configure' '--with-mysql=/usr/' '--with-mysqli' '--with-pdo-mysql' '--with-apxs2=/usr/sbin/apxs' '--enable-mbstring' '--with-jpeg-dir=/usr/local' '--with-freetype-dir=/usr/local' '--with-png-dir=/usr/local' '--with-gd' '--enable-zip'

posted on 2015-03-18 12:04  yxyx213  阅读(414)  评论(0编辑  收藏  举报

导航