PHP警告:PHP启动:无法加载动态库sqlite3



我已经在我的系统中安装了wamp 8.0.10-1,当我运行wamp时,在error.log中生成以下错误。基本上,我想安装laravel 8,系统兼容性屏幕抛出以下消息:

SQLite3 Extension
PHP SQLite3 Extension is required.

error.log

PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlite3' (tried: D:/wampstack-8.0.10-1/php/ext\sqlite3 (The specified module could not be found), D:/wampstack-8.0.10-1/php/ext\php_sqlite3.dll (The specified module could not be found)) in Unknown on line 0
[Tue Oct 05 12:00:27.286105 2021] [mpm_winnt:notice] [pid 21832:tid 628] AH00455: Apache/2.4.48 (Win64) OpenSSL/1.1.1l PHP/8.0.10 configured -- resuming normal operations
[Tue Oct 05 12:00:27.286105 2021] [mpm_winnt:notice] [pid 21832:tid 628] AH00456: Apache Lounge VS16 Server built: Aug 25 2021 12:07:35
[Tue Oct 05 12:00:27.286105 2021] [core:notice] [pid 21832:tid 628] AH00094: Command line: 'D:\wampstack-8.0.10-1\apache2\bin\httpd.exe -d D:/wampstack-8.0.10-1/apache2 -f D:\wampstack-8.0.10-1\apache2\conf\httpd.conf'
[Tue Oct 05 12:00:27.286105 2021] [mpm_winnt:notice] [pid 21832:tid 628] AH00418: Parent: Created child process 20640
[Tue Oct 05 12:00:27.509826 2021] [ssl:warn] [pid 20640:tid 584] AH01909: localhost:444:0 server certificate does NOT include an ID which matches the server name
[Tue Oct 05 12:00:27.586616 2021] [ssl:warn] [pid 20640:tid 584] AH01909: localhost:444:0 server certificate does NOT include an ID which matches the server name
PHP Warning:  PHP Startup: Unable to load dynamic library 'sqlite3' (tried: D:/wampstack-8.0.10-1/php/ext\sqlite3 (The specified module could not be found), D:/wampstack-8.0.10-1/php/ext\php_sqlite3.dll (The specified module could not be found)) in Unknown on line 0
[Tue Oct 05 12:00:27.614030 2021] [mpm_winnt:notice] [pid 20640:tid 584] AH00354: Child: Starting 64 worker threads.

我试过在php.ini中取消评论extension=sqlite3,但没有运气。我觉得这是路径问题,但不知道如何解决它。如有任何帮助,不胜感激。

httpd.conf中添加以下行文件:

LoadModule php_module "C:/PHP/php8apache2_4.dll"
PHPIniDir "C:/PHP"
LoadFile "C:/PHP/libssh2.dll"
LoadFile "C:/PHP/libsqlite3.dll"
在php.ini中添加extension_dir设置的完整路径文件:
extension_dir = "C:PHPext"

最新更新