I moved my Laravel project to a new laptop.
I installed the Composer, the same PHP 8.1.33 package, and WampServer version.
I am encountering errors related to php_mysqli.dll and php_pdo_mysql.dll. I don't know how to solve them.
I used GitHub Copilot to assist me. Built this far. I believe it is trying to connect to the database, but I am unable to build this part. Any help is highly appreciated.
PROBLEMS STILL REMAINING:
PHP cannot load php_mysqli.dll and php_pdo_mysql.dll (error: "The specified module could not be found").
Extensions do not appear in phpinfo.php or php -m.
All configuration and environment steps have been repeated and verified.
No issues found in error logs or Event Viewer.
The problem persists even after copying fresh DLLs and confirming all settings.
TASK COMPLETED:
Verified PHP version (8.1.33) and confirmed correct php.ini path.
Enabled extension=pdo_mysql and extension=mysqli in php.ini.
Checked and set extension_dir to the correct path.
Installed the latest Microsoft Visual C++ Redistributable (2015–2022 x64).
Downloaded the official PHP 8.1.33 VS16 x64 Thread Safe ZIP.
Copied php_mysqli.dll and php_pdo_mysql.dll from the ZIP to the ext folder.
Checked file names, sizes, and permissions for the DLLs.
Restarted WAMP services multiple times.
Used WAMP tray icon to enable extensions.
Verified 64-bit architecture for WAMP, PHP, and DLLs.
Ran php -m and checked phpinfo.php for loaded extensions.
Checked error logs and Windows Event Viewer for clues.
Ensured no duplicate/conflicting DLLs elsewhere.