How install PHP 5.6.13 (Windows) ?
Posted by: dimajak (---.coltel.ru)
Date: September 17, 2015 07:29PM

WampServer 2.5 (64-bit) include PHP 5.5.12, but this version of PHP contains not correct Russian timezones.
Is it possible to install PHP version 5.6.13 (Windows) ?
If it possible, give me instructions, pls.

Options: ReplyQuote
Re: How install PHP 5.6.13 (Windows) ?
Posted by: laraloodles (---.rd.shawcable.net)
Date: September 18, 2015 08:17PM

This is how I added PHP version 5.6.13RC1 to WampServer 2.5 (32 bit):

1. Downloaded (ZIP) VC11 x86 Thread Safe (2015-Aug-20 23:28:42) from [windows.php.net]

2. Extracted to c:/wamp/bin/php/php5.6.13RC1

3. Copied wampserver.conf from most recent (working) PHP folder and pasted into new folder.

4. Copied php5.6.13RC1/php.ini-development to php5.6.13RC1/php.ini.

5. Copied php5.6.13RC1/php.ini-development to php5.6.13RC1/phpForApache.ini.

6. Edited phpForApache.ini:

extension_dir = "c:/wamp/bin/php/php5.6.13RC1/ext/"

error_log = c:\wamp\logs\php_error.log

include_path = ".;c:\wamp\bin\php5.6.13RC1\pear"

date.timezone = "America/Edmonton"
date.default_latitude = 53.5333
date.default_longitude = 113.5000

7. Exited and restarted WampServer.

Note: If version doesn't appear in menu, try right-clicking on WampServer icon and selecting "Refresh".

RiggsFolly's post on this thread was an extremely helpful reference: [forum.wampserver.com]

Options: ReplyQuote
Re: How install PHP 5.6.13 (Windows) ?
Posted by: Otomatic (Moderator)
Date: September 19, 2015 10:33AM

(fr) Bonjour
(en) Hello

(fr) Wampserver 2.5 - Installer PHP 5.6.13
- Effectué en temps réel sur Wampserver installé en C:\wamp
- Effectué avec des versions Apache et PHP en 32 bit. (Pour 64 bit, la procédure est identique, mais en prenant une version PHP 64 bit)
Partout où vous verrez C:\wamp, il faudra le remplacer par VOTRE chemin d'installation

(en) Wampserver 2.5 - Install PHP 5.6.13
- Conducted in real time on Wampserver installed in C:\wamp
- Done with Apache and PHP versions in 32-bit. (For 64 bit, the procedure is identical, but taking a 64 bit version of PHP)
Wherever you see C:\wamp will require to substitute YOUR path installation

- 1 (fr) - Télécharger l'archive PHP 5.6.13 uniquement depuis le site officiel.
Ne jamais télécharger une version PHP depuis autre part.
La bonne version est :
- 1 (en) - Download PHP 5.6.13 archive only from the official website.
Never download a PHP version from the other.
The correct version is:
http://windows.php.net/downloads/releases/php-5.6.13-Win32-VC11-x86.zip
(fr) Attention, lorsque une nouvelle version PHP sortira, par exemple 5.6.14, la version 5.6.13 passear alors dans les archives :
(en) Warning, when a new PHP version released, eg 5.6.14, the 5.6.13 release will then go into the archives:
http://windows.php.net/downloads/releases/archives/php-5.6.13-Win32-VC11-x86.zip

- 2 (fr) - Créer un dossier :
- 2 (en) - Create Folder:
C:\wamp\bin\php\php5.6.13\

- 3 (fr) - Dézipper l'archive téléchargée dans ce dossier.
- 3 (en) - Unzip the downloaded archive into this folder.

- 4 (fr) - Depuis le dossier C:\wamp\bin\php\php5.5.12 copier le fichier wampserver.conf dans le nouveau dossier C:\wamp\bin\php\php5.6.13\
- 4 (en) - From the C:\wamp\bin\php\php5.5.12 copy the file wampserver.conf to the new folder C:\wamp\bin\php\php5.6.13\

-- 4a (fr) - Éditer le fichier C:\wamp\bin\php\php5.6.13\wampserver.conf
-- 4a (en) - Edit the file C:\wamp\bin\php\php5.6.13\wampserver.conf
(fr) Nota : Ne pas utiliser notepad.exe (Le bloc-Note de Windows), utilisez un éditeur de texte comme Notepad++ ou similaire.
(en) Note: Do not use notepad.exe (the "Notepad" of Windows), use a text editor like Notepad++ or similar.

(fr) Comme PHP 5.6.13 ne peut pas fonctionner avec Apache 2.2.x, nous allons donc modifier le fichier pour obtenir :
(en) As PHP 5.6.13 will not work with Apache 2.2.x, so we will change the file to obtain:
<?php

$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';

//PHP 5.6.x needs Apache 2.4.x and doesn't works with Apache 2.2.x

$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] =  '';

?>
-- 4b (fr) - Enregistrer le fichier modifié.
-- 4b (en) - Save the edited file

- 5 (fr) - Dans le dossier C:\wamp\bin\php\php5.6.13\
-- Copier le fichier php.ini-development sous le nom php.ini
- 5 (en) - In the folder C:\wamp\bin\php\php5.6.13\
-- Copy the file php.ini-development with the new name php.ini

- 6 (fr) - Éditer le fichier C:\wamp\bin\php\php5.6.13\php.ini
- 6 (en) - Edit the file C:\wamp\bin\php\php5.6.13\php.ini

-- 6a (fr) Remplacer - (en) Replace:
; max_input_vars = 1000
par/by
max_input_vars = 2500

-- 6b (fr) Remplacer - (en) Replace:
;error_log = php_errors.log
par/by
error_log = C:/wamp/logs/php_error.log

-- 6c (fr) Remplacer - (en) Replace:
; extension_dir = "./"
par/by
extension_dir = "C:/wamp/bin/php/php5.6.13/ext/"

-- 6d (fr) Remplacer - (en) Replace:
;upload_tmp_dir =
par/by
upload_tmp_dir = "C:/wamp/tmp"

-- 6e (fr) Remplacer TOUT le bloc entre :
-- 6e (en) Replace ALL lines between:
; Windows Extensions
...
  et / and
;;;;;;;;;;;;;;;;;;;
; Module Settings ;
par/by
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; 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_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_mysql.dll
extension=php_mysqli.dll
;extension=php_oci8_12c.dll  ; Use with Oracle Database 12c Instant Client
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_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_sybase_ct.dll
;extension=php_tidy.dll
extension=php_xmlrpc.dll
extension=php_xsl.dll


;;;;;;;;;;;;;;;;;;;
; Module Settings ;

-- 6g (fr) Remplacer - (en) Replace:
;date.timezone =
--- (fr) par votre fuseau horaire
--- (en) by your time zone
date.timezone = Europe/Paris
ou / or
date.timezone = Europe/London
ou / or
date.timezone = Europe/Moscow
(fr) Nota : Liste des Fuseaux Horaires Supportés
(en) Note: List of Supported Timezones

-- 6g (fr) Remplacer - (en) Replace:
;sendmail_from = me@example.com
par une adresse valide / by a valid email address
sendmail_from = moi@fsi.fr

-- 6h (fr) Remplacer - (en) Replace:
mysql.default_port =
par/by
mysql.default_port = 3306

-- 6i (fr) Remplacer - (en) Replace:
;session.save_path = "/tmp"
par/by
session.save_path = "C:/wamp/tmp"

-- 6j (fr) Remplacer - (en) Replace:
soap.wsdl_cache_dir="/tmp"
par/by
soap.wsdl_cache_dir="C:/wamp/tmp"

-- 6k (fr) Enregistrer le fichier modifié.
-- 6k (en) Save the edited file

- 7 (fr) - Copier le fichier C:\wamp\bin\php\php5.6.13\php.ini
sous le nom C:\wamp\bin\php\php5.6.13\phpForApache.ini
- 7 (en) - Copy the file C:\wamp\bin\php\php5.6.13\php.ini
with the new name C:\wamp\bin\php\php5.6.13\phpForApache.ini

- 8 (fr) - Lancer Wampserver
- 8 (en) - Launch Wampserver

- 9 (fr) - Basculer sur PHP 5.6.13
- 9 (en) - Switch to PHP 5.6.13
-- (fr) Icône Wampmanager->PHP->Version->5.6.13
-- (en) Wampmanager Icon->PHP->Version->5.6.13

Et voilà ! - There you go !

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

Options: ReplyQuote


Sorry, only registered users may post in this forum.