PHP7 is compiled with vc14. If you want to run it, you need to install the VC2015 library first
https://www.microsoft.com/en-us/download/details.aspx?id=48145
First enable PHP support in apache (apache needs to download 2.4VC11 version)
httpd.conf line ending
LoadModule php5_module "E:/AppServ/php56/php5apache2_4.dll"
or
LoadModule php7_module "E:/AppServ/php7/php7apache2_4.dll"
PHPIN IDir "E :/AppServ/php56/"
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
Add php home page in dir_module module
Steps to make php5.5 or 5.6 and php7 support the curl library
Set the ->system variable in the computer environment variables (note: not user variables )
New phpext Value E:AppServphp56ext //Expand path
New PHPRC Value E:AppServphp56 //php path
Path Add E:AppServphp56 //php path
After setting, be sure to confirm repeatedly to make the variable effective (it has been unsuccessful before, Turns out this is the reason)
After setting up like this, if you modify the PHP version in apache
(such as LoadModule php5_module "E:/AppServ/php55/php5apache2_4.dll")
it will not be loaded into version 5.5, and you can only run version 5.6. If you want to To change back to running version 5.5, be sure to modify the path corresponding to the environment variable
In addition, no matter how you try to get php5.4, you have no success. Forget it, just use 5.5 or 5.6. 5.4 is no longer officially maintained, so it is recommended to discard it.
The above introduces the php56 64-bit win7 curl init solution, including the relevant content. I hope it will be helpful to friends who are interested in PHP tutorials.