Table of Contents
Download PHP binary package
PS
Add PHP multi-version support
Test
Home Backend Development PHP Problem How to add php5.6 to wampserver

How to add php5.6 to wampserver

Sep 03, 2021 am 10:42 AM
php5.6

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.

How to add php5.6 to wampserver

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:

WampServer

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


Download PHP binary package

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

PS

在这里下载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
Copy after login


Add PHP multi-version support

拷贝php5.5.12下的wampserver.conf文件分别到PHP各版本目录,当然在实际的操作过程中,
一般是一个一个来;
以php5.6.36为例,拷贝目录下的php.ini-development并重命名为phpForApache.ini,
根据自己需求修改phpForApache.ini里的PHP环境参数(推荐暂时不要动里面的配置直接保存即可),保存退出
// 其他版本添加类似
Copy after login

Test

  1. Restart Apache Service
  2. Restart All Services
  3. Switch the version directly in php version // The premise is that you have configured a php version
  4. Reopen the WAMPServer manager

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!

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Hot Topics

Java Tutorial
1666
14
PHP Tutorial
1273
29
C# Tutorial
1254
24