moinwiki / moin-1.9

MoinMoin Wiki (1.9, also: 1.5a ... 1.8), stable, for production wikis
https://moinmo.in/
Other
140 stars 51 forks source link

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

Open 3kgmett opened 1 year ago

3kgmett commented 1 year ago

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:

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 commented 1 year ago

Solution is already in the text...