Hi,
Regarding Wampserver 2.5, I suppose you added PHP 5.5.27 version "by hand," as there is no addon for this release.
So before you consider changing the CLI version, you must make sure it is functional, but not just by switching version by Wampmanager icon.
Indeed, when you change PHP version is only phpForApache.ini file of this new version that is used, while for the CLI it will php.ini.
- Launch Wampserver
- Swith PHP version used to 5.5.27
- Verify that there is no error
- Quit Wampserver
- Make sure that the PHP version you want to use as a CLI contents a php.ini file and that it contains the correct settings and paths.
--- Note: This can be a copy of phpForApache.ini file without loading xdebug.
- Edit wamp/wampmanager.conf file
- Replace:
phpCliVersion = 5.5.12
- By:
phpCliVersion = 5.5.27
- Save the modified file
- Launch Wampserver
- Verify that there is no error
- Quit Wampmanager
- Verify that in wamp/wampmanager.ini file there are :
--- everywhere wamp/bin/php/php5.5.27/php-win.exe and never wamp/bin/php/php5.5.12/php-win.exe
--- everywhere wamp/bin/php/php5.5.27/php.exe and never wamp/bin/php/php5.5.12/php.exe
--- that is to say that there is nowhere a mention of 5.5.12
Now, you may delete wamp/bin/php/php5.5.12/ folder.
Rename the file wamp\bin\php\DO_NOT_DELETE_5.5.12.txt into DO_NOT_DELETE_5.5.27.txt
Nota : This is done automaticaly with Wampserver 3
Subsidiary question: Why do not you use Wampserver 3.0.x ?
Aside: One might ask the question why there are two initialization files of PHP:
- phpForApache.ini for the version used with yours script
- php.ini only used for the CLI PHP version
PHP CLI is used only for internal scripts of Wampmanager and does not need extensions or settings you need for your own scripts. Also, if you perform manipulations or PHP extensions additions more or less risky and that it "crash" for your PHP scripts, it will have no effect on the CLI version of PHP.
---------------------------------------------------------------
Documentation Apache -
Documentation PHP -
Documentation MySQL -
Wampserver install files & addons