PHP 7 with Wampserver
Posted by: Otomatic (Moderator)
Date: June 16, 2015 05:13PM

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

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: pmenezes (103.39.30.---)
Date: September 20, 2015 08:39PM

View my tutorial for installation of PHP 7 RC3 with wamp server

[blog.saiashirwad.com]

[www.youtube.com]



Edited 1 time(s). Last edit at 09/20/2015 08:46PM by pmenezes.

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: trambulhao (---.cpe.netcabo.pt)
Date: December 12, 2015 03:22PM

when wampserver with php 7

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: Otomatic (Moderator)
Date: December 12, 2015 03:52PM

Hi,

[forum.wampserver.com]

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: flicker177 (---.rochester.res.rr.com)
Date: January 08, 2016 10:48PM

Dear Otomatic,

Today I was installing php 7.0.2 in my wamp server to see how it worked with my wordpress site. After a couple of very confusing attempts I came upon your post above. That was extremely well done and saved me a lot of trouble. After following your guide it just came up and ran perfectly on the first try. Thank you so much!

--Bill

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: twisteddiana (---.rdsnet.ro)
Date: January 28, 2016 08:58PM

Thank you.
Instructions from 1st post worked like a charm (besides a few edits).

I installed php7.0.2 on some 2.5 wamp server.
Changes were:
1. my wamp /scripts/config.inc.php had different layout for $icu array (the individual names were separately added in the array)
2. for php7.0.2 the dll's end with 56 not 55 (eg icudt56.dll)

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: ArshiaAghaei (5.202.158.---)
Date: April 21, 2016 06:36PM

twisteddiana Wrote:
-------------------------------------------------------
> Thank you.
> Instructions from 1st post worked like a charm
> (besides a few edits).
>
> I installed php7.0.2 on some 2.5 wamp server.
> Changes were:
> 1. my wamp /scripts/config.inc.php had different
> layout for $icu array (the individual names were
> separately added in the array)
> 2. for php7.0.2 the dll's end with 56 not 55 (eg
> icudt56.dll)


What about php 7.0.5 ?

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: Otomatic (Moderator)
Date: April 21, 2016 06:48PM

ArshiaAghaei a écrit:
-------------------------------------------------------
> What about php 7.0.5 ?

Hi,

- Update Wampserver 2.5 to 3.0.3 (See [forum.wampserver.com]).
- Update to 3.0.4
Then you will be able to install PHP 7.0.5 addon.

---------------------------------------------------------------
Documentation Apache - Documentation PHP - Documentation MySQL - Wampserver install files & addons

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: ArshiaAghaei (5.202.158.---)
Date: April 21, 2016 06:56PM

Otomatic Wrote:
-------------------------------------------------------
> ArshiaAghaei a écrit:
> --------------------------------------------------
> -----
> > What about php 7.0.5 ?
>
> Hi,
>
> - Update Wampserver 2.5 to 3.0.3 (See
> [forum.wampserver.com]).
> - Update to 3.0.4
> Then you will be able to install PHP 7.0.5 addon.

Bad news :

I can't do that since WampServer 3.0.4 Doesn't display my Joomla! 3 website correctly...

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: RiggsFolly (Moderator)
Date: April 21, 2016 08:00PM

Quote

I can't do that since WampServer 3.0.4 Doesn't display my Joomla! 3 website correctly...

Quit with the smart comments and describe EXACTLY what you have done.

And exactly WHAT you have installed.

And exactly WHAT DOES NOT WORK!

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 2 time(s). Last edit at 04/25/2016 09:50AM by RiggsFolly.

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: alienware (---.netvisao.pt)
Date: April 25, 2016 04:30AM

i have installed wampserver3.0 to 3.04 and this have some fix to do, so i remain to 2.5 and try update php,mysql,phpmyadmin tolatest but only phpi i want to insert does not able me to add, anyone can help?

Options: ReplyQuote
Re: PHP 7 with Wampserver
Posted by: RiggsFolly (Moderator)
Date: April 25, 2016 09:54AM

Do you realise that you can install WAMPServer3.0.4 and then Apply

ADDONS for PHP versions 5.4 or 5.5 or 5.6 and even PHP5.3 if that is necessary

One of these versions should run any version of Joomla.

If you tell us EXACTLY what it is that does not work for you, we can make useful suggestions!

Please look at the array of available addons here [wampserver.aviatechno.net]

---------------------------------------------------------------------------------------------
(Windows 10 Pro 64bit) (Wampserver 3.3.4 64bit) Aestan Tray Menu 3.2.5.4
<Apache versions MULTIPE> <PHP versions MULTIPLE> <MySQL Versions MULTIPLE>
<MariaDB versions MULTIPLE> <phpMyAdmin versions MULTIPLE> <MySQL Workbench 8.0.23>

Read The Manuals Apache -- MySQL -- PHP -- phpMyAdmin
Get your Apache/MySQL/mariaDB/PHP ADDONs here from the WAMPServer alternate Repo
-X-X-X- Backup your databases regularly Here is How dont regret it later! Yes even when developing -X-X-X-



Edited 1 time(s). Last edit at 04/25/2016 09:58AM by RiggsFolly.

Options: ReplyQuote


Sorry, only registered users may post in this forum.