phpstudy 升级apache到2.4版本

本文介绍如何升级Apache以支持TLS1.2,并确保PHP兼容性。具体步骤包括下载并配置Apache,安装VC库,调整HTTPS配置,验证语法正确性及配置PHP解析。

解决目标

主要碰到的原因是小程序https需要用到tls1.2,因此只能升级apache

  1. 首先下载 apache ,下载mod_fcfig.so到 modules 文件夹,原来的重命名备份
  2. 安装各个版本vc库
  3. https配置中去掉 httpd-ahssl ,加载 ssl_mod 模块
  4. 重点使用 ./httpd.exe -t 检查语法是否有错误
  5. php无法解析的情况,加载 fcgi_mod 配置文件和 cgi_mod 模块
Include conf/extra/httpd-php-fcgid55.conf
<IfModule fcgid_module>
Include conf/extra/httpd-fcgid.conf
FcgidInitialEnv PHPRC "D:/phpStudy/php55n"
AddHandler fcgid-script .php
FcgidWrapper "D:/phpStudy/php55n/php-cgi.exe" .php
</IfModule>

参考网站

phpStudy Apache升级至最新版

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值