What should I do if php cannot load the extension?
php cannot load the extension solution: 1. Enable "extension=php_curl.dll" in php.ini; 2. Configure ""D:/webserver/php in Apache's httpd.conf file /ssleay32.dll"" is enough.
#The operating environment of this article: Windows7 system, PHP7.1, Dell G3 computer.
Solve the problem of PHP extension not loading:
Method 1 (passed the test) has built-in php_curl.dll. In the ext directory, this DLL is used to support SSL and zlib.
1. Find extension=php_curl.dll in php.ini, remove the previous comment.
2. Set extension_dir=c:\php\ext, refresh the PHP page An error was reported, saying that the module php_curl.dll could not be found.
Copy php_curl.dll to windows\system32, still the same error.
3. I searched online and needed to change:
libeay32.dll, ssleay32.dll, php5ts.dll, php_curl.dll
Copy them all to the system32 directory and restart apache.
Method 2 can also be tried :
1. This php_curl.dll depends on two files (ssleay32.dll and libeay32.dll). If these two files are not configured correctly, it will prompt that the dynamic library cannot be found. These two files Under the php directory.
2. Solution: Configure it in Apache’s httpd.conf file:
LoadFile "D:/webserver/php/ssleay32.dll" LoadFile "D:/webserver/php/libeay32.dll"
3. Then restart the apache service and it will be ok.
[Recommended: "PHP Video Tutorial"]
The above is the detailed content of What should I do if php cannot load the extension?. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

In this chapter, we will understand the Environment Variables, General Configuration, Database Configuration and Email Configuration in CakePHP.

PHP 8.4 brings several new features, security improvements, and performance improvements with healthy amounts of feature deprecations and removals. This guide explains how to install PHP 8.4 or upgrade to PHP 8.4 on Ubuntu, Debian, or their derivati

To work with date and time in cakephp4, we are going to make use of the available FrozenTime class.

To work on file upload we are going to use the form helper. Here, is an example for file upload.

In this chapter, we are going to learn the following topics related to routing ?

CakePHP is an open-source framework for PHP. It is intended to make developing, deploying and maintaining applications much easier. CakePHP is based on a MVC-like architecture that is both powerful and easy to grasp. Models, Views, and Controllers gu

Visual Studio Code, also known as VS Code, is a free source code editor — or integrated development environment (IDE) — available for all major operating systems. With a large collection of extensions for many programming languages, VS Code can be c

Validator can be created by adding the following two lines in the controller.
