Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Apache2 Configuration Problem

473 views
Skip to first unread message

ldmk...@yahoo.com

unread,
Jun 3, 2022, 1:00:06 PM6/3/22
to
I wanted to try and use Python in my HTML pages.  And apparently I have screwed up my Apache2 configuration in the process.

I now get :

[Fri Jun 03 12:42:41.002183 2022] [wsgi:crit] [pid 31238] mod_wsgi (pid=31238): The mod_python module can not be used in conjunction with mod_wsgi 4.0+. Remove the mod_python module from the Apache configuration.
AH00016: Configuration Failed

when I try to restart/start Apache2.

I cannot find the "mod_python module" in my .conf files.  Any suggestions or pointers will be appreciated.

Thanks...................

john doe

unread,
Jun 3, 2022, 3:20:05 PM6/3/22
to
I would try:

$ a2dismod mod_python

--
John Doe

IL Ka

unread,
Jun 4, 2022, 7:10:06 AM6/4/22
to
Remove mod_python
$ sudo apt purge libapache2-mod-python

no reason to use it in 2022.

Frankly, I see no reason to use apache for python either: I recommend python application server (gunicorn or uwsgi) and light frontend like nginx or lighthttpd to terminate HTTPS and serve static files.
You can connect them using FastCGI or HTTP.

ldmk...@yahoo.com

unread,
Jun 4, 2022, 12:30:05 PM6/4/22
to
    Thanks for the instruction.  I was only trying Python because my javascript code seems to be ignored.  I'll go back and work on that.

My overall goal is to create an internal web site to display my many thousands of pictures..  To do this I need to be able to read directories and display their contents.

Thanks again!

Charles Curley

unread,
Jun 4, 2022, 1:00:06 PM6/4/22
to
On Sat, 4 Jun 2022 16:31:15 +0000 (UTC)
"ldmk...@yahoo.com" <ldmk...@yahoo.com> wrote:

> My overall goal is to create an internal web site to display my many
> thousands of pictures..  To do this I need to be able to read
> directories and display their contents.

May I suggest one of several programs designed to do exactly that. I
have used album, and there are others. One thing I like about album is
that it generates static HTML pages.

--
Does anybody read signatures any more?

https://charlescurley.com
https://charlescurley.com/blog/
0 new messages