Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to run moin with apache2 and mod-wsgi on debian 11 #94

Open
3kgmett opened this issue Dec 29, 2022 · 1 comment
Open

how to run moin with apache2 and mod-wsgi on debian 11 #94

3kgmett opened this issue Dec 29, 2022 · 1 comment

Comments

@3kgmett
Copy link

3kgmett commented Dec 29, 2022

Hi all,
Hopefully I can safe somebodies time. Debian 11 includes WSGI only for Python 3 - "libapache2-mod-wsgi-py3". To get moin1.9.11 running together with Apache I compiled mod_wsgi-4.9.4 by hand.

Download: https://pypi.org/project/mod-wsgi/#files

Install the following packages to get mod-wsgi compiled:

  • apache2-dev for apxs, otherwise mod-wsgi -> setup.py cannot run.
  • python-dev-is-python2, is needed so that setup.py can find Python.h.
    sudo apt-get install apache2-dev python-dev-is-python2

Goto folder where mod_wsgi is unpacked

tar xvzf mod_wsgi-4.9.4
cd mod_wsgi-4.9.4/
./configure --with-python=/usr/bin/python2.7
python2.7 setup.py install --force --prefix=/usr/local --record=install.log

Compile the Apache module in the same folder and restart apache:

make install
a2enmod wsgi
/etc/init.d/apache2 restart

Proof is mod_wsgi is active:
apache2ctl -M

Have fun...

References:
https://modwsgi.readthedocs.io/en/master/user-guides/quick-installation-guide.html
https://codingshower.com/how-to-enable-or-disable-modules-in-apache-web-server/

@3kgmett
Copy link
Author

3kgmett commented Dec 29, 2022

Solution is already in the text...

@ThomasWaldmann ThomasWaldmann pinned this issue Dec 29, 2022
@ThomasWaldmann ThomasWaldmann changed the title WSGI in Debian 11 packages does not support python2.7 anymore how to run moin with apache2 and mod-wsgi on debian 11 Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant