Obvious really. :-)
The code:
if not os.environ.get('mod_wsgi.process_group'):
output = 'EMBEDDED MODE'
else:
output = 'DAEMON MODE'
is wrong. It should be either:
import mod_wsgi
if not mod_wsgi.process_group:
output = 'EMBEDDED MODE'
else:
output = 'DAEMON MODE'
or:
def
Okay.
I did not get errors when I restart Apache after adding *WSGIRestrictEmbedded
On.*
Apache failed after I add an invalid line in the configuration.
I also changed the LogLevel to info but it seems to be normal, unless these
messages are related:
[Fri Feb 15 10:22:45.683121 2019]
When you added:
WSGIRestrictEmbedded On
and restarted Apache, did you then get errors?
If that directive is in the correct place, it cannot use embedded mode. If it
still is, it suggests the configuration isn't even been run.
Suggest added some invalid configuration at same place and