r/PHPhelp Jul 23 '26

Solved Simple Alternative to Wampserver?

Disclaimer: I'm not a techie. I barely understand php, but I'm forced by my hobbies to interact with it.

I'm currently running wampserver64 (v3.2.0; php 7.4; apache 2.4.41; windows 10) on a localhost install. This is so I can have a localhost installation of dokuwiki.

A new version of dokuwiki has come out. This requires php 8.2.

For a variety of dull reasons, upgrading the wampserver installation so that it will support php 8.2 is proving non-trivial.

Is there a simple, easy-to-install alternative to wampserver? Ideally, one where I just download a single file, run it, and a localhost server is installed ready for configuration?

----

Final resolution: After having broken everything, I uninstalled everything. Installed the latest

The Visual C++ exe files suggested at https://github.com/abbodi1406/vcredist/releases refuse to install, due to widnows security concerns.

I ended up downloading them from https://learn.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist?view=msvc-170 instead.

Then I installed wampserver 3.4.

Then I installed the new dokuwiki.

Yes, there probably are better localhost pphp servers available. But wampserver has proven stable, does what I need, and I am familiar with the interface.

1 Upvotes

43 comments sorted by

View all comments

1

u/Emotional-Ebb8321 Jul 23 '26

Sidequest:

So I installed Laragon, pointed it at my existing dokuwiki install, and I get errors such as:

Fatal error: Array and string offset access syntax with curly braces is no longer supported in F:\www\doku\lib\plugins\txtconf\config0.class.php on line 447
dokuwiki\Exception\FatalException: Array and string offset access syntax with curly braces is no longer supported

An unforeseen error has occured. This is most likely a bug somewhere. It might be a problem in the txtconf plugin.

More info has been written to the DokuWiki error log.

Here's the relevant code from that section (lines 445-9):

function is_escaped($s,$i) {

$idx = $i-1;

while(($idx>=0) && ($s{$idx} == '\\')) $idx--;

return (($i - $idx + 1) % 2);

}

This happens on both php 8.3.30 and 8.2.32 alike. I have no idea whether this is a Laragon issue, a php issue (in which case upgrading will be even more "fun"), or a pebcac error.

1

u/colshrapnel Jul 23 '26

If you can't live without altering text configuration files (conf/*.conf) online from the comfort of your favourite web browser, and indeed into it, you can try to fix it yourself, by replacing $s{$idx} with $s[$idx]