Page 1 of 1

Bundling Python in XAMPP

PostPosted: 03. July 2021 08:37
by lavanyadeepak
Is it possible to bundle Python along with XAMPP? Because we have a lot of Python projects and it would be immensely helpful if the familiar XAMPP setup supports the same.

Re: Bundling Python in XAMPP

PostPosted: 03. July 2021 10:24
by Nobbie
I dont think there are any plans for Python in Xampp. Anyway, using the standard CGI option in Xampp it should not be a difficult task to add Python in CGI mode to an existing Xampp installation.

Re: Bundling Python in XAMPP

PostPosted: 11. November 2022 21:10
by lwc
Why include PHP and not Python?

All you need to do is:
  1. Take the official Python archive and include it as a sub folder called python.
  2. Add AddHandler cgi-script .py into apache's httpd.conf (the link below seemingly falsely claims it's mandatory to also add ScriptInterpreterSource Registry-Strict)
  3. Optionally add index.py, default.py and home.py to to the <IfModule dir_module> section in httpd.conf so these files could launch by default when browsing to folder
Then all one needs to is at this to the beginning of each PY file:
#!Python\python.exe (in Mac I guess it's #!python)

See https://blog.terresquall.com/2021/10/running-python-in-xampp/

Re: Bundling Python in XAMPP

PostPosted: 22. November 2022 20:14
by lwc
lwc wrote:Why include PHP and not Python?

All you need to do is:

Did anyone get a chance to review this?

Re: Bundling Python in XAMPP

PostPosted: 18. October 2023 04:05
by sachalizz
lavanyadeepak wrote:Is it possible to bundle Python along with XAMPP? Because we have a lot of Python projects and it would be immensely helpful if the familiar XAMPP setup supports the same.

The error has not yet been completely resolved. There is no perfect solution yet.