Home > Backend Development > PHP Tutorial > Upgrade WampServer to support PHP7 wampserver 2.5 wampserver cannot start wampserver upgrade php

Upgrade WampServer to support PHP7 wampserver 2.5 wampserver cannot start wampserver upgrade php

WBOY
Release: 2016-07-29 08:53:51
Original
2006 people have browsed it

1. Unzip the upgrade package and overwrite the original file (http://aviatechno.net/files/wamp2.5.18_oto.zip)

2. Modify the wampwampmanager.conf file:

a. In defaultLanguage = english Add

[options]
urlAddLocalhost = "off"
ChangeServicesNames = "off"
MenuItemOnline = "off"
HomepageAtStartup = "off"
ProjectSubMenu = "off"
VirtualHostSubMenu = "on"
Copy after login

b. Add
<code><span>[apacheoptions]</span>
apachePortUsed = <span>"80"</span>
apacheUseOtherPort = <span>"off"</span></code>
Copy after login


c after

apacheServiceRemoveParams = "-n wampapache64 -k uninstall"

qld64" add

[mysqloptions]
mysqlPortUsed = "3306"
mysqlUseOtherPort = "off"
Copy after login
after


3. Restart Wamp and it will be upgraded to version 2.5.18, which now supports PHP7

4. Go to the PHP official website to download the latest Thread Safe zip package of PHP7 for Windows, and unzip it to the wampbinphp directory

5. Copy

php.ini-development and rename it to phpForApache.ini, modify the configuration to meet your requirements

6. Copy

wampserver.conf from other PHP version directories to the PHP7 directory and modify it to the following It looks like (or create a wampserver.conf file with the following content):

<?php$phpConf[&#39;phpIniDir&#39;] = &#39;.&#39;;
$phpConf[&#39;phpExeDir&#39;] = &#39;.&#39;;
$phpConf[&#39;phpConfFile&#39;] = &#39;php.ini&#39;;

//$phpConf[&#39;apache&#39;][&#39;2.2&#39;][&#39;LoadModuleName&#39;] = &#39;php5_module&#39;;
//$phpConf[&#39;apache&#39;][&#39;2.2&#39;][&#39;LoadModuleFile&#39;] = &#39;php5apache2_2.dll&#39;;
//$phpConf[&#39;apache&#39;][&#39;2.2&#39;][&#39;AddModule&#39;] =  &#39;&#39;;
$phpConf[&#39;apache&#39;][&#39;2.4&#39;][&#39;LoadModuleName&#39;] = &#39;php7_module&#39;;
$phpConf[&#39;apache&#39;][&#39;2.4&#39;][&#39;LoadModuleFile&#39;] = &#39;php7apache2_4.dll&#39;;
$phpConf[&#39;apache&#39;][&#39;2.4&#39;][&#39;AddModule&#39;] =  &#39;&#39;;

?>
Copy after login


7. Restart Wamp or refresh Wamp (as shown in Figure 1 below, right-click on the Wamp icon and select "Refresh") to switch to the PHP7 version (As shown in Figure 2 below)

The above introduces the upgrade of WampServer to support PHP7, including the content of wampserver. 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