sqlite3 PDOError 找不到驱动程序

问题描述 投票:0回答:1

我在 Windows 10 Enterprise LTSC x64 上使用 here 的 USBWebserver v10 作为本地测试服务器。它使用 PHP 8.1.7。

我检查了 php/ext 文件夹中是否有请求的文件,确实有。它们在 php.ini 文件中也被正确取消注释(例如:extension=php_sqlite3.dll),但它仍然在下面报告此问题:

PHP Warning:  PHP Startup: Unable to load dynamic library 'php_curl.dll' (tried: Z:/_SERVER_\\php\\ext\\php_curl.dll (The specified module could not be found), Z:/_SERVER_\\php\\ext\\php_php_curl.dll.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'php_sqlite3.dll' (tried: Z:/_SERVER_\\php\\ext\\php_sqlite3.dll (The specified module could not be found), Z:/_SERVER_\\php\\ext\\php_php_sqlite3.dll.dll (The specified module could not be found)) in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library 'php_pdo_sqlite.dll' (tried: Z:/_SERVER_\\php\\ext\\php_pdo_sqlite.dll (The specified module could not be found), Z:/_SERVER_\\php\\ext\\php_php_pdo_sqlite.dll.dll (The specified module could not be found)) in Unknown on line 0

我看到它出于某种原因寻找带有“\”而不是单个“/”的路径 - 这可能是原因吗?如果是的话怎么解决?

php apache server
1个回答
0
投票

这不是官方网站。官方网站是usbwebserver.net 作者好几年前就停止更新了。

一些网站决定自行更新服务器,但他们做得非常糟糕。 这是我见过的最糟糕的更新。

usbwebserver是在32位架构下设计的,它也可以在64位上运行。 您下载 usbwebserver 的这个站点在 32 位和 64 位文件之间进行了错误的混合,这导致更新时出现许多错误,其中数据库配置非常糟糕,给这个优秀服务器的作者留下了非常糟糕的声誉。

它不能在 Windows 7 32 和 64 位上运行。当它真的应该的时候。 在 Windows 8.1 32 位中,Apache 无法运行,只能运行 MySQL,但有很多错误。当它真的应该的时候。 在 Windows 10 64 位上,Apache 和 MySQL 可以运行,但出现许多错误。因为他们做出了糟糕的更新。

只有一个西班牙网站对 usbwebserver 进行了正确更新,该服务器在 32 位或 64 位架构的 Windows 7 及更高版本上运行。

解决方案: 在 usbwebserver.uk 下载正确的更新。任何疑问或问题都将在那里得到解决。

© www.soinside.com 2019 - 2024. All rights reserved.