If you have just downloaded and configured PHP 7.4 and you want to use CURL and SQLite3 you could run into a serious PHP-generated error for the reason that both CURL and SQlite3 make use of an external library located in the PHP directory. First SQLite3 was integrated into PHP but from version 7.4 no longer. The errors are these:
PHP Warning: PHP Startup: Unable to load dynamic library 'pdo_sqlite'
PHP Warning: PHP Startup: Unable to load dynamic library 'sqlite3'
PHP Warning: PHP Startup: Unable to load dynamic library 'php_curl'
CURL depends on the libssh2.dll library whereas SQLite3 depends on the libsqlite3.dll library. Below are the instructions to solve the problem definitively.
To enable CURL and SQLite3 on Windows with PHP 7.4 first edit httpd.conf (Apache) and add the following lines:
# load php.ini from chosen directory
Define SRVROOT "F:/Apache24"
ServerRoot "${SRVROOT}"
PHPIniDir "${SRVROOT}/php"
# load PHP Core library on Windows
LoadFile "${SRVROOT}/php/php7ts.dll"
LoadFile "${SRVROOT}/php/libpq.dll"
# load CURL library on Windows
LoadFile "${SRVROOT}/php/libssh2.dll"
# load SQLite3 library on Windows
LoadFile "${SRVROOT}/php/libsqlite3.dll"
# load PHP 7.4 module on Windows
LoadModule php7_module "${SRVROOT}/php/php7apache2_4.dll"
extension=curl
extension=pdo_sqlite
extension=sqlite3
Thank you, bro!!!