XAMPP alternative on Fedora Silverblue (toolbox)

I am posting this for future reference.
There’s a xampp docker image. So, we can use podman.

podman pull docker.io/tomsik68/xampp:8
mkdir -p ~/workspace/php

Let’s create basic index.php file in ~/workspace/php/index.php

<?php
echo "Apache is working!";
?>

run

podman run --name xampp -p 41062:80 -d -v /home/USER_NAME/workspace/php/:/www:Z tomsik68/xampp:8

access the local server or php my admin page
http://localhost:41062/
http://localhost:41062/www/
http://localhost:41062/phpmyadmin/

we can use

podman stop xampp
podman start xampp
1 Like