Popular just now

ad1

Wampserver: How to Install PHP 5.5.0 manually

This was making me a little crazy today so I thought I would share.

"Manual" PHP 5.5.x with WampServer Installing Windows

(Warning PHP 5.5 does not work on XP, you need at least Vista)
This is an example, it is of course possible to install other PHP version on the same principle




Note: The version of WampServer 2.2e comes with 5.3.13 or 5.4.3


Verify that you have installed the Visual C + + 2010 SP1 Redistributable Package x86: VC10 SP1 vcredist_x86.exe
with a note "WARNING: All items in the stack WampServer 2.2 were compiled with the VC9 compiler Microsoft Earlier versions were compiled with the VC6 compiler version is not possible to mix components.. WampServer Version 2.2 with elements of older versions. "


The purpose of this example is to install PHP 5.5.x (A suite based versions of WAMP)

Prerequisites have downloaded WAMP and of course must have installed on a machine with at least Vista. Checks to see possibly do if you have a problem.

Note the names of the files are given as an example

Get PHP version 5.5.x (5.5.0 ) windows.php.net

You need to download the 32-bit package VC9 (example: php-5.5.0beta2-Win32-VC9-x86.zip)
Warning the official version is compiled with VC11 and is not compatible.

Another solution for PHP 5.5.x VC9 in, use the file from PHP 5.5.0 EasyPHP Components beta.x. But be careful in this case should unpack this file using Innounp (the Inno Setup Unpacker) to retrieve the folder / php55x.


The current version is installed WampServer PHP version 5.3.13

On your hard disk, in the folder where WAMP was installed,
So you should have a folder \ wamp \ bin \ php \ php5.3.13

- Create a new folder wamp \ bin \ php \ php5.5.0
- Unzip the zip archive (except / extra) in this folder wamp \ bin \ php \ php5.5.0

Then
Since the folder wamp \ bin \ php \ php5.3.13

Copy files:

1. copy Wampserver.conf from php5.3.13 to php5.5.0

2. copy php.ini from php5.3.13 to php5.5.0

3. copy phpForApache.ini: from php5.3.13 to php5.5.0

4. Replace the line in file php.ini wamp \ bin \ php \ php5.5.0:

extension_dir = "E :/ Dev_web/wamp/bin/php/php5.3.13/ext /"

with

extension_dir = "E :/ Dev_web/wamp/bin/php/php5.5.0/ext /"

5. Replace the line in File phpForApache.ini wamp \ bin \ php \ php5.5.0:

extension_dir = "E :/ Dev_web/wamp/bin/php/php5.3.13/ext /"

with

extension_dir = "E :/ Dev_web/wamp/bin/php/php5.5.0/ext /"

6. Exit and Launch WampServer and wait for the WampServer icon to turn green.

7. Check to make sure that the 5.5.0 version is available in the menu. If it is then switch to 5.5.0

8. Wait for Apache to reload. If everything is alright the the icon will again turn green and
you can start using PHP Version 5.5.0



NOTE: PhpMyAdmin

With PHP5.4.x PhpMyadmin 3.4.5 comes with WampServer 2.2x show an error message
Notice: Array to string conversion in \ wamp \ apps \ phpmyadmin3.4.5 \ libraries \ Error.class.php on line 180
To correct this you must use the patch

ie. edit the file libraries \ Error.class.php

- $ This-> getBacktrace ()
+ Serialize ($ this-> getBacktrace ())


NOTE: compilations on VC9 and VC11

Some versions of PHP are compiled either VC9 or VC11 (VC9 => Visual Studio 2008 VC11 => Visual Studio 2012)

- The archives used for VC9 need the Visual C + + Redistributable file for Visual Studio 2008 SP1 x86 or x64 is installed.

- The archives used for VC11 need the Visual C + + Redistributable file for Visual Studio 2012 x86 or x64 is installed.

Troubleshooting:

- if somethig is not working it is usually because the compiled versions of distributed files are mixed.

No comments:

Post a Comment