Python
legacy.python.org โบ workshops โบ 2002-02 โบ papers โบ 07 โบ index.htm
Mod_Python: Integrating Python with Apache
Mod_python is an Apache module. What makes it different from most other Apache modules is that it itself doesn't do anything, but provide the ability to do what Apache modules written in C do to be done in Python.
HowtoForge
howtoforge.com โบ home โบ embedding python in apache2 with mod_python (debian etch)
Embedding Python In Apache2 With mod_python (Debian Etch)
This tutorial shows how to install and use mod_python on a Debian Etch server with Apache2. mod_python is an Apache module that embeds the Python interpreter within the server.
PyPI
pypi.org โบ project โบ mod-wsgi
mod-wsgi ยท PyPI
June 10, 2026 - The mod_wsgi package provides an Apache module that implements a WSGI compliant interface for hosting Python-based web applications on top of the Apache web server, conforming to the WSGI specification (PEP 3333).
ยป pip install mod-wsgi
Published ย Jun 27, 2026
Version ย 6.0.5
Repository ย https://github.com/GrahamDumpleton/mod_wsgi
Homepage ย https://www.modwsgi.org/
Apache HTTP Server module that integrates the Python programming language with the server
Factsheet
Named after Python
Named after Python
Wikipedia
en.wikipedia.org โบ wiki โบ Mod_python
mod_python - Wikipedia
March 30, 2021 - mod_python is an Apache HTTP Server module that integrates the Python programming language with the server.
Readthedocs
modwsgi.readthedocs.io
mod_wsgi โ mod_wsgi 6.0.5 documentation
mod_wsgi is an Apache module that hosts Python web applications which implement the WSGI specification (PEP 3333).
Stack Overflow
stackoverflow.com โบ questions โบ 30177866 โบ allowing-apache-to-use-locally-installed-python-modules-on-a-server-that-i-don
php - Allowing Apache to use Locally Installed Python Modules, on a Server that I don't have root access - Stack Overflow
When PYTHONPATH is not set, or when the file is not found there, the search continues in an installation-dependent default path; on Unix, this is usually .:/usr/local/lib/python. Actually, modules are searched in the list of directories given by the variable sys.path which is initialized from the directory containing the input script (or the current directory), PYTHONPATH and the installation-dependent default.
ArchWiki
wiki.archlinux.org โบ title โบ Apache_HTTP_Server โบ mod_python
Apache HTTP Server/mod_wsgi - ArchWiki
March 17, 2022 - mod_wsgi is an Apache HTTP Server module that embeds a Python application within the server and allow them to communicate through the Python WSGI interface as defined in the Python PEP 333.
Modpython
modpython.org โบ live โบ current โบ doc-html โบ installation.html
Installation โ Mod_python v3.5.0-3.5.0 documentation
If you wish to selectively install just the Python libraries or the DSO (mod_python.so) (which may not always require superuser privileges), you can use the following make targets: install_py_lib and install_dso. ... You need to configure Apache to load the module by adding the following line ...
Stack Overflow
stackoverflow.com โบ questions โบ 14338506 โบ mod-python-no-module-named-apache โบ 18104972
python - mod_python no module named _apache - Stack Overflow
Without those information, all I can say is "your module is not installed correctly" ;) ... @IgnacioVazquez-Abrams out of curiosity - which software do you refer here as "dead"? python2.7? mod_python? ubuntu12? ... _apache is installed by the mod_python module when it is loaded by Apache at startup.
Matrixpost
blog.matrixpost.net โบ home โบ general โบ enable python for apache websites
Enable Python for Apache Websites - .matrixpost.net
July 6, 2024 - You can nevertheless install Python3 by using the following command. ... By default you will execute Python3 with the python3 command, by installing the packet below, you can execute Python3 also as usual with the command python. ... The mod_python module supports web applications written in Python.
Top answer 1 of 3
7
in my case, the modules were installed in a user env, vs the machine's env. i just run:
sudo -H pip3.7 install mako
The -H says to sudo to install the module in the root machine directory vs user directory who run the command ...
this is because Apache cannot access/read personal user's files.
2 of 3
3
I redid the server configuration, this time naming things properly, used virtualenv, and Daemon mode to wsgi.
Here's the apache configuration I ended up with:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
WSGIDaemonProcess sprites-toolbox python-path=/home/nitay/Desktop/SpritesToolbox/Python:/home/nitay/Desktop/SpritesToolbox/Python/sprite-toolbox-env/lib/python2.7/site-packages
WSGIProcessGroup sprites-toolbox
WSGIScriptAlias /wsgi/ /home/nitay/Desktop/SpritesToolbox/Python/wsgi.py
<Directory "/home/nitay/Desktop/SpritesToolbox/Python">
Require all granted
</Directory>
</VirtualHost>
Moral of the story? "Time is precious, waste it wisely" (Don't half-ass server configurations)
Modpython
modpython.org โบ live โบ current โบ doc-html โบ tutorial.html
Tutorial โ Mod_python v3.5.0-3.5.0 documentation
Mod_python provides every possible handler to Apache. Mod_python handlers by default do not perform any function, unless specifically told so by a configuration directive. These directives begin with 'Python' and end with 'Handler' (e.g. PythonAuthenHandler) and associate a phase with a Python ...
Apache
cwiki.apache.org โบ confluence โบ display โบ MODPYTHON โบ Module+and+package+loading+in+version+3.3
Module and package loading in version 3.3 - MODPYTHON - Apache Software Foundation
July 9, 2019 - This is not much different to the first option in that you are still using PythonPath, but mod_python will not complain as there is no overlap in directories for each module importing mechanism. Note that in both cases above, because a package is being used, none of the modules in the package will be candidates for automatic reloading when changes are made. You will need to restart Apache whenever you make changes to the modules in the package.