Home > Backend Development > PHP Problem > How to delete php extension

How to delete php extension

藏色散人
Release: 2023-03-01 08:56:01
Original
5058 people have browsed it

How to delete php extension

How to delete php extension?

Under Linux system, you need to use the package manager to install

For example, under redhat

yum install php-mysql
Copy after login

Under Ubuntu

apt-get install php-gd
Copy after login

Under windows, you need to modify php.ini

Find

extension=php_gd2.dll
Copy after login

If there is a semicolon in front, remove the semicolon, which means it is enabled.

In addition, you need to pay attention to the configuration of the extension path (extension_dir). By default, just fill in

extension_dir="ext"
Copy after login

.

If there is no relevant dll in the extension directory (ext in the PHP installation directory), it may be an outdated component, or a third-party component (such as php_sql_srv.dll of sqlserver) needs to be downloaded from a third-party related website to download the corresponding PHP version, put it into the extension directory, and then enable it.

After modifying the extension module configuration, it is best to test whether there will be any errors. You can add it to the environment variable in the PHP installation directory or the PHP directory.

php -v
Copy after login

If there are no errors, there is generally no problem. of. If an error occurs, it means that the extension requires other support and cannot be enabled directly, or the version of the extension file does not correspond to the version of PHP.

Recommended: "PHP Tutorial"

The above is the detailed content of How to delete php extension. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template