简体   繁体   English

pdo 驱动程序在 linux 中没有显示价值

[英]pdo drivers shows no value in linux

this is screenshot i have install php5.6 with the following command: - sudo apt-get install -y php5.6 and also install the php cli with this command : sudo apt-get install php5-cli.这是我使用以下命令安装 php5.6 的屏幕截图:- sudo apt-get install -y php5.6 并使用以下命令安装 php cli:sudo apt-get install php5-cli。

then,然后,

I have added following line to php.ini file for extenstion: extension=pdo.so and extension=pdo_mysql.so我在 php.ini 文件中添加了以下行以进行扩展:extension=pdo.so 和 extension=pdo_mysql.so

and given the extension path : extension = /usr/lib/php/20131226/pdo_mysql.so并给出扩展路径:extension = /usr/lib/php/20131226/pdo_mysql.so

and use command : sudo apt-get install php-mysql并使用命令:sudo apt-get install php-mysql

but still shows the pdo drivers no value when running phpinfo()但在运行 phpinfo() 时仍然显示 pdo 驱动程序没有价值

so, how to solve?那么,如何解决?

明确地尝试 php5:

sudo apt-get install php5-mysql

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM