r/PHPhelp • u/Emotional-Ebb8321 • 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.
7
u/Rough-Ad9850 Jul 23 '26
If you don't need anything other than php, then you can run a local server just with the php command. php -S localhost:8000 Here is the manual page: php local server manual
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:
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/Emotional-Ebb8321 Jul 23 '26
Second Sidequest:
Running Laragon. Updated my dokuwiki plugins, disabled the ones that hadn't got any recent updates, then ran the dokuwiki update.
Laragon crashed halfway through the update. My wiki data files (ie the human-readable I put into the wiki) are all intact. But the installation is toast.
I guess I'm doing a full "burn it all down and reinstall" after all.
1
u/BlueScreenJunky Jul 23 '26
Most people nowadays will use some flavor of docker to run containers (either docker compose directly, or something like DDEV or Lando). Since you don't want to get too involved and need something that works out of the box, this is not for you.
A good alternative for windows is Laragon, which does exactly what you want.
2
u/itemluminouswadison Jul 23 '26
they list steps using docker. it's way simpler imo
https://github.com/dokuwiki/docker
https://hub.docker.com/r/dokuwiki/dokuwiki
here's a simple step by step
docker run -p 8080:8080 --user 1000:1000 -v /path/to/storage:/storage dokuwiki/dokuwiki:stablelocalhost:8080in your browser1
u/Mondoscuro Jul 23 '26
I use laravel Herd even for non laravel projects, it's just so handyÂ
1
u/Cheap-Try-8796 Jul 23 '26
Use https://wampoon-box.github.io/
Download the .zip file, which fully portable.
1
u/Basic_Reporter9579 Jul 23 '26
wampserver reinstall should solve that php issue, mine can tun 7.0 to 8.4 in win 10.
Just make sure to backup everything from that most likely C:\wamp64\www folder.
Alternatives are xamp
or more complex to set up but easier to port later: docker, vm
1
u/jjtbsomhorst Jul 24 '26
instead of playing around with wamp etc etc. Use the official Docker Image to run DokuWiki on Docker or Kubernetes
-> https://github.com/dokuwiki/docker
1
u/mwiedede Oct 25 '26
https://sourceforge.net/projects/wwebserver-with-php/ is a good alterative (but not MySQL included)
-1
u/Sydius Jul 23 '26
I'm joining u/BlueScreenJunky in suggesting Docker (with compose). While it might be overkill for a simple PHP application, but it is immensely useful and powerful, extremely well-known, and can be used for a ton of stuff.
Spending a few days getting to know it can help you a lot in the future.
-1
u/Mike_L_Taylor Jul 23 '26
You can use Forgekit. It's like wampserver but works with all php versions you need out of the box. Like you said, just download the installer, install it and it just runs.
I am the developer of it so if you run into any troubles, feel free to dm me.
It's got a browser demo you can mess about with before you download at -> https://forgekit.tools/demo but that one has a bunch of sites and servers and databases setup. You won't need that much stuff.
0
u/[deleted] Jul 23 '26
[deleted] — view deleted comment
3
u/[deleted] Jul 23 '26
[removed] — view removed comment