I am getting "Invalid command 'WSGIScriptAlias' " error while starting Apache
The error specifically indicates that mod_wsgi is not being loaded into Apache.
In what file is:
LoadModule wsgi_module libexec/httpd/mod_wsgi.so
Did you enable the mod_wsgi module with appropriate Linux distro management command so that it will be loaded if you used distro binary packages for mod_wsgi?
just to add, How I solved my problemif you don't know the location of the modulesjust search for them
locate mod_alias.so
then you may get output like
/usr/lib/apache2/modules/mod_alias.so
then you can add that location in your config file
LoadModule alias_module /usr/lib/apache2/modules/mod_alias.so