Heim  >  Artikel  >  Backend-Entwicklung  >  httpd-2.2.29 + php-5.2.17 启动失败

httpd-2.2.29 + php-5.2.17 启动失败

WBOY
WBOYOriginal
2016-08-08 09:27:101004Durchsuche

  查看Apache的日志,发现如下警告:

PHP Warning:  PHP Startup: Unable to load dynamic library 'E:\\PHP-Apache2410\\php-5.2.17-Win32-VC6-x86\\ext\\php_pdo_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0

PHP Warning:  PHP Startup: Unable to load dynamic library 'E:\\PHP-Apache2410\\php-5.2.17-Win32-VC6-x86\\ext\\php_pdo_mysql.dll' - \xd5\xd2\xb2\xbb\xb5\xbd\xd6\xb8\xb6\xa8\xb5\xc4\xc4\xa3\xbf\xe9\xa1\xa3\r\n in Unknown on line 0

重复检查,php_pdo_mysql.dll 和 php_pdo_mysql.dll 的路径都是对的,为什么加载失败?

打开cmd,输入php 按下回车键,如下图。系统报错,提示丢失php_pdo.dll。注意是 php_pdo.dll,不是php_pdo_mysql.dll 和 php_pdo_mysql.dll 


php_pdo.dll 这个文件在版本高一些的php中并不存在,比如php-5.4.33。但是php-5.2 需要加载这个dll,否则就造成加载php_pdo_mysql.dll 和 php_pdo_mysql.dll 失败。

解决办法: 在php.ini中,找到“;extension=php_pdo.dll”,把“;”去掉即可。

以上就介绍了httpd-2.2.29 + php-5.2.17 启动失败,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn