环境:
ubuntu10.10
nginx-0.9.1
php5.3.3
mysql 5.1
PDO mysql的安装:
apt
-
get
install php
-
pear
apt - get install php5 - dev
apt - get install libmysqlclient15 - dev
pecl search pdo
pecl install pdo
pecl install pdo_mysql
pecl install pdo_sqlite
apt - get install php5 - dev
apt - get install libmysqlclient15 - dev
pecl search pdo
pecl install pdo
pecl install pdo_mysql
pecl install pdo_sqlite
pecl install pdo_pgsql
PHP_PDO_SHARED
=
1
pecl install pdo_mysql
最后,修改
/etc/php5/apache2/php.ini
添加代码
extension=pdo.so
extension=pdo_mysql.so
安装SQLITE
apt
-
get
install sqlite sqlite3
修改日志文件夹权限为可读写
/system/conf/libs/log4php/logs
修改缓存文件夹权限为可读写
/system/kernel/services/mmap/cache