【问题标题】:Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_oci8_12c.dll. The specified module could not be found无法加载动态库 'C:\\xampp\\php\\ext\\php_oci8_12c.dll。指定的模块无法找到
【发布时间】:2016-09-17 20:33:02
【问题描述】:

我用的是netbeans+xampp+Xdebug

我已经在 php.ini 中设置了以下 xdebug 配置

[XDebug]
zend_extension = "C:\Program Files\PHP5\ext\php_xdebug-2.4.1-5.4-vc9-nts.dll"

xdebug.default_enable=1
xdebug.remote_mode=req
xdebug.idekey="netbeans-xdebug"
xdebug.remote_enable=1
xdebug.remote_handler=dbgp
xdebug.remote_host=127.0.0.1
xdebug.remote_port=9000
xdebug.remote_autostart=0
xdebug.remote_connect_back=0

我的 c:\xampp\php 文件夹包含所有必需的 dll

我的php_oci8_12c.dll文件也放在C:\xampp\php\ext

关于从 xampp 重新启动 apache 服务器。我在 apache 上收到此错误日志

[Sun Sep 18 01:49:21.075508 2016] [ssl:warn] [pid 9372:tid 540] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Sep 18 01:49:21.191401 2016] [core:warn] [pid 9372:tid 540] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
Failed loading C:\Program Files\PHP5\ext\php_xdebug-2.4.1-5.4-vc9-nts.dll
ww.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20131226\nPHP    compiled with module API=20151012\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_oci8_12c.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Sep 18 01:49:21.360576 2016] [mpm_winnt:notice] [pid 9372:tid 540] AH00455: Apache/2.4.18 (Win32) OpenSSL/1.0.2e PHP/7.0.2 configured -- resuming normal operations
[Sun Sep 18 01:49:21.360576 2016] [mpm_winnt:notice] [pid 9372:tid 540] AH00456: Apache Lounge VC14 Server built: Dec  9 2015 10:17:39
[Sun Sep 18 01:49:21.360576 2016] [core:notice] [pid 9372:tid 540] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Sun Sep 18 01:49:21.360576 2016] [mpm_winnt:notice] [pid 9372:tid 540] AH00418: Parent: Created child process 8204
[Sun Sep 18 01:49:22.191842 2016] [ssl:warn] [pid 8204:tid 504] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
Failed loading C:\Program Files\PHP5\ext\php_xdebug-2.4.1-5.4-vc9-nts.dll
ww.example.com:443:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  PHP Startup: mysql: Unable to initialize module\nModule compiled with module API=20131226\nPHP    compiled with module API=20151012\nThese options need to match\n in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'C:\\xampp\\php\\ext\\php_oci8_12c.dll' - The specified module could not be found.\r\n in Unknown on line 0
[Sun Sep 18 01:49:22.494042 2016] [mpm_winnt:notice] [pid 8204:tid 504] AH00354: Child: Starting 150 worker threads.
[Sun Sep 18 01:49:37.124565 2016] [ssl:warn] [pid 800:tid 420] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Sun Sep 18 01:49:37.240484 2016] [core:warn] [pid 800:tid 420] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?

我的 php_xdebug-2.4.1-5.4-vc9-nts.dll 文件在

C:\Program Files\PHP\v5.6 文件夹

我的网址也 attech xdeug 路径很好 喜欢 : http://localhost/wordpress/?XDEBUG_SESSION_START=netbeans-xdebug

一篇文章给出了将 icu*.dll 文件移动到 Apache 的 bin 目录的解决方案。但它们已经存在 这个错误日志告诉我我失踪了什么?请建议。问候

【问题讨论】:

    标签: php wordpress apache netbeans


    【解决方案1】:

    这可能是apache使用的端口问题。

    试试这些步骤。

    1. 如果您使用的是 Skype,请禁用它。
    2. 尝试以管理员身份启动xampp
    3. 打开xampp 并点击Config,然后点击Services & Ports Settings。将主端口80 更改为8080,将SSL 端口443 更改为4433。然后保存重启xampp
    4. 您还可以通过编辑.config 文件来更改apache 的默认端口设置。为此,请按照以下步骤操作
      • 打开xampp点击配置按钮并选择httpd.conf。现在这将使用记事本打开。现在搜索 Listen 80 并将其更改为 Listen 8080
      • 之后搜索ServerName localhost:80 并将其更改为ServerName localhost:8080
      • 保存并退出。
      • 现在再次单击Config 并选择httpd-ssl.conf。搜索 Listen 443,<VirtualHost _default_:443>ServerName www.example.com:443443 更改为 4433 保存并退出。
      • 最后重启你的xampp

    注意:如果您更改默认端口地址,则需要说明apache 下的哪个端口号正在运行。例如在您的浏览器中使用http://localhost:8080/project_name/index.php

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-12-28
      • 2018-03-20
      • 2021-10-23
      • 2015-12-11
      • 2015-12-05
      • 2016-12-25
      • 2017-08-04
      • 2017-01-23
      相关资源
      最近更新 更多