The solution to the problem that php cannot find the dll: first find and open the corresponding "php.ini" file; then add the corresponding extension file path, the statement is "extension_dir="D:\app\phpstudys\PHPTutorial \php\php-7.4\ext"".
When installing php, it always prompts that the .dll file cannot be found
Scenario
Download a version of php7.4. Configure the corresponding path to the path environment variable
Use php -m to view the installed modules, but it keeps prompting that openssl cannot find the library file
Solution
Open the corresponding php.ini file and add the corresponding extension file path, such as
#default_socket_timeout = 60 extension_dir="D:\app\phpstudys\PHPTutorial\php\php-7.4\ext"
For more related knowledge, please visit PHP Chinese website!
The above is the detailed content of What should I do if php cannot find the dll?. For more information, please follow other related articles on the PHP Chinese website!