Wamp 新增 php7.4.23 版本方法

本文以Windows 10 64位,Apache 2.4为例

一、下载php-7.4.23版本:
1、选择下载ts版本的zip包,打开:https://windows.php.net/download

Windows 下载 ts(Thread Safe 线程安全) 版本,包含有php7apache2_4.dll

https://windows.php.net/downloads/releases/php-7.4.23-Win32-vc15-x64.zip

2、解压zip到php7.4.23文件夹:
示例:E:\wamp\bin\php\php7.4.23

二、修改配置文件:
1、将php7.4.9中的 wampserver.conf 拷贝至 php7.4.23 目录下 (php7版本内容相同,复制即可)

2、复制 php.ini-development 并重命名为 phpForApache.ini,然后修改该文件php扩展(可参考php7.4.9)
extension_dir ="e:/wamp/bin/php/php7.4.23/ext/"

参考7.4.23

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
; If you wish to have an extension loaded automatically, use the following
; syntax:
;
; extension=modulename
;
; For example:
;
; extension=mysqli
;
; When the extension library to load is not located in the default extension
; directory, You may specify an absolute path to the library file:
;
; extension=/path/to/extension/mysqli.so
;
; Note : The syntax used in previous PHP versions ('extension=<ext>.so' and
; 'extension='php_<ext>.dll') is supported for legacy reasons and may be
; deprecated in a future PHP major version. So, when it is possible, please
; move to the new ('extension=<ext>) syntax.
;
; Notes for Windows environments :
;
; - Many DLL files are located in the extensions/ (PHP 4) or ext/ (PHP 5+)
; extension folders as well as the separate PECL DLL download (PHP 5+).
; Be sure to appropriately set the extension_dir directive.
;
extension=bz2
extension=curl
extension=ffi
extension=ftp
extension=fileinfo
extension=gd2
extension=gettext
extension=gmp
extension=intl
extension=imap
extension=ldap
extension=mbstring
extension=exif ; Must be after mbstring as it depends on it
extension=mysqli
;extension=oci8_12c ; Use with Oracle Database 12c Instant Client
;extension=odbc
extension=openssl
;extension=pdo_firebird
extension=pdo_mysql
;extension=pdo_oci
;extension=pdo_odbc
;extension=pdo_pgsql
extension=pdo_sqlite
;extension=pgsql
;extension=shmop
; The MIBS data available in the PHP distribution must be installed.
; See http://www.php.net/manual/en/snmp.installation.php
;extension=snmp
extension=soap
extension=sockets
;extension=sodium
;extension=sqlite3
;extension=tidy
extension=xmlrpc
extension=xsl

三、重启wamp(关了再打开)

特别提醒:

运行wamp卸载时,会将所有文件全部删除,推荐网站文件和数据库保存在其它文件夹下。

转载请注明出处:https://www.onexin.net/wamp-php7-x/

相关文章:

1、用 PHP 编写更好的正则表达式regex
https://www.onexin.net/php-regex/

2、PHP 版本 8.2,8.1,8.0,7.4
https://www.onexin.net/php-8_2-8_1-8_0-7_4/

3、PHP中的Liskov替换原则
https://www.onexin.net/php-liskov/

4、php实现自运行的do实例详解
https://www.onexin.net/php-do/

5、PHP 后端实现JWT认证方法示例
https://www.onexin.net/php-jwt/

Leave a Reply