Ubuntu 上的 Zend 1 与 MSSQL 无法运行

Ubuntu 上的 Zend 1 与 MSSQL 无法运行

有人知道如何解决以下问题吗?如果不知道如何,有人知道如何在 Linux 上设置 Zend 1 以与 msSQL 服务器通信吗?

尝试使用 freetds 和 pdo_dblib 适配器时,我们在 nginx 日志中收到以下错误。我们在 Ubuntu 12.04 上使用 nginx 1.2.7 运行 Zend 1.2

2013/02/27 20:48:24 [error] 9057#0: *28 FastCGI sent in stderr: "PHP message: PHP Warning:  include_once(Zend/Db/Adapter/Pdo/Dblib.php): failed to open stream: No such file or directory in /www/development/library/Zend/Loader.php on line 146
PHP message: PHP Warning:  include_once(): Failed opening 'Zend/Db/Adapter/Pdo/Dblib.php' for inclusion (include_path='/www/development/application/../library:/www/development/library:.:/usr/share/php:/usr/share/pear') in /www/development/library/Zend/Loader.php on line 146
PHP message: PHP Warning:  include_once(Zend/Db/Adapter/Pdo/Dblib.php): failed to open stream: No such file or directory in /www/development/library/Zend/Loader.php on line 146
PHP message: PHP Warning:  include_once(): Failed opening 'Zend/Db/Adapter/Pdo/Dblib.php' for inclusion (include_path='/www/development/application/../library:/www/development/library:.:/usr/share/php:/usr/share/pear') in /www/development/library/Zend/Loader.php on line 146
PHP message: PHP Fatal error:  Uncaught exception 'Zend_Exception' with message 'File "Zend/Db/Adapter/Pdo/Dblib.php" does not exist or class "Zend_Db_Adapter_Pdo_Dblib" was not found in the file' in /www/development/library/Zend/Loader.php:99
Stack trace:
0 /www/development/library/Zend/Db.php(263): Zend_Loader::loadClass('Zend_Db_Adapter...')
1 /www/development/library/Zend/Application/Resource/Db.php(142): Zend_Db::factory('PDO_DBLIB', Array)
2 /www/development/library/Zend/Application/Resource/Db.php(154): Zend_Application_Resource_Db->getDbAdapter()
3 /www/development/library/Zend/Application/Bootstrap/BootstrapAbstract.php(680): Zend_Application_Resource_Db->init()
4 /www/development/library/Zend/Application/Bootstrap/BootstrapAbstract.php(623): Zend_Application_Bootstrap_BootstrapAbstract->_executeResource('db')
5 /www/development/library/Zend/Application/Bootstrap/BootstrapAbstract.php(583): Zend_Application_Bootstrap_BootstrapAbstract->_bootstrap(NULL)
6 /www/development/library/Zend/Appli" while reading response header from upstream, client: 108

我们尝试过教程。

答案1

这更像是 StackOverflow 问题,而不是 ServerFault。仔细检查您的适配器设置,可能需要 Pdo_Mssql。

相关内容