On Tue, 2008-10-21 at 15:25 -0400, Scott Lawrence wrote:
> On Tue, 2008-10-21 at 12:12 -0400, Carolyn Beeton wrote:
> > Some time ago, I started getting these errors:
> > 
> > Check Apache configuration 
> > sipXpbx:   httpd: Syntax error on line 235
> > of /home/cbeeton/commit/out/main/etc/sipxpbx/httpd.conf: module
> > authz_host_module is built-in and can't be loaded
> > 
> > I have been forced to hand-edit my httpd.conf to comment out a bunch
> > of modules (authz_host_module, includE_module, log_config_module, …)
> > 
> > I am running on openSUSE 10.3 (X86-64)
> 
> Apache modules can be either loadable or built in - apparently, the
> openSUSE developers built in some modules that must be loaded on Fedora
> and CentOS.
> 
> If you want to take on the job of mangling those files in the Makefile
> to make them portable, well then we'll have to find you more work to
> do :-)

Look at sipXpbx/doc/developer/Makefile.config.in, lines 113 and
following:

# Remove from httpd.conf any LoadModule directives for modules that
# Apache (@APACHE2_HTTPD@) has built in.
[EMAIL PROTECTED]@/httpd.conf
install-fix-apache-modules:
        @APACHE2_HTTPD@ -l | \
        sed \
            -e '/^  /!d' \
            -e 's/^  //' \
            -e 's/\.c$$//' \
            -e 's%\(.*\)%^ *LoadModule .*/\1\.so *$$%' >$(HTTPD_CONF).pat.tmp
        mv $(HTTPD_CONF) $(HTTPD_CONF).tmp
        @echo "Removing:"
        @grep <$(HTTPD_CONF).tmp -f $(HTTPD_CONF).pat.tmp || true
        grep <$(HTTPD_CONF).tmp >$(HTTPD_CONF) -f $(HTTPD_CONF).pat.tmp -v || 
true
        chmod --reference $(HTTPD_CONF).tmp $(HTTPD_CONF)
        rm $(HTTPD_CONF).tmp $(HTTPD_CONF).pat.tmp

Dale


_______________________________________________
sipx-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipx-dev
Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev

Reply via email to