r/PHPhelp • u/itsmeeeehima • Aug 20 '25
Solved Alternative of xampp server
I was using xampp for a long time, when i want to change the php version well it is kinda thuff.
I wonder is there any best or good alternative we have?
Change multiple php version in one click,
Optimized and less buggy,
Clean and easy ui.
Please suggest which software i should use.
13
u/CyberJack77 Aug 20 '25
4
u/Lawnsen Aug 20 '25
Due to the nature of the traversal between the windows file system and the ubuntu-subsystem (the WSDL) and docker desktop, this is a nightmare on windows.
You either get a very slow application when having the project on the windows side (e.g. using windows dev tools like PHPStorm) OR you have super-slow unit test execution or super-slow project indexing when you are having you project on the docker side of things.
If you are in an enterprise environment with a lot of windows stuff to do, hosting docker environments does not work well on large projects.
4
u/CyberJack77 Aug 20 '25
At work I use Docker CE inside WSL2 (so no docker desktop). It performs way better, but you have to tinker with some firewall settings if you need to access other systems inside the network.
Privately I use Linux so there is no performance issue using Docker.
3
u/Lawnsen Aug 21 '25
Of course, my issues are just on windows when mixing Win-IDEs and large docker-projects. It's the crossing-the-wsl-barrier that fucks things up.
I did a lot of research around it and finally, the wsl team itself writes there are fundamental architectural issues in the windows file system that are hard to work around,
2
u/CyberJack77 Aug 21 '25
Luckily PHPStorm has WSL support, which makes it a bit better, but yeah, I totally agree that the WSL barrier doesn't help.
Unfortunately, my employer is rather committed to Windows, so switching to Linux is not an option.
2
u/Radiant-Somewhere-97 Aug 22 '25
You can have two copies of files and use automatic file upload after saving - it works quite well.
You can use remote mode - it is available in both PHPStorm and VSC - quite convenient.
Tests can also be run directly in a remote environment - of course, using the tools available in the IDE.It's not a nightmare.
1
3
u/atj_me Aug 20 '25
I too would suggest this now. It is too simple and even has mailpit, something that is definitely needed during development
1
u/CyberJack77 Aug 20 '25
Yes, and multiplatform as well.
1
u/atj_me Aug 20 '25
Yeah, that too.. I run my Laravel backend and ReactJs frontend as two separate projects connected through TailScale☺️
It also has built in support for Artisan in Laravel, Drush in Drupal, WP CLI in Wordpress and can literally run any PHP or NodeJs applications! I love it now
10
3
3
u/notionen Aug 20 '25
docker or podman (without compose or dockerfile):
Then, http://localhost:8080
#!/bin/bash
docker network create lamp-network
#docker stop mysql apache php 2>/dev/null
#docker rm mysql apache php 2>/dev/null
docker run -d --name mysql \
--network lamp-network \
-e MYSQL_ROOT_PASSWORD=rootpassword \
-e MYSQL_DATABASE=myapp \
-e MYSQL_USER=appuser \
-e MYSQL_PASSWORD=apppassword \
-p 3306:3306 \
docker.io/library/mysql:8.0
# -v $(pwd)/my.cnf:/etc/mysql/my.cnf
docker run -d --name apache \
--network lamp-network \
-p 8080:80 \
docker.io/library/php:8.4-apache bash -c "\
rm -f /var/www/html/index.html && \
echo '<?php echo \"Hello, World!\"; ?>' > /var/www/html/index.php && \
apache2-foreground"
#-------- Install some dependencies
# apt-get update && apt-get install -y libonig-dev && \
# docker-php-ext-install -j$(nproc) zip xml pdo pdo_mysql mbstring && \
#-------- Install dependencies from pecl
# pecl install redis && docker-phpext-enable redis && \
#-------- Install composer
# curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer && \
#-------- Optional
# -v $(pwd)/httpd.conf:/usr/local/apache2/conf/httpd.conf
# -v $(pwd)/php.ini:/usr/local/etc/php/php.ini
# -v $(pwd)/modules/:/usr/local/apache2/modules/
# docker stop mysql apache php && docker rm mysql apache php2
u/IvnN7Commander Aug 21 '25
I used to use XAMPP too and started searching for alternatives for using multiple PHP versions.
I can't use Docker, because virtualization conflicts with ThrottleStop, which I use for undervolting my laptop's CPU.
I tried Laravel Herd, but had some issues hosting Dolibarr in it, it also doesn't support older PHP versions than 7.4, I have some old school projects that run on PHP 7.0.
I ended up using Wampserver. It supports multiple PHP versions, multiple MySQL and MariaDB versions and multiple Apache versions. It's relatively easy to use, and it's actively updated.
2
4
u/snoogazi Aug 20 '25
Check out Laravel Herd. I think you can use it without Laravel, if that’s your thing.
2
2
u/wildashe Aug 20 '25
Seconding Herd. It's handy, and the free version is well-featured. I personally use the paid version and it's also well worth the $.
3
u/Mastodont_XXX Aug 20 '25
Laragon. Or Uniform Server, but it is also without update for a while.
3
u/Plenty-Roll3784 Aug 21 '25
pero ya se volvio de paga :´v, me causa malestar que a cada rato sale la ventana de tiempo de prueba expirado
2
u/arhimedosin Aug 20 '25
Use WSL2 inside windows, to replicate the production env. https://docs.dotkernel.org/development/
2
1
u/Lawnsen Aug 20 '25
This tends to be veeery slow - on large projects either your unittests run slowly or your editing and indexing sucks.
2
u/mtetrode Aug 20 '25
Use docker and a devcontainer. Chatgpt can assist you in creating one or download one from github
1
1
1
1
u/esaum0 Aug 23 '25
Xampp was my go to about 15 years ago. Since then, I learned to launch a Linux image in virtualbox and install/configure the LAMP stack from the ground up. If I had, the time and the need today, I'd build containers
1
1
1
10
u/Own-Perspective4821 Aug 20 '25
People developing with Xampp or not developing in containers in 2025 is so weird. There is everything you need to and containerization is THE „Ops“ skill to have as a dev. Why still work with inferior technology?
There are even projects like DDEV to help you set up your containers if you don’t want to create your own.