ramkrishanbhatt / modwsgi

Automatically exported from code.google.com/p/modwsgi
0 stars 0 forks source link

`make install` could run apxs with -a option to activate in Apache config #215

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The generated makefile has the following for the install target:

    $(APXS) -i -S LIBEXECDIR=$(DESTDIR)$(LIBEXECDIR) -n 'mod_wsgi' mod_wsgi.la

It would be nice include the -a option as well.

    $(APXS) -i -a -S LIBEXECDIR=$(DESTDIR)$(LIBEXECDIR) -n 'mod_wsgi' mod_wsgi.la

This has the effect of adding the LoadModule line in the Apache config file, 
rather than the user having to create the correct line, either by guessing or 
trial and error.

Original issue reported on code.google.com by quinntay...@mac.com on 2 Dec 2010 at 11:58

GoogleCodeExporter commented 8 years ago
Actually, this should probably exclude the -n 'mod_wsgi' snippet as well. That 
snippet causes apxs to write "LoadModule mod_wsgi_module ..." which results in 
syntax errors when trying to restart Apache. Excluding it writes "LoadModule 
wsgi_module ..." as expected.

Original comment by quinntay...@mac.com on 3 Dec 2010 at 12:11

GoogleCodeExporter commented 8 years ago
Can't update configuration automatically as that will only work for a standard 
Apache Software Foundation configuration layout. It will not do the right thing 
for any of the Linux distributions as they use their own layouts and module 
loading isn't done as part of the main Apache configuration file where I 
believe the -a option adds it.

Original comment by Graham.Dumpleton@gmail.com on 3 Dec 2010 at 12:13