Home > Backend Development > PHP Tutorial > php56 64-bit win7 curl init solution

php56 64-bit win7 curl init solution

WBOY
Release: 2016-07-29 08:58:16
Original
1409 people have browsed it

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
DirectoryIndex index.html index.php index.htm

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.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template