1、下载 httpd-2.4.41-win64-VC15.zip、php5.6 + vc11、 php7.3 + vc14-16
2、配置httpd,在 httpd.conf L180 添加如下代码:
<IfDefine php7.3>
LoadModule php7_module "E:/Web/php7.3/php7apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "E:/Web/php7.3"
</IfDefine>
<IfDefine php5.6>
LoadModule php5_module "E:/Web/php5.6/php5apache2_4.dll"
AddType application/x-httpd-php .php
PHPIniDir "E:/Web/php5.6"
</IfDefine>
3、分别在 php5.6、php7.3中配置 php.ini
4、以管理员身份打开cmd
httpd -k install -n apache_php5.6 -D php5.6
httpd -k install -n apache_php7.3 -D php7.3
5、这样就可以在任务管理器中随意切换php5.6 & php7.3
ps:以后再贴上nginx下配置php5.6 & php7.3