我正在玩Yii框架,现在我正在调查Yii Shell。但是如果我使用这个命令:
yiic shell
我总是收到此错误消息:
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
libdc1394 error: Failed to initialize libdc1394
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/oci8.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib64/php/modules/pdo_oci.so' - libclntsh.so.11.1: cannot open shared object file: No such file or directory in Unknown on line 0
Error: index.php does not exist or is not an entry script file.
对我来说很奇怪,因为我将只使用mySQL驱动程序,为什么Oracle现在呢?有什么想法吗?
非常感谢您的回复!
的Jakub
答案 0 :(得分:0)
打开你的php.ini,搜索oci8.so和php_oci.so,在扩展程序部分,你应该有类似extension=oci8.so
和extension=pdo_oci.so
的内容,只需用;
进行评论即可。如果您还extension=oci8_11g.so
对此进行评论
答案 1 :(得分:0)
请安装Oracle客户端并打开php.ini
,搜索oci8.so
和php_oci.so
,在扩展程序部分,您应该有extension=oci8.so
和extension=pdo_oci.so
之类的内容,只需使用;
进行评论即可。如果您extension=oci8_11g.so
也对其进行评论“