Search code examples
phplocalhostwampserverphp-5.5

Installing php5.5 in Wamp


I am in the unfortunate position of needing to install php 5.5 on my wamp 3.1.3 installation to support some old code that will hopefully soon die.

I installed the files to here:

enter image description here

But when I go into the wamp menu to change the version, it's not showing up. Am I missing a setting somewhere?

I've exited and re-opened wamp, but that didn't help.

enter image description here


Solution

  • With the install of PHP5.5.9 that you have created in the wamp folder, what you probably forgot to do was create a wampserver.conf file in wamp64\bin\php\php5.5.9\ folder.

    It should look like this

    <?php
    
    $phpConf['phpIniDir'] = '.';
    $phpConf['phpExeDir'] = '.';
    $phpConf['phpConfFile'] = 'php.ini';
    
    $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'] =  '';
    
    ?>
    

    I think this version of PHP will run with Apache 2.4, but that just might be your next issue. In which case you may have to download an Apache 2.2 from the http://wampserver.aviatechno.net/?lang=en&allversions=afficher site

    Also I hope you downloaded the 64bit version of that PHP as you appear to be using the 64bit WAMPServer and therefore 64bit Apache, so they have to match

    You also seem to have downloaded the Source code and not the executables for PHP5.5.9. Download the executables code from The PHP Archive

    Here is my old HOW TO MANUALLY INSTALL A NEW RELEASE OF PHP INTO THE WAMPSERVER ENVIRONMENT Tutorial see if that helps you get this going.

    Ping me if you have any questions on that.