无法加载动态库' C:\\ xampp \\ php \\ ext \\ php_oci8_12c.dll。找不到指定的模块

时间:2016-09-17 20:33:03

标签: php wordpress apache netbeans

我正在使用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文件夹

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

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

1 个答案:

答案 0 :(得分:0)

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

尝试以下步骤。

  1. 如果您使用Skype,请将其禁用。
  2. 尝试以管理员身份xampp启动
  3. 打开xampp并点击配置,然后点击服务&端口设置。将主端口80更改为8080,将SSL端口443更改为4433。然后保存并重新启动xampp
  4. 您还可以通过编辑apache文件来更改.config的默认端口设置。为此,请按照以下步骤操作
    • 打开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
  5. 注意:如果更改默认端口地址,则需要提及apache下正在运行的端口号。例如,在您的浏览器中使用http://localhost:8080/project_name/index.php