解决目标

主要碰到的原因是小程序https需要用到tls1.2,旧版本open-ssl只支持1.1,因此只能升级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 模块
    1
    Include conf/extra/httpd-php-fcgid55.conf
1
2
3
4
5
6
7
<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升级至最新版

评论