Home  >  Article  >  Backend Development  >  How to delete php extension

How to delete php extension

藏色散人
藏色散人Original
2020-05-24 11:53:565031browse

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

Under Ubuntu

apt-get install php-gd

Under windows, you need to modify php.ini

Find

extension=php_gd2.dll

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"

.

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

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!

Statement:
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