Windows:
Download the portable Zip of the current version (at the time of this writing: 7.1.7)
https://sourceforge.net/projects/xampp/files/XAMPP%20Windows/
Extract the 'xampp' folder suggesting to use C:/ as the target folder.
Remove the Semicolon infront of the line
;extension=php_sockets.dll
inside of xampp/php/php.ini
Linux:
Download the installer of the current version (at the time of this writing: 7.1.7)
https://sourceforge.net/projects/xampp/files/XAMPP%20Linux/
And run it.
Folder link setup
Add an entry to xampp/apache/conf/extra/httpd-xampp.conf
(On Linux this should be /opt/lampp/apache/conf/extra/httpd-xampp.conf)
...
<IfModule alias_module>
...
Alias /bahn "<PATH TO YOUR GIT>/code/website"
<Directory "<PATH TO YOUR GIT>/code/website">
AllowOverride AuthConfig
Require local
ErrorDocument 403 /error/XAMPP_FORBIDDEN.html.var
</Directory>
</IfModule>
Accessing the Website
After the setup you can run xampp-control inside the xampp folder and start apache or directly run 'apache_start' inside this folder.
Now you can open http://localhost/bahn/