Home  >  Article  >  php教程  >  PHP Warning: PHP Startup: Unable to load dynamic library

PHP Warning: PHP Startup: Unable to load dynamic library

WBOY
WBOYOriginal
2016-06-06 20:40:49911browse

今天在家启动PHP环境的时候,突然发现不能加载php_mysqli.dll了,网上找了一圈,没有解决方案!在群里面受一哥们儿的启发,竟然解决了,如果你的问题还没有解决,请按下面的方法试试

今天在家启动PHP环境的时候,突然发现不能加载php_mysqli.dll了,网上找了一圈,没有解决方案!
在群里面受一哥们儿的启发,竟然解决了,如果你的问题还没有解决,请按下面的方法试试!

apache下

比如我的apache装在D盘,目录是D:/severs/apache
PHP的目录是D:/servers/php5
这样,把D:/servers/php5/libmysql.dll拷贝到D:/servers/apache/bin这个目录下面
重启apache,问题迎刃而解!~~

iis下:
将php目录下的libmysql.dll复制到c:\windows\system32\目录里面,然后重启iis即可。如果提示正在使用,可以先停止iis(iisreset /stop)即可

当然提示其它dll文件也是一样的解决方法,一般情况下是先检查php目录权限,一般everyone读取,浏览 运行即可。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn