本文介绍了如何使用CentOS启用PDO?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
输出phpinfo()时;我可以看到PDO在配置命令部分设置为'--disable-pdo'。如何使用SSH启用此功能?
解决方案
尝试
pecl install pdo
EDIT: / p>
如果已安装,请尝试
编辑。
/etc/php.ini
添加此行
;扩展PDO
extension = pdo.so
EDIT: / p>
如果您无法访问php ini请尝试在您的php应用程序
if(!extension_loaded('pdo'))
{
dl('pdo.so');
}
When outputting phpinfo(); I can see that PDO is set to '--disable-pdo' in the Configure Command section. How can I enable this using SSH?
解决方案
Try
pecl install pdo
EDIT:
If it is already installed tryedit
/etc/php.ini
Add this line
; Extension PDO
extension=pdo.so
EDIT :
if you dont have access to php ini try try this in your php aplication
if (!extension_loaded('pdo'))
{
dl('pdo.so');
}
这篇关于如何使用CentOS启用PDO?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!