|
发表于 2006-9-8 17:00:36
|
显示全部楼层
以上我提供的链接下面的所有包就是一个WEB服务套件,虽然有些小问题,但不影响使用,暂时不准备更新服务器包,等新的MGC版本吧。
原上面我提到PHP5不支持sqlite3,其实是错误的,PHP5默认支持sqlite2,对sqlite3的支持必需通过PDO来实现,具体看最新的PHP手册,我提供的PHP安装包也没有提供对sqlite3的支持,在编译PHP5时必需加入以下参数,详细见官方网页:http://cn2.php.net/manual/zh/ref.pdo.php#pdo.drivers
另外我打的PHP的包的php.ini的放置位置也许不对,正确位置应该是/usr/local/lib/php.ini或/usr/lib/php.ini,具体看源码包的install文档
PHP 5.1 and up on Unix systems
1.If you're running a PHP 5.1 release, PDO is included in the distribution; it will be automatically enabled when you run configure. It is recommended that you build PDO as a shared extension, as this will allow you to take advantage of updates that are made available via PECL. The recommended configure line for building PHP with PDO support should enable zlib support (for the pear installer) as well. You may also need to enable the PDO driver for your database of choice; consult the documentation for database-specific PDO drivers to find out more about that.
./configure --with-zlib --enable-pdo=shared
2.After installing PDO as a shared module, you must edit your php.ini file so that the PDO extension will be loaded automatically when PHP runs. You will also need to enable any database specific drivers there too; make sure that they are listed after the pdo.so line, as PDO must be initialized before the database specific extensions can be loaded. If you built the extensions statically, you can skip this step.
3.Having PDO as a shared module will allow you to run pear upgrade pdo as new versions of PDO are published, without forcing you to rebuild the whole of PHP. Note that if you do this, you also need to upgrade your database specific PDO drivers at the same time. |
|