将win2012服务器中的web环境升级到apache2.4.54和php8.1.7最新版本

一、查看apache、php版本。
1、进入windows server 2012的windows powershell中,进入到httpd.exe所在目录,运行.\httpd -v。
显示
Server version: Apache/2.4.51 (win64)
Server built:  Oct   8  2021  16:25:51

2、继续在windows powershell中,进入到php所在目录,运行.\php -v。
显示
PHP 8.0.9 (cli)(built: Jul 29 2021 14:12:19) (ZTS Visual c++ 2019 x64)Copyright (c) The PHP Group Zend Engine v4.0.9,copyright (c) zend Technologies


二、下载最新版本
1、Apache2.4.54 OpenSSL 1.1.1 VS17   x64
下载地址:https://httpd.apache.org或https://apachehaus.com/cgi-bin/download.plx
2、PHP 8.1.7-win32-vs16-x64  (vs16 x64 Thread Safe)
下载地址:https://windows.php.net/download#php-8.1

三、安装最新版本
1、安装Apache2.4.54
先停止httpd服务,运行.\httpd -k stop
除了保留原配置文件夹conf里面的所有文件外,其他的都用最新的文件替换更新。
启动httpd服务,运行.\httpd -k start
即安装更新完毕。

2、安装Php8.1.7
按上面的步骤先停止httpd服务,运行.\httpd -k st

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值