How to add php5.6 to wampserver: 1. Download the PHP binary package; 2. Unzip the binary Zip package to a directory at the same level as php; 3. Copy the wampserver.conf file to the PHP5.6 directory; 4. Restart the service.
The operating environment of this article: windows7 system, PHP5.6 version, DELL G3 computer
How to add php5 to wampserver. 6?
Add support for multiple versions of PHP5.6.36 under WampServer
WAMPServer allows developers to quickly build a WAMP environment under Windows systems. It supports multiple versions of Apache, MySQL, Switching between PHP does not affect each other, which is extremely convenient and fast for PHPer developers.
The following are the steps to support PHP5.5 and PHP5.6 under WAMPServer at the same time:
1. According to the version I downloaded, this is already the default php5.5.12 is installed, as shown in the following figure-1
2. Pay attention to the two special files in the following figure-2: phpForApache.ini wampserver.conf
https://windows.php.net/download
PHP currently provides PHP5.4, PHP5.5, PHP5.6, PHP7 and other versions
and unzip the binary Zip package to the directory of the same level as php5.5.12, as shown in Figure-1
在这里下载php时需要注意 x86 or x64 // Architecture PROCESSOR_ARCHITECTURE Thread Save or Non Thread Save // Thread Safety enabled // VC 11/9/6 // 这个是需要在你windows下安装的编译器 // 这些的有无将影响你是否能成功安装上你下载的php二进制文件 VC6是什么 VC6就是legacy Visual Studio 6 compiler,就是使用这个编译器编译的 VC9是什么 VC9就是the Visual Studio 2008 compiler,就是用微软的VS编辑器编译的 // phpinfo Compiler MSVC9 (Visual C++ 2008) Compiler MSVC11 (Visual C++ 2012) // 程序 Microsoft Visual C++ 2012 Redistributable (x86) - 11.0.61030 Microsoft Visual C++ 2012 Redistributable (x64) - 11.0.61030 Microsoft Visual C++ 2008 Redistributable (x64) - 9.0.30729.4148 Microsoft Visual C++ 2008 Redistributable (x64) - 9.0.30729.4148 // 这些信息可以通过 输出 phpinfo eg: Architecture x86 # x86 -- x64 PROCESSOR_ARCHITECTURE x86 # x86 Thread Safety enabled # ts TS -- nts NTS -- Thread Safe Non Thread Safe
拷贝php5.5.12下的wampserver.conf文件分别到PHP各版本目录,当然在实际的操作过程中, 一般是一个一个来; 以php5.6.36为例,拷贝目录下的php.ini-development并重命名为phpForApache.ini, 根据自己需求修改phpForApache.ini里的PHP环境参数(推荐暂时不要动里面的配置直接保存即可),保存退出 // 其他版本添加类似
If the test goes well, the success is as follows Picture:
Recommended study: "PHP Video Tutorial"
The above is the detailed content of How to add php5.6 to wampserver. For more information, please follow other related articles on the PHP Chinese website!