WampServer:php7.4.15开启扩展

WampServer:php7.4.15开启扩展
1.C:\wamp\bin\php\php-7.4.15-Win32-vc15-x64\phpForApache.ini,配置php扩展的路径,必须是绝对路径

;extension_dir = "ext" ; 改为如下
extension_dir = "C:/wamp/bin/php/php-7.4.15-Win32-vc15-x64/ext/"

2. 将以;extension=开头的扩展在开头添加php_,和结尾添加.dll,下面是已经添加完成的扩展

;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_ffi.dll
;extension=php_ftp.dll
;extension=php_fileinfo.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_gmp.dll
;extension=php_intl.dll
;extension=php_imap.dll
;extension=php_ldap.dll
;extension=php_mbstring.dll
;extension=php_exif.dll
;extension=php_mysqli.dll
;extension=php_oci8_12c.dll
;extension=php_odbc.dll
;extension=php_openssl.dll
;extension=php_pdo_firebird.dll
;extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
;extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_soap.dll
;extension=php_sockets.dll
;extension=php_sodium.dll
;extension=php_sqlite3.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll

最后我们需要开启哪些扩展,只需将前面的分号去除即可。

由于本地集成环境用的是WampServer2.5,所以重启WampServer就可以生效。

评论
:broken_heart: :confounded: :flushed: :frowning: :grinning: :heart: :kissing_heart: :mask: :pensive: :rage: :relaxed: :scream: :smile: :smirk: :sob: :stuck_out_tongue_closed_eyes: :stuck_out_tongue_winking_eye: :wink: