Ok,
1. Never get the .msi ( installable version of anything ). It may well do things it thinks are useful which in fact will just confuse everything from then on. Always download the zip version.
Flexible CLI batch cmd) fileexample command file.
Store this in a folder that is on your PATH already so you can run it from anywhere
Filename - phppath.cmd
echo off
REM Add the folder containing of the php.exe version you want to use as CLI to your PATH
REM Change this line to get whichever PHP version you want to use on the CLI
PATH=%PATH%;C:\wamp\bin\php\php5.x.y
REM Display the version of PHP that is run when you just keyin >php at the command line
REM to prove the previous PATH setting worked
php -v
Right now to the
GOOD BITI finally stopped assuming I knew what I was doing and found out why wampmanager was indicating on its PHP menu that a version of PHP was not compatible with the Apache that was running.
So thanks for making me look at this again.
The problem is related to the
wampserver.conf file in the php5.x.y folder.
In that file is a set of information to tell wamp what PHP Interpreter DLL to load for each version of Apache
It should look like this:-
<?php
$phpConf['phpIniDir'] = '.';
$phpConf['phpExeDir'] = '.';
$phpConf['phpConfFile'] = 'php.ini';
$phpConf['apache']['1.3']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['1.3']['LoadModuleFile'] = 'php5apache.dll';
$phpConf['apache']['1.3']['AddModule'] = 'mod_php5.c';
$phpConf['apache']['2.0']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.0']['LoadModuleFile'] = 'php5apache2.dll';
$phpConf['apache']['2.0']['AddModule'] = '';
$phpConf['apache']['2.2']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.2']['LoadModuleFile'] = 'php5apache2_2.dll';
$phpConf['apache']['2.2']['AddModule'] = '';
$phpConf['apache']['2.4']['LoadModuleName'] = 'php5_module';
$phpConf['apache']['2.4']['LoadModuleFile'] = 'php5apache2_4.dll';
$phpConf['apache']['2.4']['AddModule'] = '';
?>
So it has information for each version of apache and which interpreter dll to look for.
Note: Apache 2.3 never really existed which is why that version is missing.
I would suggest checking ALL installed PHP versions and changing the wampserver.conf file to look like this.
Mine, and I assume yours was missing some of this information, i guess we both copied forward one file that had some data missing.
So change yours to look like the example above and the NO ENTRY symbols shoudl disappear from your PHP Version menu.
I hope this makes sense to you.