PHP8扩展无法加载(全部)

发布于 2025-02-06 20:56:50 字数 1127 浏览 3 评论 0原文

我用以下方式建立了一个新的开发窗口:

Windows 10教授 - Apache 2.4.54- PHP 8.1.7

问题是PHP无法加载扩展名(我激活哪一个无关紧要)。 Apache日志中的php.ini中的配置

extension_dir = "ext"

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=curl
extension=mbstring
extension=openssl

投掷以下消息:

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: ext\\curl (The specified module could not be found), ext\\php_curl.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mbstring' (tried: ext\\mbstring (The specified module could not be found), ext\\php_mbstring.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'openssl' (tried: ext\\openssl (The specified module could not be found), ext\\php_openssl.dll (The specified module could not be found)) in Unknown on line 0

安装路径为:
c:\ weberver \ apache24
C:\ Weberver \ PHP

首先我想到了一个权限问题,因此我将“ WebServer”的孔目录打开给具有“ Full Access”的“每个人”,但这并不能解决问题。

I build up a new development Windows with:

Windows 10 Prof. -
Apache 2.4.54 -
PHP 8.1.7

The problem is that PHP could not load the extension (it does not matter which one I activate).
Configuration in php.ini

extension_dir = "ext"

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=curl
extension=mbstring
extension=openssl

In the apache Log throw the following message:

PHP Warning:  PHP Startup: Unable to load dynamic library 'curl' (tried: ext\\curl (The specified module could not be found), ext\\php_curl.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'mbstring' (tried: ext\\mbstring (The specified module could not be found), ext\\php_mbstring.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'openssl' (tried: ext\\openssl (The specified module could not be found), ext\\php_openssl.dll (The specified module could not be found)) in Unknown on line 0

The installation paths are:
c:\Webserver\Apache24

c:\Webserver\php

At first I thought of a permission problem, so I open the hole directory of "Webserver" to "everyone" with "full access", but this does not solve the problem.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

抹茶夏天i‖ 2025-02-13 20:56:50

看来我发现了问题。在我将PHP文件夹的路径添加到Windows环境变量并重新启动Windows之后,错误消息就消失了。

Looks like I found the problem. After I added the path of the PHP folder to the Windows environment variables and restart windows, the error message was gone.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文