Hello,
It is possible to add PHP 7.0.0 Alpha 1 to Wampserver 2.5
Since PHP 7 is compiled with VC14 (Visual C++ 2015), it is essential, before trying to install PHP 7, to install the redistributable package VC14.
If you have a 64-bit Windows, you must install both 32 and 64bit versions, even if you do not use Wampserver 64 bit.That's what I did (
Note: this is from my Wampserver 2.5.17 [see [
forum.wampserver.com]], which has also just go into 2.5.18 with PHP support 7)
- Download PHP 7 archive: [
windows.php.net]
- Create a folder wamp\bin\php\php7.0.0a1\
- Unzip the archive in this folder
- In this folder put a wampserver.conf file, modified from PHP 5.5 or 5.6
<?php
$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';
//PHP 7 needs Apache 2.4.x and doesn't works with Apache 2.2.x
$phpConf['apache']['2.4']['LoadModuleName'] = 'php7_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php7apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] = '';
?>
- Modify the file wamp/scripts/config.inc.php to add dll support for PHP 7 :
//dll to create symbolic links from php to apache/bin
// 55 for PHP 7
$icu = array(
'number' => array('55', '54', '53', '52', '51', '50', '49'),
'name' => array('icudt', 'icuin', 'icuio', 'icule', 'iculx', 'icutest', 'icutu', 'icuuc'),
);
and
//[modif oto] - Apache modules which should not be disabled
$apacheModNotDisable = array(
'php5_module',
'php7_module',
);
Note: Allows for installation in C:\wamp. Change the paths depending on your installation.Copy the php.ini-development file as php.ini
Edit php.ini
Replace
max_execution_time = 30
by
max_execution_time = 120
Replace
;max_input_vars = 1000
by
max_input_vars = 2500
Replace
;error_log = php_errors.log
by
error_log = C:/wamp/logs/php_error.log
Replace
; extension_dir = "./"
by
extension_dir = "C:/Wamp/bin/php/php7.0.0a1/ext/"
Replace
;upload_tmp_dir =
by
upload_tmp_dir = "C:/wamp/tmp"
For extensions to load, the easiest way is to replace the entire block between
; Be sure to appropriately set the extension_dir directive.
and
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
by
; Be sure to appropriately set the extension_dir directive.
;
extension=php_bz2.dll
extension=php_curl.dll
;extension=php_com_dotnet.dll
;extension=php_enchant.dll
extension=php_fileinfo.dll
;extension=php_ftp.dll
extension=php_gd2.dll
extension=php_gettext.dll
extension=php_gmp.dll
extension=php_intl.dll
extension=php_imap.dll
;extension=php_interbase.dll
extension=php_ldap.dll
extension=php_mbstring.dll
extension=php_exif.dll ; Must be after mbstring as it depends on it
extension=php_mysqli.dll
;extension=php_odbc.dll
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_phpdbg_webhelper.dll
;extension=php_shmop.dll
; The MIBS data available in the PHP distribution must be installed.
; See [www.php.net]
;extension=php_snmp.dll
extension=php_soap.dll
extension=php_sockets.dll
extension=php_sqlite3.dll
;extension=php_sysvshm.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
----
Replace
;date.timezone =
by
date.timezone = UTC
or your own timezone
date.timezone = Europe/Paris
Replace
;sendmail_from = me@example.com
by
sendmail_from = valid_email
Replace
mysql.default_port =
by
mysql.default_port = 3306
Replace
;session.save_path = "/tmp"
by
session.save_path = "C:/wamp/tmp"
Replace
soap.wsdl_cache_dir="/tmp"
by
soap.wsdl_cache_dir="C:/wamp/tmp"
Save the edited php.ini file.
Copy php.ini file as phpForApache.ini file
Start Wampmanager
Switch PHP version: Wampmanager Icon-> PHP-> Version-> 7.0.0a1
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons