Running PHP 7.1 on WampDeveloper 5.4

To update WD v5.4 to use PHP 7.1…

1. Download the last released PHP 7.1 VC14 build (7.1.33)

Extract the files in the zip to path:

2. Download updated configuration files for WampDeveloper

Place provided file php-71.ini into folder:

Then open file \WampDeveloper\Config\Php\php-71.ini in an editor (Notepad will do), and auto search-replace all instances of these two path strings updated for the drive letter WampDeveloper is on –

D:/WampDeveloper to C:/WampDeveloper

D:\WampDeveloper to C:\WampDeveloper

Save file.

Place the other 3 provided files (wampd-php7.conf, wampd-php-fcgi.conf, wampd-phpmyadmin.conf) into folder \WampDeveloper\Config\Apache\extra\, overwriting exiting files. Make the same edits to path strings as above.

3. Edit file (with Notepad) \WampDeveloper\WampDeveloper.xml

Find group “<channels>”.
Add in this channel definition:

<channel name="Stable-PHP-7.1" exclude_os="XP, Server 2003">
 <component name="Apache" branch="2.4" compiler="VC14" binary_path="bin\httpd.exe" />
 <component name="Mysql" branch="5.6" compiler="VC10" binary_path="bin\mysqld.exe" />
 <component name="Php" branch="7.1" compiler="VC14" binary_path="php.exe" />

Save file. Close/open WampDeveloper – if there is a problem with the editing, this file can be deleted and WD will create a fresh copy of it on start.

4. Download the Correct Run-time

Your Windows OS likely has the 64 bit version of the “Microsoft Visual C++ 2015 Redistributable” installed, but the above Apache and PHP need the 32 bit version
File name: vc_redist.x86.exe

If you attempt to start Apache without the above 32-bit run-time, there will be an error message about VCRUNTIME140.dll.

5. Switch WampDeveloper to use PHP 7.1

To switch to PHP 7.1, use Components tab to select the new channel named “Stable-PHP-71″. Once you’ve selected it, the check-box for PHP 7.1.33 should become available in the PHP sub-tab. Check-mark it, and click button “Switch To Selected Versions”.

Keep the other components as-is (Apache 2.4, MySQL 5.6) and all on Bits: 32, PHP-Type: Regular – as that is what matches the above downloaded PHP 7.1.33 build.

This should get the *minimum* setup running for PHP 7.1…

PHP Extensions

If you require any extra PHP extensions, check source –

With extra extensions, you’ll need to match the PHP version (7.0, 7.1), bits (32 or 64), build/compiler (VC14), and build-type (thread-safe/TS is for PHP regular, not-thread-safe/NTS is for PHP FGCI), to the PHP specific-version being used.

6 thoughts on “Running PHP 7.1 on WampDeveloper 5.4”

  1. I followed all the steps given for running PHP 7.1 on WampDeveloper 5.4, leaving Apache and mySQL as-is, and get a “version mismatch” message, so nothing changes. Any suggestions on fixing it welcome, as it means multiple WP plugins won’t run on development sites due to the outdated PHP I’m having to use.
    Running WD 5.4 on a Win7 Pro virtual machine (due to not being able to run it on Win10).

    1. One of the components (Apache, PHP, MySQL) is mismatched to the selected channel…

      Check if you have PHP selected as Regular or FCGI, and the selected Bits of AMP – in the box at the top and to the right in Components tab.

      And that your current Apache and MySQL is 32 bits – for a 32 bit PHP.

  2. Thanks, looks like what I’ve tried to no avail.
    Channel: Stable-PHP-7.1,
    Bits: 32
    PHP-type: Regular
    Apache: seems to be current but can’t check the box for it under this channel setting
    MySQL: is selected, checked box.
    PHP: is selected, checked box.
    Switch To Selected Versions: Version mismatch. Tried this with and without the MySQL version selected, can’t check boxes for anything on the Apache tab unless channel is set to either Custom or Current.

    1. The Channel (Stable-PHP-7.1) uses Apache 2.4, specifically the VC14 build.

      It sounds like you are using a different Apache build – likely VC11.

      Try downloading (from the list at bottom of Components tab):

      Or as an experiment, you can try editing:

      <component name="Apache" branch="2.4" compiler="VC14"

      by adding VC11 to the list: compiler="VC14,VC11"… though this will only pass WD’s check for the channel, which does not mean it will actually work.

  3. Done the Apache update. Selected all (and confirmed vc14 compiler for Apache and PHP versions), hit “switch to selected”, and there’s now an error stating “the program can’t start because VCRUNTIME140.dll is missing from your computer.” I’ve reinstalled Microsoft Visual C++ (specifically using Microsoft Visual C++ 2015 Redistributable Update 3 RC), still got the error. VCRUNTIME140.dll is most definitely present, and not missing in any way. Ran a repair on the dll too. Something’s glitched somewhere. I’ve come back to WD after a couple years away from it and hoping I can get it functional with these newer components.

  4. Ok looks like Microsoft Visual C++ 2015 Redistributable had defaulted the download to the 64bit version, and it needed to be 32bit despite being on a 64bit system. Re-reinstalled with 32bit, reselected the components, switched, seems to have completed successfully. Thanks for the above help, got there in the end.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>